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
237
votes
9 answers

Azure Webjobs vs Azure Functions : How to choose

I've created some Azure Webjobs that use triggers and I've just learnt about Azure Functions. From what I understand Azure Functions seem to overlap with Azure Webjobs features and I have some difficulty to understand when to choose between Function…
Thomas
  • 24,234
  • 6
  • 81
  • 125
129
votes
5 answers

How can I use NuGet packages in my Azure Functions?

Using Azure Functions, can I reference and use NuGet packages in my C# function?
116
votes
9 answers

What is the simplest way to run a timer-triggered Azure Function locally once?

I have a few C# Azure Functions that run on a schedule using timer triggers. I've set them up like so, where %TimerSchedule% refers to a cron expression in the app settings: public static void Run([TimerTrigger("%TimerSchedule%")]TimerInfo myTimer,…
Reilly Wood
  • 1,753
  • 2
  • 12
  • 17
113
votes
11 answers

How to run Azure Function app on a different port in Visual Studio

I am setting local host port in local.setting.json. Referring Microsoft doc https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local The file looks like below { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "", …
Ramkumar Singh
  • 2,240
  • 4
  • 15
  • 18
90
votes
2 answers

Is it possible to rename an Azure App Service plan using the Azure Portal?

Is it possible to rename an App Service Plan? I have already tried in both the old and new portals and can't find any rename options.
Mark Cooper
  • 6,738
  • 5
  • 54
  • 92
89
votes
24 answers

Missing value for AzureWebJobsStorage in local.settings.json local development in Visual Studio 2017

I'm developing a azure function locally, with the Storage Emulator and de Storage Explorer opened. File tree local.settings.json { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", …
rubens.lopes
  • 2,265
  • 1
  • 18
  • 23
87
votes
15 answers

Azure Functions Database Connection String

How do I add or access an app.config file in Azure functions to add a database connection string? If you're not supposed to add an app.config and there is a better way to access an external database to execute the function please let me know best…
Lereveme
  • 1,614
  • 2
  • 15
  • 18
76
votes
9 answers

CORS with Azure function from localhost (not CLI)

We are using axios in a vue.js app to access an Azure function. Right now we are getting this error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access. We…
steverb
  • 1,415
  • 1
  • 10
  • 12
67
votes
11 answers

The client with object id does not have authorization to perform action 'Microsoft.DataFactory/datafactories/datapipelines/read' over scope

I was trying to invoke data factory pipeline from azure function programmatically. Its throwing following error. link: http://eatcodelive.com/2016/02/24/starting-an-azure-data-factory-pipeline-from-c-net/ AuthorizationFailed: The client…
ravibhat
  • 811
  • 1
  • 7
  • 19
66
votes
5 answers

Rename an Azure Function

How to rename an Azure Function? I want to replace a default 'HttpTriggerCSharp1' name to my own. At the moment unfortunately this name is included in the function url and there is no option to change…
61
votes
10 answers

How do I return JSON from an Azure Function

I am playing with Azure Functions. However, I feel like I'm stumped on something pretty simple. I'm trying to figure out how to return some basic JSON. I'm not sure how to create some JSON and get it back to my request. Once upon a time, I would…
xam developer
  • 1,923
  • 5
  • 27
  • 39
59
votes
13 answers

How to pass parameters by POST to an Azure function?

I'm trying to do a simple Azure Function to learn about it. There will be 3 functions: 1 function to insert a row into a table of a database. This table will contain the current date and a string parameters typed by the user and passed by GET. 1…
davidrgh
  • 853
  • 2
  • 10
  • 17
58
votes
6 answers

Azure Function timer configure through app settings

I am working on Azure functions timer Job , i need to get the cron expression from the appsettings. Please let me know, how can i get the value from the appsettings in the Azure functions. I want to run my azure function starting from 9:00 AM to…
Palanivelu Samudi
  • 1,125
  • 1
  • 10
  • 13
54
votes
8 answers

Azure Functions: There was an error performing a read operation on the Blob Storage Secret Repository

In testing Azure Functions locally, I am receiving this error: "There was an error performing a read operation on the Blob Storage Secret Repository. Please ensure the 'AzureWebJobsStorage' connection string is valid." I have Azure Blob Storage…
mattsmith5
  • 540
  • 4
  • 29
  • 67
53
votes
1 answer

Async programming and Azure functions

In the Azure functions "Performance considerations" part, Functions Best Practices, under "Use async code but avoid blocking calls", async programming is the suggested practice for performance improvement. However, what is the best way to use it?…
Mandar Jogalekar
  • 3,199
  • 7
  • 44
  • 85
1
2 3
99 100