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

Timeout value of 00:05:00 was exceeded by function in azure functions

I am running an azure function with basic plan in portal. I am getting this timeout error and my function is not running because of this reason. How I can resolve this issue
suresh
  • 329
  • 2
  • 4
  • 8
13
votes
2 answers

What is the point of writing REST APIs but in Azure Functions?

I've just started following some Azure Function tutorials and digging into this more so I'm quite New to this and my question may seem very easy but I couldn't find any answer for it yet. What is the point of creating REST APIs using Azure…
Ali
  • 847
  • 2
  • 13
  • 37
13
votes
4 answers

Azure functions local.settings.json represented in appsettings.json for a ServiceBusTrigger

I currently have an azure function using the ServiceBusTrigger binding [ServiceBusTrigger("%TopicName%", "%SubscripionName%", Connection = "MyConnection")] string catclogueEventMsgs, ILogger log, ExecutionContext context) which uses this…
O'Neil Tomlinson
  • 702
  • 1
  • 6
  • 28
13
votes
3 answers

Read custom settings from local.settings.json in Azure functions

I am trying to retrieve a custom setting from local.settings.json file. Example I am trying to read tables list present in the below local.settings.json file { "IsEncrypted": false, "Values": { "AzureWebJobsStorage":…
Pரதீப்
  • 91,748
  • 19
  • 131
  • 172
13
votes
2 answers

HttpClient best practices in Azure Functions

I need to build an Azure Function that: Responds to a HTTP POST request Does 7x HTTP HEAD requests based on the data. I've found some guidance here and here But, it's not entirely clear what to do, and how it works? As in the second link, i've…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
13
votes
3 answers

How to run Headless Chrome in Azure Cloud Service or Azure Functions?

I am trying to use Headless Chrome to generate a PDF file from a complex HTML file (contains images, SVGs, etc.). I am able to use wkhtmltopdf.exe on Cloud Service (Windows) to generate simple PDF file, but I really need Chrome to produce PDFs as…
13
votes
3 answers

How to debug ServiceBus-triggered Azure Function locally?

My function will be triggered from an existing ServiceBus topic. I have created the function using the new tooling in VS2017 (15.3) preview, as a compiled function. How can I test this function locally?
13
votes
1 answer

Azure functions are slow

I’m testing the CPU performance of functions, so I made a function that finds the prime numbers in a number. It is triggered by Azure Service Bus. On my local machine it runs in 350ms. The function, when running in a consumption plan, takes around…
13
votes
4 answers

HttpRequestMessageExtensions not being found at run-time in Azure Function

I've got an Azure Function app that creates a precompiled DLL (so it uses normal .cs files, not the older .csx method, pre-VS2017). Previously, it was targeting .Net Framework 4.5.2. I updated it to 4.7 so as to use some of the new C# 7 features. I…
Architekt
  • 2,141
  • 1
  • 22
  • 27
13
votes
3 answers

Assembly changes detected. Restarting host

My Azure Functions were running fine and all of a sudden I am getting several "Assembly changes detected. Restarting host..." messages that is preventing my functions from completing. I am not deploying new code so not sure what is triggering the…
Andy T
  • 10,223
  • 5
  • 53
  • 95
13
votes
3 answers

Azure Functions - NodeJS - Response Body as a Stream

I'd like to return a file from Blob Storage when you hit a given Azure Function end-point. This file is binary data. Per the Azure Storage Blob docs, the most relevant call appears to be the following since its the only one that doesn't require…
Doug
  • 6,446
  • 9
  • 74
  • 107
13
votes
5 answers

How to delete a blob using Azure Functions?

I am creating an Azure function that triggers when an image is uploaded or added to a particular Azure Storage, and it does the following: 1.) Resize the image 2.) Put the image to correct directory (using Output binding) 3.) Delete the original…
Raven
  • 2,187
  • 7
  • 35
  • 61
13
votes
2 answers

Reference c# class library in my Azure Function

Is it possible to reference a c# class library in an Azure Function visual studio project? I am aware of the possibilities to reference external libraries and Nuget packages. Currently I am using shared .csx files as described here. These .csx…
Wessel Kranenborg
  • 1,400
  • 15
  • 38
13
votes
4 answers

Azure Functions pricing and timeout

I've just noticed recently, that Azure functions acquired a 5 min timeout on the dynamic pricing tier somewhere along the timeline. As I've been busy doing other things, this flew under my radar, until I noticed some long running functions not…
JasonX
  • 503
  • 7
  • 21
13
votes
1 answer

Is there any difference between "Platform 32-bit" or "Platform 64-bit" for Azure Functions?

When I create Azure Functions, it will set "Platform 32-bit" for default. However I normally set ASP.NET MVC, OWIN or any other projects as 64bit. Platform 32-bit for default I'm wondering with "What the difference with 32-bit or 64-bit for Azure…
guitarrapc
  • 143
  • 1
  • 6