Martin Staufcik
Martin Staufcik

Reputation: 9502

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.

Upvotes: 8

Views: 11571

Answers (2)

Arun Kumar
Arun Kumar

Reputation: 11

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

Upvotes: 1

Hury Shen
Hury Shen

Reputation: 15754

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.

Upvotes: 8

Related Questions