You are configuring an Azure Function App that runs on a Consumption hosting plan. You need to increase the execution timeout limit for all functions in the app to the maximum allowable duration under this hosting plan.
Which configuration should you apply to the host.json file?
- ASet the "functionTimeout" property to "00:30:00" in the host.json file.
- BSet the "functionTimeout" property to "-1" in the host.json file.
- Set the "functionTimeout" property to "00:10:00" in the host.json file.Answer
- DSet the "functionTimeout" property to "00:05:00" in the host.json file.
Answer
Set the "functionTimeout" property to "00:10:00" in the host.json file.
The configuration setting the property to 10 minutes ('00:10:00') is correct. Under the Consumption hosting plan, Azure Functions are limited to a maximum execution duration of 10 minutes, up from the default of 5 minutes.
Step-by-Step Solution
Key Concept
Azure Functions Consumption plan timeout configuration