How are we doing? Please help us improve Microsoft Azure. Take our short survey

Questions tagged [azure-functions]

Azure Functions is an event-driven serverless compute platform in Azure and Azure Stack. Its open-source runtime also works on multiple destinations including Kubernetes, Azure IoT Edge, on-premises, and other clouds.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Proper way to export custom Azure Functions Logs to Elastic Stack on Azure

I'm using Elastic Stack deployed on Azure as native integration and I would like to export custom logs of Azure Functions to my Elasticsearch? I saw that there is an option in Diagnostic settings of ...
  • 1
0 votes
0 answers
14 views

Azure Function doesn't process Azure Queue Storage when a new item is added

I have updated my Azure Functions from 3 to 4 version with .Net 6.0. After this change the function that processes the queue is not triggering when a new item is added. Locally the function works fine,...
-1 votes
0 answers
19 views

Issue with deploying Azure function docker image using Github Actions

During the following step in my GitHub action - name: 'Run Azure Functions Container Action' uses: Azure/functions-container-action@v1.2.0 with: app-name: my_app_name image: my_image_name ...
1 vote
0 answers
16 views

How to execute Python Api project in Azure function to run as api

Where when the code gets executed, it takes file from a specified location to convert to json indexing and respond back to the user query, for example OpenAI embedding. import os from langchain import ...
  • 11
0 votes
0 answers
19 views

How can one get the log category when running Azure Functions locally?

I have a function app project where i have a mix of my code, some Azure storage interaction, some durable functions, entity framework, the whole soup. I want to be able to configure logs properly to ...
0 votes
0 answers
10 views

Naming convention of event components in Service Bus Topic Trigger Azure Function

I am working with Azure Functions, In my application we are using Http Trigger Azure Function to receive the notification events(i.e. UserCreatedEvent, UserDetailsUpdatedEvent etc.) and after this ...
  • 2,435
0 votes
0 answers
16 views

Get-AzAccessToken is failing with error "SharedTokenCacheCredential authentication unavailable"

I'm attempting to gain an access token in PowerShell, to access my Funciton App which requires Azure AD authentication. I am running the following commands: Connect-AzAccount -Subscription <...
  • 135
1 vote
0 answers
25 views

Problem using EF Core 6 Cosmos DB to make a query using inside the predicate with a Count of a list inside the entity

Considering this simple model, I want to recover using EF Core 6 Cosmos the customers which has between 4 and 6 orders. public class CustomerEntity { public string Id { get; set; } public ...
0 votes
1 answer
34 views

How to bind queue-triggered Azure Function to a custom object

While writing a queue-triggered Azure Function I read that, by default, it expects a base-64 encoded string, but that it can also bind to a POCO. Access the message data by using a method parameter ...
  • 7,276
0 votes
0 answers
25 views

Pymongo Invalid URI scheme: URI must begin with 'mongodb://' or 'mongodb+srv://'

I am using the latest version of Pymongo 4.3.3 and my connection string looks like below - mongodb://userName:password@server:10255/?ssl=true&replicaSet=globaldb&retrywrites=false&...
0 votes
1 answer
62 views

Azure Function app fails to retrieve secrets from Azure Key Vault in Visual Studio

I have a Visual Studio 2022 solution that includes multiple project types, one of which is a .NET Core website and the other is an Azure Function app. I'm using Azure Key Vault to store secrets, and I'...
  • 2,191
-1 votes
0 answers
43 views

Not able to run Azure blob triggered function in portal

I'm new in developing with Azure. Currently I'm trying to develop a blob triggered python function which was initially developed using VS Code. When it was tested by running in VS Code, it worked ...
0 votes
1 answer
41 views

from azure.monitor.query import ApplicationInsightsDataClient ImportError: can't import name 'ApplicationInsightsDataClient' from 'azure.monitor.query

Trying to import the ApplicationInsightsDataClient package from azure.monitor.query, but still obtain an error. Is there another package available or a way to get this working using an appropriate ...
0 votes
0 answers
18 views

ci cd pipeline for azure data factory having azure function activity

we are designing a azure data factory pipeline that triggers 2 activities. azure function activity and a python script custom activity. what is the best practice followed for the following? ADF needs ...
  • 395
0 votes
0 answers
30 views

Is the absence of binding to a CosmosDB Client in Isolated Azure Functions 'by design'?

I'm porting over some Azure Functions to use the isolated process model. In the situations where we used to bind directly to a CosmosClient in the function I am instead injecting it via the ...
  • 14.4k
0 votes
0 answers
16 views

How can I get ncrontabs longer than a minute to work in an Azure Function in a Docker Container

While trying to get a Python Azure function with a TimerTrigger to run locally in a Docker container I found it would not run if the ncrontab was set to once every ten minutes. 0 */10 * * * * It ...
  • 101
0 votes
1 answer
21 views

How to manually connect nodes in the application map?

I want to do this: the function I wish to connect to the others does use the requests library to hit both external and internal APIs but these links don't show in the application map. Is there a way ...
0 votes
2 answers
44 views

How to install AzureAD in azure powershell function?

I am trying to run Get-AzureADApplication in azure powershell function. I have added 'AzureAD' = '2.*' in requirements.psd1 I have added Import-Module AzureAD in profile.ps1 but I am getting error as ...
  • 487
0 votes
1 answer
21 views

Azure function Python

I am new to azure function and python, I have a task to call multiple APIs that are integrated with each other and the returned value from an API is used in the Request Body of other API, currently I ...
0 votes
0 answers
23 views

How do I generate OpenAPI documentation for an Isolated Framework4.8 Azure Function (v4)

I have had no luck generating OpenAPI in my Azure Function. It calls a SOAP web service, so has to run in Framework 4.8, as the non-Framework versions of .NET don't return the entire nested XML ...
  • 139
0 votes
1 answer
66 views

How to convert a workbook object into an output stream in python

I want to convert a workbook object (<openpyxl.workbook.workbook.Workbook object 0x00000150265A6B80>) into an Output stream using python. this is my python code. def main(inputblob: func....
  • 5
1 vote
0 answers
30 views

how can i deploy Azure functions into AKS using Keda Scaledobjects

i have multiple trigger types like Eventhub,servicebus, Timer, Http,Eventgrid, so i want to use scaled objects using KEDA.how can i write the yaml file for the scaledobjects. i tried to write the ...
  • 29
0 votes
1 answer
56 views

How do I use parameter binding with attributes in a C# Azure Function

I need a property of my queue message to be the output file name for blob output: public static async Task Run([QueueTrigger("my-queue")] MyClass queueMessage, [Blob("my-...
  • 222
0 votes
0 answers
30 views

How can I call a Graph API from an Azure Function triggered by Power Automate without getting blocked by Conditional Access?

I apologize if I am describing this poorly. I have an Azure Function App that I intend to be triggered by a Power Automate custom connector. The Function App has AAD authentication set up. In one of ...
0 votes
0 answers
26 views

Durable functions activity not accepting Uri parameter

I'm using Azure Durable function and I see Activity parameter of type Uri throws exception "Cannot convert input parameter 'url' to type 'System.Uri' from type 'System.String'." [...
  • 121
0 votes
0 answers
51 views

Deploy existing python FastAPI project on azure functions

I'm trying to deploy an existing fast api app on azure functions using VSCode. I get this error: No HTTP triggers found My project structure: And this is the content of function.json { "...
-1 votes
0 answers
18 views

I'm trying to communicate with the iot hub via an edge gateway device [closed]

I'm trying to send data via an edge gateway device. I have set up my edge device which is a linux machine, now I need to send data from an esp32 device to the iot hub via the edge gateway device. The ...
1 vote
1 answer
74 views

Can't see C# Azure Function when deployed on Azure

When deploying my C# Azure Function from VSCode onto Azure, I can't seem to see it on the Portal. I've also noticed that the message "No HTTP Triggers" appears specifically for C# related ...
  • 681
1 vote
0 answers
35 views

How to call SignalR hub method from react?

I'm trying to call the JoinUserToGroup method from a react project, but I'm not getting any response/result. I have implemented SignalR in an Azure Function. NOTE: the negotiate method is being called ...
0 votes
1 answer
52 views

DevOps Release Pipeline ZIP file into Azure Function App Deployment

When i'm trying to do azure devops release pipeline using function i'm getting bellow issues. copying and archive taskes i'm using In the azure function app deploy taks i'm using zip and "i ...
  • 21
0 votes
1 answer
28 views

How to change the application insights cloud role name for an azure function in python?

Basically as said in title. I've read doc on callback functions and changes of variables but where does this all go? I suspect I'm missing something but im not sure what What needs to exist for this ...
0 votes
1 answer
80 views

timer trigger azure function python v2 model - after deployment to azure it says "no http trigger found "

I am trying to deploy an time triggered (schedule) function to azure function using the python v2 model. The function works as expected locally. I am deploying using VSCode and Azurite extension. The ...
0 votes
1 answer
28 views

How to quietly continue processing tasks using Azure durable functions fan-out fan-in pattern with task_any function

I have a list of tasks that need completed. As per the docs, the task_all method will throw an exception whenever any of the tasks fail. According to this, when one of the tasks fails, the task_all ...
0 votes
0 answers
31 views

Creating Azure VM via Durable Functions Endpoint Raises Unexpected `NicReservedForAnotherVm`

Context My team is developing a set of APIs used to manage VMs in Azure Cloud. It consists of a front-end Façade, which accepts requests for long-running actions like creating a VM, toggling its power ...
0 votes
1 answer
44 views

Azure Functions linux nodejs storing and retrieving files

I have a nodejs instance running in an Azure Function App. Using Puppeteer I am able to navigate through a website and download file. I created a path using node os and tmpdir() as suggested in this ...
  • 1,017
0 votes
1 answer
26 views

Change value in column A when the date surpasses the date in column B, SQL Server

I am currently setting up a database in SQL Server for a subscription microservice where people are able to purchase a subscription/membership. In my SQL Server database i have two columns, '...
0 votes
1 answer
31 views

VNet integrated FunctionApp throws an Error: A connection attempt failed [...] (management.azure.com:443)

I set up a function app (running on S1 ASP, and yes, App Settings include WEBSITE_CONTENTOVERVNET 1) that executes MS Graph API calls which works perfectly fine without vNet configuration/integration. ...
  • 23
0 votes
1 answer
41 views

Azure function (written in Python) only writes the last message of a list to service bus queue

I made a service bus queue in Azure and now I want a function that can receive a list of email addresses and put those on the queue. This is my code (Python): import logging import azure.functions as ...
0 votes
0 answers
46 views

How to add a redirect from https://myfirstdomain.com/register to https://myseconddomain.com in Azure?

The use case seems plain and simple: Redirect any requests in the form https://myfirstdomain.com/register to https://myseconddomain.com (note the route "register"). Further Note: https:/...
0 votes
0 answers
31 views

Azure function C# - What is the best way to authenticate to Sharepoint online?

I have a situation where I need to upload/download files using Sharepoint from Azure function app. I have read documentation and I see that App-Only way is preferred. Can someone tell me what would be ...
0 votes
1 answer
68 views

Not creating the file when do output binding with Azure functions using python - locally (using Azure storage emulator and Azure storage explorer)

I have a blob container and two folders in it.(inputs,outputs)When an excel file is placed in the input folder I want to trigger the function and after compiling the code I want to place the output ...
  • 5
0 votes
0 answers
24 views

Calculate Azure Function latency , if multiple instances of functions are running

I have created Azure Function which is Azure Cosmos DB Change feed triggered and this is deployed under SKU Consumption plan. Syncing millions of records from one cosmos to another using the function ...
0 votes
1 answer
82 views

How do I fully delete an Azure Function workspace in VS Code?

I am dipping my toes into my first azure function development using VS Code. From the Azure extension, I used the "Create Function..." button in the "Workspace" panel to create a ...
0 votes
1 answer
54 views

AttributeError: 'MonitorManagementClient' object has no attribute 'location' Microsoft Azure

trying to attain a list of regions/locations from Microsoft Azure that contain the term 'health'. A function that will analyze a .csv file. I used the following function: regions = monitor_client....
0 votes
1 answer
67 views

Can you retrieve the sessionID of an Azure Topic/Subscription message within the Azure function it triggered?

I want to use the SessionId of the message added to the Topic and pulled into my Azure function via a subscription. I assign the sessionId when I place the message in the Topic. Is there a way for me ...
0 votes
0 answers
35 views

.net core Initializing objects for 24hrs

I created a .net azure Http function and in that I need to reuse the instantiated class object for 24hrs without any interruption. for every single http request I can't instantiate due to performance. ...
0 votes
0 answers
31 views

Invoking /functions/admin/download from ARM stopped working

At some, relatively recent, point in time - invoking the /functions/admin/download SCM API for Windows function apps from ARM (https://management.azure.com/subscriptions/<sub>/resourceGroups/<...
0 votes
0 answers
57 views

Azure Function will not add specific dll to Bin folder

I am moving my code to a new machine but my code will not run correctly on the new machine. Old machine will put the newtonsoft.json.dll into the debug/net48/bin folder. New machine will not put the ...
  • 821
0 votes
1 answer
57 views

Application Insights monitor functions: How to skip failed retries

I config Application Insights to monitor function. My function is trigger by the queue. I know function can retry 5 times if there are some errors. For example, if send a message to queue, the ...
0 votes
0 answers
30 views

What is the best approach to create audio files providing a list of links using Azure Audio Content Creation? [closed]

I know how to manually create MP3 audio files from an article using Azure Audio Content Creation tools (text-to-speech). Is there a way to bulk create audio files providing a list of article links ...
  • 301

1
2 3 4 5
290