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
53
votes
2 answers

Including a file when I publish my Azure function in Visual Studio

I know this seems like a simple thing but I can't find any help online. I want to include a file (.html) along with my Azure function when I publish it using Visual Studio. Then I want to be able to access this file in my Azure function. Why? It…
chuckd
  • 13,460
  • 29
  • 152
  • 331
52
votes
5 answers

How to inject or use IConfiguration in Azure Function V3 with Dependency Injection when configuring a service

Normally in a .NET Core project I would create a 'boostrap' class to configure my service along with the DI registration commands. This is usually an extension method of IServiceCollection where I can call a method like .AddCosmosDbService and…
50
votes
2 answers

How should I organize a solution with multiple Azure Functions?

Where can I find guidance on organizing a Visual Studio solution with multiple Azure Functions? Specifically, how should the project be organized? A single Azure Function resides in a single class file. I suppose each function could be its own…
DenaliHardtail
  • 27,362
  • 56
  • 154
  • 233
48
votes
13 answers

Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=5.0.0.0 in Azure Functions

I have an API and a separate Azure Functions app. I upgraded my API app to .NET 5 and it's working fine. In the API app's solution, I have class library projects that I also reference in my Azure Functions app. These class libraries are…
Sam
  • 26,817
  • 58
  • 206
  • 383
47
votes
7 answers

Read values from local.settings.json in VS 2017 Azure Function development

I am writing an Azure function in VS 2017. I need to set up a few custom configuration parameters. I added them in local.settings.json under Values. { "IsEncrypted":false, "Values" : { "CustomUrl" : "www.google.com", "Keys": { …
Venkata Dorisala
  • 4,783
  • 7
  • 49
  • 90
47
votes
9 answers

Azure function apps logs not showing

I'm relatively new to Azure and I just went through the tutorial on how to create a new Azure function, which is triggered when a new blob is created, and had this as the default code in it. public static void Run(Stream myBlob, string name,…
Kikanye
  • 1,198
  • 1
  • 14
  • 33
45
votes
4 answers

Configure CORS for Azure Functions Local Host

I'm testing an Azure Functions app locally with the Azure Functions CLI tooling. Is there any way I can configure CORS settings for the local host?
Mark Heath
  • 48,273
  • 29
  • 137
  • 194
45
votes
4 answers

Azure Functions timeout for Consumption plan

Is there a way to change the current 5 minutes timeout limit for Azure Functions running under the Consumption plan ? For some data analytics computations 5 minutes is not enough time. The alternative of using webjobs doesn't allow parallel…
donquijote
  • 1,642
  • 5
  • 19
  • 41
45
votes
8 answers

Azure Functions vs. Logic Apps

Functions & Logic Apps are two distinct offerings by Microsoft Azure. I wonder what are the use cases that one should favor the new Functions offering over Logic Apps.
Rotem Varon
  • 1,597
  • 1
  • 15
  • 32
44
votes
3 answers

Configuring Log Level for Azure Functions

I have an Azure Function App which has Application Insights configured. My functions have some LogTrace() messages in but they are not being captured by AppInsights. Do I have to configure a minimum loglevel somewhere?
phil
  • 1,938
  • 4
  • 23
  • 33
44
votes
4 answers

Azure application insights or log analytics

What is the use case for Azure application insights or log analytics? I am using APIM and Azure Functions and want to perform logging for requests. Which one is the best fit, application insights or log…
44
votes
5 answers

How can I use the new DI to inject an ILogger into an Azure Function using IWebJobsStartup?

I am using Azure Function v2. Here is my function that uses the constructor injection: public sealed class FindAccountFunction { private readonly IAccountWorkflow m_accountWorkflow; private readonly IMapper m_mapper; private readonly…
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
44
votes
22 answers

No job functions found. Try making your job classes and methods public

First off, I have looked at the other SO posts with the same error message and none seem to resolve my issue. I have tried many permutations and options. My function builds fine but will not run in the CLI, I get the following cryptic error. The…
43
votes
7 answers

Azure Function: Publish fails with message "Web Deploy cannot modify the file on the Destination because it is locked by an external process."

I am developing an Azure Functions Project and when I publish first time, OK. Then I publish again, this Error appears: Web Deploy cannot modify the file 'FunctionApp5.dll' on the destination because it is locked by an external process. In order…
Tony
  • 16,527
  • 15
  • 80
  • 134
42
votes
8 answers

How to call another function with in an Azure function

I have written 3 functions as follows create users in db fetch users from db process users In [3] function, I will call [2] function to get users using Azure function url as below:- https://hdidownload.azurewebsites.net/api/getusers Is there any…
Galet
  • 5,853
  • 21
  • 82
  • 148