Azure Functions in the Consumption plan have a default timeout of 5 minutes and an upper limit of 10 minutes. If you need a longer timeout, you need to switch to a different plan, such as the Premium plan, which provides longer timeouts and dedicated resources.
Here's how you can change the plan:
- Go to the Azure portal and navigate to your function app.
- Click on the "Function app settings" link.
- Under the "Configuration" section, click on the "General settings" link.
- Change the "App Service Plan" to the desired plan (e.g., Premium).
- Save the changes.
Note that switching plans can impact your costs, so make sure to review the pricing information for the new plan before making the change.