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

What does the "Storage Account" setting of an Azure Function App do?

It has a default selection of "functionb7be452dbab0" in my case, but I can change it to select other storage accounts. There is no documentation that I can see which explains the storage account setting.
Chris Harrington
  • 1,238
  • 2
  • 15
  • 28
20
votes
3 answers

Azure Functions: configure blob trigger only for new events

I have about 800k blobs in my azure storage. When I create azure function with a blobTrigger it starts to process all blobs that I have in the storage. How can I configure my function to be triggered only for new and updated blobs?
ebashmakov
  • 619
  • 11
  • 18
20
votes
4 answers

Azure Functions - Shared classes

I want to use some shared classes on my Azure Functions to not duplicate code. I have tried to create a empty C# function and create the classes inside the function and then import to the other functions with: #r "../Shared/Class.cs"
Luís Fura
  • 263
  • 1
  • 3
  • 6
20
votes
3 answers

Importing Python modules for Azure Function

How can I import modules for a Python Azure Function? import requests Leads to: 2016-08-16T01:02:02.317 Exception while executing function: Functions.detect_measure. Microsoft.Azure.WebJobs.Script: Traceback (most recent call last): File…
Ryan Galgon
  • 431
  • 1
  • 3
  • 9
19
votes
2 answers

How to edit an existing azure function in vs code

In all tutorials i found so far regarding azure functions with visual studio code, they are all about creating and deplyoing. i'm just wondering, how to open an existing azure function in vs code, modify it and redeploy it. Is that possible? I can…
Mario Semper
  • 511
  • 1
  • 3
  • 17
19
votes
3 answers

ExecutionContext in Azure Function IWebJobsStartup implementation

How to get access to the ExecutionContext.FunctionAppDirectory in Functions Startup class so I can setup my Configuration correct. Please see the following Startup code: [assembly: WebJobsStartup(typeof(FuncStartup))] namespace Function.Test { …
19
votes
2 answers

Azure Function gives error: System.Drawing is not supported on this platform

(If this question is poorly worded, could someone please help me clear it up?) I have an Azure Function (2.0) which relies on some System.Drawing code. I've added a NuGet reference to System.Drawing.Common (4.5.0). After publishing the app,…
19
votes
3 answers

What are the ways to secure Azure functions

I have written 5 Azure functions in Azure Portal using c#. Below are the steps to install my application:- Copy deployment scripts to the Edge node of the cluster Deployment scripts to do the following Call Azure functions to do get my…
Galet
  • 5,853
  • 21
  • 82
  • 148
19
votes
3 answers

How to make a route parameter optional in Azure Function

How to make a route parameter optional in Azure Function public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = "ResolveKey/{key}/{resolver}")]HttpRequestMessage req, TraceWriter log,…
Ramkumar Singh
  • 2,240
  • 4
  • 15
  • 18
19
votes
4 answers

Azure Functions: Force HTTPS

Is there a way with Azure Functions to force connections to be over HTTPS? I'm not seeing it in the App Settings, and I don't see any reference to web.config for Azure Functions.
Doug
  • 6,446
  • 9
  • 74
  • 107
19
votes
7 answers

Make back end APIs only accessible via Azure API management

I have multiple Web APIs deployed in Azure without applying authentication, so anyone has access to internet has the access to the Web APIs. Now I would like to apply authentications to the Web APIs, instead of implementing the same authentication…
18
votes
1 answer

Im not able to mock ServiceBusReceivedMessage and ServiceBusMessageActions

we want to write unit-test for servicebus message trigger. we are using Azure.Messaging.ServiceBus nuget package [FunctionName("serviebustrigger")] public async Task Run ([ServiceBusTrigger("xxxxtopic", "xxxxsubscription", Connection =…
18
votes
5 answers

Using IActionResult with Azure Functions in .NET 5?

After migrating my Azure Functions project to .NET 5, it has started wrapping my responses in a weird wrapper class. For instance, consider the following endpoint: public record Response(string SomeValue); [Function("Get")] public async…
Mathias Lykkegaard Lorenzen
  • 15,031
  • 23
  • 100
  • 187
18
votes
6 answers

New deployed azure function returns 404 Not Found error

Hey I have deployed new azure function using Azure dev ops CI/CD. The function app has been deployed successfully and when I go to the main URL, it says your function app is running. I tried to test the end points("/save") using azure portal and…
kiflay
  • 699
  • 2
  • 7
  • 14
18
votes
5 answers

Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions

I am deploying a function and I am able to build and publish it successfully in a function app V2 from Visual studio, but in the azure portal I see the below message inside my function app. I have added the necessary package but still its of no use.…
Ankit Kumar
  • 476
  • 1
  • 11
  • 38