DEV Community

Guido Zambarda
Guido Zambarda

Posted on • Originally published at iamguidozam.blog on

Set Azure Function timeout without republishing

A while ago I needed to change an Azure Function timeout but I wanted to avoid, if possible, to republish it. After a little while searching I discovered this page which explain how to overwrite the values specified in the host.json file with the values specified from the Azure configuration.

The article states that if you specify a configuration value in the following format:

AzureFunctionsJobHost __path__ to__setting
Enter fullscreen mode Exit fullscreen mode

The runtime will replace the existing value of the path.to.setting with the one specified.

Note that the dot (.) in the setting name must be expressed as double underscore (__) when specifying the setting in the Azure configuration.

In my case I wanted to override the value of the function timeout to 1 hour so I added the following to the Azure Function configuration in the Azure portal:

AzureFunctionsJobHost__functionTimeout: 01:00:00
Enter fullscreen mode Exit fullscreen mode

Hope this helps!

Top comments (0)