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

Azure function dotnet-isolated v4

I have recently started my C# journey so bare with me... so my issue is that after installing azure-functions-core-toolsv4 (mac using brew) I was finally able to see why Rider (which use the same as a plugin) just exited with error (Process finished…
Arleth
  • 51
  • 1
  • 6
3
votes
1 answer

task hub name must be specified in host.json when using slots

On adding a staging slot in my function app, I see the error: task hub name must be specified in host.json when using slots I updated host.json as follows: { "version": "2.0", "extensions": { "durableTask": { "hubName":…
user989988
  • 3,006
  • 7
  • 44
  • 91
3
votes
2 answers

Deployment slots in Azure FunctionApp

I'm trying to understand how deployment slot works (https://learn.microsoft.com/en-us/cli/azure/webapp/deployment?view=azure-cli-latest). I ran the following command in order to create a new staging slot: az functionapp deployment slot create --name…
user989988
  • 3,006
  • 7
  • 44
  • 91
3
votes
1 answer

Why Consumption Azure Functions create an App Service Plan and Storage Account?

When you create an Azure Function Consumption App the platform automatically creates an App Service Plan which is the free one. Isn't the consumption Functions meant to be scalable and serverless so you don't have to deal with server farms?
Fotios Tragopoulos
  • 449
  • 1
  • 7
  • 24
3
votes
1 answer

Using appsettings in Azure function

This is a follow up question to this question: appsettings.json and azure function by timer I want to have dynamic settings which I can change without redeploying the Azure function. The linked question referrers to a short…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
3
votes
1 answer

Azure function binding vs. manually instantiating class

For Azure functions:Is there any difference using the Blob binding or manually creating the reference for it? 1: Binding public Task Run( [HttpTrigger(AuthorizationLevel.Function, "get")] HttpRequest req, [Blob("images")] CloudBlobContainer…
Rasmus
  • 225
  • 2
  • 6
3
votes
1 answer

Calling Lokalise REST Api From Azure Function Sometimes SocketException: No such host is known

We are intermittingly seeing in logs SocketException: No such host is known in Azure function while calling https://api.lokalise.com/api2/projects/{id}/keys using HttpClient. The problem is that there is no way to know whether issue is from…
Imran Qadir Baksh - Baloch
  • 32,612
  • 68
  • 179
  • 322
3
votes
4 answers

Azure Function: DefaultAzureCredential.GetTokenAsync fails when running locally

I have a C# azure function on .NET 6 running in dotnet-isolated mode. This function calls another azure function, which is using Azure AD Authentication. In order to generate the token I have the following code: var audience =…
3
votes
0 answers

dbt pipeline call from Azure Data Factory using Azure Container Instance with a variable command

I'm looking to call dbt in a child pipeline from Azure Data Factory. Looking at the following project on GitHub it's been done before. https://gitlab.com/hashmapinc/oss/dbtonazure What I would like to do though is pass a parametrised call from the…
3
votes
2 answers

Have the Document class when using CosmosDBTrigger been deprecated?

Have the Document class in the Microsoft.Azure.Documents namespace been deprecated when developing isolated Azure functions? I have recently migrated/upgraded a .NET6 Azure Function (v4) from running in-proccess to out-of-process a.k.a isolated…
3
votes
2 answers

Azure Function App v4 + .NET 6.0 (in process) + Blob binding (not trigger) = Can't bind Blob to type error

I'm having trouble getting this combination working, even in a hello world function. I want a function which consumes a table and blob, but not as triggers (trigger is timer). When I run the function app locally I'm…
Leeroy
  • 303
  • 1
  • 10
3
votes
0 answers

How to resolve dependencies inside of Startup.cs in .NET 6?

We need to get an instance of a service inside of the Configure() method in Startup.cs for an Azure Function app on .NET 6. For .NET core apps, this can be achieved by adding the service inside the ConfigureServices() method, and then getting the…
a3y3
  • 1,025
  • 2
  • 10
  • 34
3
votes
2 answers

What happens when an Azure Timer function has an execution duration that's longer shorter than the trigger period?

If an Azure function executes for say 10 minutes, but has a period of 5 minutes, does the trigger still fire at the 5 minute mark?
hexcode
  • 393
  • 1
  • 4
  • 13
3
votes
2 answers

Azure Function - Failed to start a new language worker for runtime: Python (M1 Mac incompatible architecture (have 'x86_64', need 'arm64e'))

I am trying to Build http triggered python function app. I just initialized it using terminal commands. I have not modified anything in base template. I am trying to run it on localhost but when I use 'func start host' I get this…
3
votes
1 answer

Azure Queue Trigger reaches MaxDequeueCount immediately

I have an azure queue trigger set up: [FunctionName("TransformData")] public async Task Transform( [QueueTrigger("product-prices")] string message) { await TransformAndLoadData(message); } Whenever I add items to the…
Lukas
  • 162
  • 9
1 2 3
99
100