Questions tagged [azure-function-async]

For questions about Azure functions that do operations in an asynchronous manner. If your question is about synchronous Azure functions use the [azure-functions] Tag instead.

51 questions
12
votes
1 answer

Is ConfigureAwait(false) needed/beneficial when awaiting async calls in Azure Functions

It is generally recommended to use ConfigureAwait(false) when awaiting async calls when context is not required. Just wondering is there any benefit of using ConfigureAwait(false) in Azure Functions. Do Azure Function threads have non-null…
9
votes
2 answers

Are there benefits to an async function?

Azure functions allows me to write C#/F# (and more) functions which are executed given certain conditions. These functions can be async (by returning a Task). The cool thing about azure functions is that they automatically scale up depending on…
Robin Heggelund Hansen
  • 4,906
  • 6
  • 37
  • 54
5
votes
1 answer

Failing dependency call in Azure Durable Functions

Backgound I have a set of Durable Azure Functions and they are written using the Async pattern, as described here. Problem After studying the logs in app insights I have spotted a recurring failure across all my functions. It's a GET call to the…
5
votes
1 answer

async function in an Azure Function

I am getting an error with this javascript function definition in Azure. I am defining this within an Azure function for use by the exported function. async function getData() { var data = await postRequest(); return data; }; Below is the…
4
votes
3 answers

Azure Function local debugging - how to restrict it to single thread or message?

I have an Azure Service Bus triggered Azure Function. When I run the Azure Function locally, it starts 16 threads and picks up 16 messages in each thread. How can I configure it so that it only runs one message so that I can debug it without the…
3
votes
2 answers

Azure function timeout

Planning to provision 'Queue triggered' based Azure function on Azure on consumption pricing model. On every invocation of this function it may be expected to run randomly anywhere between 1 min to 30 mins or even longer/shorter, it depends.…
3
votes
2 answers

How to return 202 Accepted and then continue processing the request in Powershell

How to return 202 Accepted and then continue processing the request in PowerShell. I have a script that runs >3 minutes in azure function app Http Trigger(using PowerShell experimental language). I'm hitting above function using logic app which…
2
votes
0 answers

Pagination in CosmosDB Java SDK with continuation token

I'm trying to create from an async client a method to retrieve items from a CosmosDB but I'm afraid I'm full of questions and little to no documentation from Microsoft side I've created a function that will read from a cosmosDB a list of items, page…
2
votes
0 answers

Python aiohttp Azure Function ClientConnector Error (works locally)

I'm working on a TimerTrigger Azure Function in python that makes pretty heavy use of the aiohttp library to make concurrent requests to a file cache, grab ~8K JSON files, and prepare them to be loaded into a database. I have been able to run the…
2
votes
1 answer

Proper Jest Testing Azure Functions

I am wondering how to properly test Azure Functions with Jest. I have read the online documentation provided by MSoft but it's very vague, and brief. There are also some outdated articles I found that don't really explain much. Here is what I…
search-learn
  • 1,037
  • 1
  • 9
  • 23
2
votes
2 answers

how to create a sub folder in azure storage account and copy the files by using azure function App

I have two folders in my storage account Source and destination folders I want to add Demo folder in my Source folder and I want to copy my source folder files to Demo folder and delete all my source folder files after copying in to Archieve…
2
votes
1 answer

Azure function doesn't run async method

I have an Azure Function that doesn't run in Azure. Locally it runs, but in Azure it doesn't. I have a try/catch in place, which doesn't catch any exception, but in the logs I get "2020-07-26T12:23:00.021 [Error] An exception occured." Don't…
2
votes
2 answers

Azure Durable Function Error "No activity functions are currently registered!"

Full Message: Function 'Function1 (Orchestrator)' failed with an error. Reason: System.ArgumentException: The function 'Function1_GetData' doesn't exist, is disabled, or is not an activity function. Additional info: No activity functions are…
1
vote
1 answer

VSCode issue with setting python version to 3.10 on Azure function sample

I am trying to run the Azure python function with Fast API locally and hit into this issue https://github.com/Azure-Samples/fastapi-on-azure-functions/issues/7 The last one suggests upgrading to the 3.10 version of python to solve the issue. However…
1
vote
1 answer

Is there any shutdown event at Azure function app level?

I would like to do some clean up of resources (e.g. remove of subscriptions) before entirely shutting down of the Azure function app. Is there any provider to listen to shutdown events of the host of Azure function app? I can only find the startup…
chiaDev
  • 389
  • 3
  • 17
1
2 3 4