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
14
votes
1 answer

What is use of azure functions AzureWebJobsStorage and AzureWebJobsSecretStorageType settings

Can you please help me to understand what is use of azure functions AzureWebJobsStorage and AzureWebJobsSecretStorageType settings. I am new to Azure , So please say answer through an example .
Balu
  • 484
  • 1
  • 5
  • 19
14
votes
3 answers

Dynamically set schedule in Azure Function

I have following function.json for my Azure function whose schedule is set to run at 9.30 daily. What I want is to dynamically set the schedule attribute of this json. This scenario arises when a client who is using my application enters date, on…
Karan Desai
  • 3,012
  • 5
  • 32
  • 66
14
votes
3 answers

How to persist state in Azure Function (the cheap way)?

How can I persist a small amount of data between Azure Function executions? Like in a global variable? The function runs on a Timer Trigger. I need to store the result of one Azure Function execution and use this as input of the next execution of…
Heinrich Ulbricht
  • 10,064
  • 4
  • 54
  • 85
14
votes
5 answers

Azure Functions notification on failure

I have timer-triggered Azure functions running in production, but now I want to be notified if the function fails. In my case, access to various connected services can cause crashes, and there are many to troubleshoot. The crash is the type of…
Leigh007
  • 201
  • 1
  • 2
  • 8
14
votes
2 answers

Azure Functions and Azure Application Gateway or API Management

I have several Microsoft Azure functions developed. I would like to use a gateway with firewall to make my Azure functions available and protected using one public IP only. Is there way to use Azure Functions with Azure Application Gateway or API…
14
votes
6 answers

Load Connection String from Config File in Azure Functions

In my Azure Function I am using a Library which establishes a connection to an SQL server via the ConnectionString from the ConfigurationManager like this: var cs =…
officer
  • 2,080
  • 1
  • 20
  • 29
14
votes
1 answer

Azure-functions: Can environment variables be used in function.json?

I'm currently using the git push deployment option to deploy a few copies of an azure-function. The function's function.json file has multiple "connection" entries linking to different storage accounts (i.e. for a blob trigger & table output). In…
Rufus Nelson
  • 207
  • 2
  • 5
13
votes
2 answers

Difference .net 6 and .net 6 isolated for Azure Function Apps

With Azure functions what is the difference of using .net 6 and .net 6 isolated?
Mark Homer
  • 960
  • 6
  • 15
13
votes
4 answers

How to setup Serilog with Azure Functions v4 correctly?

I want to use Serilog in an Azure Function v4 (.net 6) (the logs should be sent to Datadog). For this I have installed the following nuget packages:
mikehachen
  • 256
  • 1
  • 2
  • 8
13
votes
3 answers

Azure Function Middleware: How to return a custom HTTP response?

I am exploring Azure Function running on .net 5 and I found out about the new middleware capabilities. I have built a dummy middleware like this one: public sealed class ExceptionLoggingMiddleware : IFunctionsWorkerMiddleware { private readonly…
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
13
votes
3 answers

How to migrate Azure Functions v3 to .net core 5.0

I have upgraded all assemblies in an Azure Function v3 project to version 5.0 but I am unable to run the function. Here it is my function's csproj file's partial definition: netcoreapp3.1
Arash
  • 3,628
  • 5
  • 46
  • 70
13
votes
2 answers

How to configure a default JsonSerializerOptions (System.Text.Json) to be used by Azure Function v3?

I have a set of Azure Functions v3 running on .net core 3.1. I have a custom configuration of JsonSerializerOptions that I want to be used automatically by my functions when de/serializing data. Question How can I set up my Azure Functions so that…
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
13
votes
3 answers

See/Change underlying storage of Azure function app

Whenever I create a new Azure function app in the Azure, I select a storage account for it to use. When the app is created, how do I see/change the storage account? I have tried to poke around in the portal and have not been able to see that where I…
Henrik Gering
  • 1,769
  • 16
  • 29
13
votes
1 answer

IHostedService usable in Azure Functions App?

Regardless of whether we should, can we use IHostedService in an Azure Functions App? Here is an attempt to register a hosted service (background service, specifically) as IHostedService: internal sealed class Startup : FunctionsStartup { public…
13
votes
3 answers

Azure Function creating too many connections to PostgreSQL

I have an Azure Durable Function that interacts with a PostgreSQL database, also hosted in Azure. The PostgreSQL database has a connection limit of 50, and furthermore, my connection string limits the connection pool size to 40, leaving space for…
Scotty H
  • 6,432
  • 6
  • 41
  • 94