Questions tagged [azure-functions-runtime]
424 questions
4
votes
1 answer
See multiple ways to obtain ILogger in Azure Functions 6 from docs and templates, what are the differences?
I'm using Azure Functions 6 (.NET 6, isolated), with Application Insights enabled.
From different versions of Visual Studio, Azure Functions Core Tools, the default Microsoft templates and other docs showed a variety of ways to obtain ILogger. I've…

thankyoussd
- 1,875
- 1
- 18
- 39
4
votes
2 answers
Couldn't detect a version for the platform 'dotnet' in the repo
I am trying to deploy azure function in .net 6 with Linux OS and I am getting following error :
[error]Failed to deploy web package to App Service.
[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
Package…

Roshan Srivastava
- 466
- 2
- 14
4
votes
3 answers
Puppeteer throws launch exception when deployed on azure functions node on Linux
Problem: Using puppeteer to get the screengrab of a website. Works fine on dev machine but throws below exception when deployed to Azure Functions on the cloud.
Environment: on Azure(Node 12, Linux, Consumption plan), Function triggered using…

Venkata K. C. Tata
- 5,539
- 4
- 22
- 35
4
votes
1 answer
Azure Function running twice
We have a Azure Function which processes a huge file.
We noticed that it is running second time on its own.
Is there any configuration\setting where we can disable this behavior ?

reverse
- 340
- 2
- 13
4
votes
2 answers
Why is my python timer trigger function not running at the correct time?
this is probably a noob question. I have an Azure Function that responds to HTTP requests and it works fine, I can call it from a browser or from a Python 3.8 script.
I want to make another function that will have Timer Trigger and will call the…

robliv
- 1,351
- 3
- 15
- 30
4
votes
1 answer
Limit Azure Function to be called from just one domain
Is there any way to limit an Azure function to just be allowed to be called from a particular domain? It is just in order to do not have an api exposed in public, I want that api to just be consumed from my webapp, deployed in a particular domain,…

Juan Garcia
- 843
- 2
- 11
- 34
4
votes
1 answer
ActivityTrigger Durable Function: max execution time limit via Azure Function App and Consumption plan
Is an ActivityTrigger Durable Function still restricted to max timeout duration of 10 mins via consumption plan below:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
I came across the sample below, which seems to…

Pingpong
- 7,681
- 21
- 83
- 209
4
votes
3 answers
Azure Functions: How do I launch only a specific Function in local dev environment?
If I want to launch all available functions in the dev environment, I simply do:
func host start
Is there a way to choose a subset of the available functions, without having to move the intended-to-be-deactivated ones out of the working directory…

jtlz2
- 7,700
- 9
- 64
- 114
4
votes
1 answer
BatchSize is not honored by Azure function (v2 on .Net Core) with QueueTrigger when running LOCALLY
I am testing my Azure function (v2 targeting .Net Core) with QueueTrigger locally with the following configs in host.json file
"queues": {
"batchSize": 1,
"newBatchThreshold": 0
}
The intent is to limit each Function App instance to only…

Chuck
- 332
- 4
- 15
4
votes
1 answer
How to set AuthorzationLevel per an environment condition when running csproj function in Azure Function Apps Runtime 2.x on a Docker container?
I'm building an Azure Function App v2.x (.NET Core 2, .csproj) and building a docker image (Ubuntu). When running the docker image locally, I would like some way to differentiate my environment as to allow anonymous access whilst running inside the…

Matthew
- 706
- 9
- 12
4
votes
2 answers
How to write unit test for azure function (Httptrigger) with ILogger
Want to write unit test for HttpTrigger GET.
Have method signature as follow:
public static async Task Run(
[HttpTrigger(AuthorizationLevel.Function, "get", Route = null)]
HttpRequestMessage request,
ILogger…

user3711357
- 1,425
- 7
- 32
- 54
4
votes
2 answers
Does azure functions share context between the running instances?
I'm working on one project based on the Azure Functions, and I have one static helper class with buffer (private static ConcurrentDictionary) which holds some list of items to be processed at the end of execution, the question does this buffer will…

Ivan Sukhetskyi
- 113
- 2
- 13
4
votes
4 answers
Azure function published but not running, "no data available"
I can publish a Azure function from Visual Studio without an error.
This funtion is set to run every 4 seconds ("*/4 * * * * *") but it is not running at all. Even if I try to run it manually it do not run and show the following error:
Status: 404…

user576510
- 5,777
- 20
- 81
- 144
4
votes
2 answers
How do I reuse QueueClient instances to send response messages from Azure Function?
The best practices article from Azure docs recommends reusing QueueClient to send multiple messages to obtain faster…

Amit Kumar
- 71
- 3
3
votes
1 answer
"Method overloads are not supported. There are multiple methods with the name." when running Azure Functions in Docker
I execute a very simple Function App to Docker with this Dockerfile
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using System.IO;
using…

Kai Walter
- 3,485
- 2
- 32
- 62