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.

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. You can write just the code you need for the problem at hand, without worrying about a whole application or the infrastructure to run it. Functions can make development even more productive, and you can use your development language of choice, such as C#, F#, Node.js, Java, or PHP. Pay only for the time your code runs and trust Azure to scale as needed. Azure Functions lets you develop serverless applications on Microsoft Azure.


###Getting Started

15299 questions
3
votes
1 answer

Hot to get Azure Function cost for each function in the Azure function app?

I'm monitoring my Azure Function App costs from Azure cost management tool, but from there, it isn't possible to get the cost for each different function in the app. Now I've noticed an unexpected increase in costs and I'd like to know the functions…
3
votes
1 answer

How to find the total cost of an Azure function

How would I find the total cost of an Azure function (including costs incurred by the Azure function on the Azure storage account such as cost of LRS List and Create Container Operations when multiple Azure functions are using the same Azure storage…
3
votes
1 answer

How to remove Azure.Storage.Blobs logging from Azure Function App logs?

I have started using Azure.Storage.Blobs nuget in my Function Apps. Only problem it causes at the moment is that it logs a lot of unnecessary stuff that I don't need to see. Mainly Request and Response messages that fill a large amount of my…
3
votes
0 answers

Consuming Server Sent Events in .NET

I am working on a service which consumes SSE from the Validic Inform platform to handle wearable device data, and process it for our other various services. Currently there is a complex solution in order to handle this data, and I want to try and…
alm0st907
  • 58
  • 1
  • 6
3
votes
2 answers

Unable to upgrade Azure Functions Core Tools, Exception "Cannot create instance of type 'NuGet.Versioning.VersionRange'"

I'm trying to run an Azure Function. After upgrading to .Net 6, debugging it locally with an updated version of Visual Studio 2022 gives me the following exception: A host error has occurred during startup…
Jon Koeter
  • 1,005
  • 2
  • 16
  • 25
3
votes
1 answer

Azure Function Queue Trigger Gets Triggered Twice, Two Instances Running?

I have an Azure Function, with a queue trigger. The function must proces one queue message each time, one by one, sequentially. This is important, since the function uses an external OAuth API, with various limitions on requesting new access and…
TJ_
  • 629
  • 6
  • 12
3
votes
0 answers

How do you abandon a message in a dotnet isolated Servicebus triggered function?

Is there a best way to abandon a message in an Azure dotnet isolated function app? I'm currently throwing an exception to force the function to complete unsuccessfully as there is no way to access a MessageReciever like you do in an in-process azure…
AJames
  • 59
  • 6
3
votes
0 answers

Create a resource ONLY IF that does not exist

I have the following bicep file to create an Azure Function App with a staging slot: module functionAppTemplate 'functionApp.bicep' = { name: 'functionAppTemplate' params: { name: '${functionAppName}' kind: functionAppKind location:…
user989988
  • 3,006
  • 7
  • 44
  • 91
3
votes
0 answers

User-Assigned Managed Identity for Function App to access its own (hosting) storage

I have created a User-Assigned Managed Identity that I have assigned to a Function App. I want to replace the Access Key connection string with the User-Assigned Managed Identity for the Function App to connects to its own stage, i.e., the hosting…
Ershad Nozari
  • 607
  • 3
  • 9
  • 23
3
votes
2 answers

Possible to call phone numbers from an Azure Function App in C#?

I have an Azure Function App which sends emails and sms messages based on data received from an endpoint. Recently I've been asked to include phone calling for high priority issues. I haven't been able to find any resources or hints on how to handle…
TGB-Opp
  • 31
  • 1
3
votes
1 answer

Azure Functions can be containerized. What is the use case for it?

Azure functions can be containerized but what are the actual use cases for it. Is it portability and ease of running it in any Kubernetes environment on prem or otherwise? Or anything further?
GilliVilla
  • 4,998
  • 11
  • 55
  • 96
3
votes
2 answers

What is the logic behind scale controller in Azure Functions?

I am currently working on understanding Event Hub along with Azure Function. I have checked out event driven scaling which mentions about the scale controller. But none of the azure documents I referred gave out the logic behind scale controller as…
potterson11
  • 147
  • 7
3
votes
1 answer

How to add user properties to Service Bus topic output from Javascript Azure Function

I'm working on a TypeScript Azure Function that has an Azure Service bus topic as its output. I can send messages with it without any problem, but I cannot set any metadata as custom property on the message. I've tried using an object with the same…
3
votes
1 answer

Azure NAT Gateway multiple availability zones with Azure functions

I have multiple azure functions that are invoking external APIs and I want all the requests to come from a single IP or a set of IP's so that the external APIs can whitelist my azure functions. Question: Find a way to have a small set of outbound…
3
votes
1 answer

Why do the C# Managed Functions for my Azure Static Web App return 503 "Function host is not running."

When deploying an Azure Static Web App with a C# Managed Functions backend (this is the in-the-box functions, as opposed to Bring Your Own Functions), the functions return 503 and: Function host is not running.
John Reilly
  • 5,791
  • 5
  • 38
  • 63