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!

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay