Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Function functionTimeout per environment

My Function App has host.json with functionTimeout for development environment.

I would like to configure functionTimeout also for production environment with a different value.

Can this value be configured in Azure portal? I could not find it in settings.

Can there be a separate host.json for production environment in the Visual Studio project?

Thank you.

like image 382
Martin Staufcik Avatar asked May 22 '26 10:05

Martin Staufcik


2 Answers

Go to your function app and click "App files", then you can configure functionTimeout. enter image description here

You also need to check this tutorial about the default timeout and maximum timeout for each plan type. enter image description here

And as far as I know, only one host.json can exist in one project in local Visual Studio project. So I think we can just configure different functionTimeout on portal when you deploy the function project from local to azure.

like image 92
Hury Shen Avatar answered May 25 '26 09:05

Hury Shen


While running it locally we can set functionTimeout as 1 hour.

like image 22
Arun Kumar Avatar answered May 25 '26 11:05

Arun Kumar