Azure Function — How to change the 5 minutes timeout

Niels G. Johansen
Coding XO
Published in
2 min readJan 24, 2018

This was a problem for me today as I implemented additional logic to an existing function, making the execution last longer than 5 minutes = 300 secs.

Azure Functions is designed to be “movable” if you are using the consumption plan, a reasonable timeout value if defined, default to 5 min. Running on the app service plan, you can check “always on” making your code have all the time it like to execute. As my Function was on consumption plan, and as there is no short path to migrating to the app service plan.

So I looked for a way to extend the timeout and found that I can specify my own time using the host.json file.

Sources

--

--