Hi @Ijaz M,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
To extend the timeout of an Azure Python Function without modifying the host.json
file, you can use environment variables. Here’s a simple solution:
- Navigate to your Azure Function App in the Azure Portal. In the left menu, select Configuration under the Settings section.
- Click on New application setting. Set the Name to
FUNCTIONS_WORKER_TIMEOUT
. Set the Value to the desired timeout duration in seconds (e.g.,300
for 5 minutes). - Click OK to add the setting, and then click Save at the top of the Configuration page to apply the changes.
Note: After saving the changes, restart your Function App to ensure the new settings take effect and the maximum timeout for Azure Functions on a dedicated plan is 60 minutes also Make sure you have the correct permissions to modify the application settings.
By following these steps, you should be able to extend the timeout of your Azure Python Function using environment variables.
If you find the answer helpful, kindly click "Accept Answer" and upvote it. If you have any further questions or concerns, please feel free to reach out to us. We are happy to assist you.