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

Why do Azure Functions take an excessive time to "wake up"?

We have a simple Azure Function that makes a DocumentDB query. It seems like the first time we call it there is a long wait to finish, and then successive calls are very fast. For example, I just opened our app and the first Function call took…
Graham
  • 7,431
  • 18
  • 59
  • 84
17
votes
3 answers

Azure functions: Installing Python modules and extensions on consumption plan

I am trying to run a python script with Azure functions. I had success updating the python version and installing modules on Azure functions under the App Services plan but I need to use it under the Consumption plan as my script will only execute…
mike
  • 881
  • 2
  • 10
  • 23
17
votes
1 answer

How can I manually mark an invocation as Failure in an Azure Function?

I have tried many things but the only way I can force AzFn to understand the invocation has failed, is to throw an exception and not handle it. So, if I return an HttpResponseException, AzFn will consider the invocation as a success. That feels…
imbageek
  • 609
  • 5
  • 18
17
votes
1 answer

Can't provide NuGet package source credentials to Azure Function

I have an Azure function which has a dependency on a private package feed. I am copying a nuget.config file to the app service which looks like this:
Vinyl Warmth
  • 2,226
  • 3
  • 25
  • 50
17
votes
5 answers

Deploy to azure functions using powershell

Is there any way, I can deploy to azure functions using powershell scripts? CI will not work for us because we use octopus deploy to deploy to all of our production services. So it would be beneficial if there is a way to deploy using powershell…
Krishh
  • 4,111
  • 5
  • 42
  • 52
17
votes
1 answer

Generating names for output blobs for an Azure Function

Using the binding options for an Azure Function one can specify the name of a Blob to be written based on parameters derived from the trigger (e.g. the queue message that triggered the function); the documentation shows an example of that. My…
Luc C
  • 1,133
  • 8
  • 22
16
votes
8 answers

Error "Did not find functions with language [dotnet-isolated]" in Azure Function when migrating from .NET 3 to .NET 5

I'm trying to migrate an Azure Function that works perfectly on .NET 3.1 to .NET 5. I followed Microsoft's GitHub guide and still can't get it to run or debug locally (didn't even try to publish to Azure). I'm getting this…
NOP-MOV
  • 792
  • 2
  • 8
  • 28
16
votes
3 answers

Express.js app serverless, using Lambda or Functions - a good idea?

Disclaimer: I admit this is more of a broad-ish best practice question, rather then a specific programming issue, however, I believe the SO bunch is the best audience for it. I am aware of this similar question (Should I be using Express.js in a…
marko-36
  • 1,309
  • 3
  • 23
  • 38
16
votes
7 answers

How to add an appsettings.json file to my Azure Function 3.0 configuration?

The new Azure Function 3.0 SDK provides a way to implement a Startup class. It gives access to the collection of services that are available by dependency injection, where I can add my own components and third-party services. But I don't know how to…
16
votes
1 answer

Azure Function should log or throw exception on error?

I have Azure Function (Http trigger) that can fail. I also have Application Insights configured for it. In case of error (Which is better): Catch exception, wrap with more info and rethrow it. (Sends 500 response) OR Catch exception, log it, wrap…
Hooch
  • 28,817
  • 29
  • 102
  • 161
16
votes
5 answers

Cannot install pyodbc in docker and getting error command 'gcc' failed with exit status 1

I'm trying install pyodbc in docker running inside linux container But I'm getting the following error Click here to view the image src/pyodbc.h:56:10: fatal error: sql.h: No such file or directory #include ^~~~~~~ …
saranraj kumar
  • 207
  • 1
  • 2
  • 10
16
votes
4 answers

How can I monitor number of instances of a function app when it scales out?

I am looking into "Metrics" tab (Platform Features -> Metrics) in Azure portal for my function app. I can see interesting metrics like CPU time, request count, etc. but there is no metric that would show the number of instances that the app has…
Turbo
  • 2,179
  • 18
  • 38
16
votes
3 answers

Keyword not supported: 'authentication' error for azure integrated connection

Getting Keyword not supported: 'authentication' error while trying to connect an azure DB through 'Active Directory Integrated' option in .NET core 2.1 project. Note: I am using EF core to connect the Data source.
16
votes
3 answers

How to use Azure Managed Identity in Azure Function to access Service Bus with a trigger?

I have created a ServiceBus namespace in Azure, along with a topic and a subscription. I also have a simple Azure version 1 function that triggers on a received topic in the ServiceBus, like this: [FunctionName("MyServiceBusTriggerFunction")] public…
16
votes
8 answers

Azure Function App - Publish failed

I'm unable to publish (WebDeploy) my Azure Function App (It's a Durable Function, I know it deosn't matter, but, just in case if matters). This started happening today. I'm getting a "Publish Failed" popup and the below error message in the output…
Prawin
  • 1,158
  • 2
  • 12
  • 26