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
33
votes
4 answers

What is the Azure equivalent of AWS Lambda?

At the moment we are running our application on an AWS Beanstalk but are trying to determine the suitablilty of Azure. Our biggest issue is the amount of wasted CPU time we are paying for but not using. We are running on t2.small instances as these…
MayoMan
  • 4,757
  • 10
  • 53
  • 85
32
votes
5 answers

Azure function - "Did not find any initialized language workers"

I'm running an Azure function in Azure, the function gets triggered by a file being uploaded to blob storage container. The function detects the new blob (file) but then outputs the following message - Did not find any initialized language…
nathan shumoogum
  • 353
  • 1
  • 4
  • 9
32
votes
1 answer

Custom IExceptionHandler

I'm trying to get a custom IExceptionHandler to work with my Azure Function (C# class library). The idea is to have my own exception handler for unexpected exceptions that will contain my own in-memory trace log; to clarify, I do want these sent to…
Stephen Cleary
  • 437,863
  • 77
  • 675
  • 810
32
votes
6 answers

Azure Functions binding redirect

Is it possible to include a web.config or app.config file in the azure functions folder structure to allow assembly binding redirects?
31
votes
3 answers

Azure App Service Plan: Function vs App Service?

When hosting an Azure Function in an App Service Plan, are there any significant differences compared with using an App Service (EDIT: for a restful API) associated with the same App Service Plan? I assume the only difference is that the Function…
scottctr
  • 683
  • 2
  • 6
  • 19
31
votes
5 answers

When I am running azure HTTP Trigger function i am getting 401 unauthorized

I am trying to run Azure HTTP Trigger Azure Function and I am receiving a 401 Unauthorized. It was working fine for me earlier. When I created the new function under the same Function App and copied the same code then also it is running fine but…
Sumit Garg
  • 373
  • 1
  • 5
  • 12
31
votes
4 answers

Is it possible to read File from same folder where Azure function exists

In my Azure C# function I need to read a .txt file. I make the .txt file in Visual studio and set it to "copy Always". Now I am using this code to read the file var dir = System.IO.Path.GetDirectoryName( …
Anirudha Gupta
  • 9,073
  • 9
  • 54
  • 79
31
votes
7 answers

Function host is not running

I have a Function App in azure and when I hit the URL of the function app it says "Function host is not running." I am not sure where I have to check and what needs to be changed. I tried restart but still no luck.
31
votes
11 answers

Azure Function fails to bind ILogger

My function is referencing an assembly that references Microsoft.Extensions.Logging.Abstractions 2.0.0. If I add a nuget reference to that version to the function's assembly, function execution fails with: [1/25/2018 11:14:46 PM]…
RA.
  • 1,405
  • 1
  • 11
  • 18
31
votes
3 answers

Azure functions - should functions be written inside static classes

I'm starting to try out Azure functions. I'm using Visual Studio 2017 Preview version 15.3. When I right click on the Azure Functions project I created, and select Add>New Item...>Azure Function, the default template Visual Studio generates is of a…
bjd54321
  • 422
  • 1
  • 6
  • 13
31
votes
4 answers

How to check Azure function is running on local environment? `RoleEnvironment` is not working in Azure Functions

I have a condition in code where i need to check if current environment is not local.i have used !RoleEnvironment.IsEmulated, now this is not working in Azure functions but works in Cloud service. Same code is Shared in Cloud service also, so…
Avinash patil
  • 1,689
  • 4
  • 17
  • 39
31
votes
2 answers

Error while executing test, if using CreateResponse extention method to return Azure Function HttpResonseMessage

My Azure Function code is like below public static class MyHttpTriggerFunction { public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]HttpRequestMessage req, TraceWriter…
Ramkumar Singh
  • 2,240
  • 4
  • 15
  • 18
31
votes
2 answers

Multiple triggers for an Azure Function

We have an Azure Function that has an event hub trigger. Is it possible to have a trigger on more than one event hub for the same Azure Function?
Naren
  • 735
  • 1
  • 9
  • 19
31
votes
8 answers

Azure Functions - using appsettings.json

Is it possible to use an appsettings.json file in Azure Functions? There is documentation for environment variables here.. https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#environment-variables ..however we use…
Nosmadas
  • 632
  • 3
  • 9
  • 17
31
votes
2 answers

How can i use package management in NodeJS Azure Functions?

I'm trying to build this sample project as a Azure Function and it requires some packages https://github.com/OfficeDev/O365-Nodejs-Microsoft-Graph-App-only I can see that I can use packet management in NodeJS Azure Functions using…
Jeremy Thake MSFT
  • 2,058
  • 2
  • 13
  • 11