Sequencing Azure Http Trigger Function runs during simultaneous calls

Posted by

While working on Group provisioning process (blog here), we encountered an issue with parallel calls to Azure Functions from Flow. Even though, Microsoft flow supports sequencing flow runs but doesn’t queue them one after the other. Bummer !! However, we were able queued the requests at Azure Http function level, which was quite simple actually.

Azure Queue Triggers are mostly recommended in this case but with Queue trigger, the queue would always trigger at least two runs and the poison queue wouldn’t trigger after failing for more than 5 times

Hence we ended up managing it by the Http trigger function.

The process is quite simple and could be easily done by modifying the host.json file of the Azure function.

Note: Host.json is a global configuration file for all functions within a Function app, hence the below changes would affect all functions in that particular app.

Note: More details about host.json schema could be found in the Microsoft article here.



  1. Hi,
    I created an Azure function which adds owner to the O365 group. And I call the Azure function from Microsoft flow.
    When I run Azure function it is working fine but when I try to run the Azure function from Microsoft flow it is throwing error:
    BadRequest. Http request failed: the timeout was reached.

    In host.json, I added code as mentioned in this blog, but still I am getting error.

    Kindly suggest.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s