Time Out issue is coming in premium plan for azure Function App.

hwaitech 0 Reputation points
2023-11-03T14:16:02.8066667+00:00

One function app is hosted having premium service plan, but i am not able to customize the function timeout of HTTP trigger. Even in host.json file of function app I have mentioned timeout property and marks it as "00:30:00" but its on reflecting after deployment. I am not getting how it can be done is there any setting which is suppose to be change from my end kindly guide. Another strange thing is that it is woking in local but when same codee i am pushing to azure its not reflecting

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,466 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,950 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,990 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,550 Reputation points Microsoft Employee Moderator
    2023-11-06T06:53:31.45+00:00

    @hwaitech Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you have the query related to the timeout setting in Azure Function App.

    The functionTimeout property in the host.json, Indicates the timeout duration for all function executions. It follows the timespan string format.

    As mentioned in the below table, the default timeout for Premium is 30 min. So even if you don't mention it as 30 mins it will still consider it as 30 min.
    User's image

    More Info:
    In the context of Azure Functions, unbounded means that there is no set limit on the execution time of the function. When you set the functionTimeout property to -1 in the host.json file, it indicates that the function can run indefinitely. However, it’s recommended to keep a fixed upper bound to prevent runaway executions.

    Please note that while the execution time is technically unbounded in the Premium plan, the guaranteed execution time is 60 minutes. This means that while your function could potentially run for longer than 60 minutes, Azure only guarantees that it will run for up to 60 minutes.

    Refer this article. Hope this helps.

    Please let me know if you have any follow-up questions. I would be happy to help.

    **
    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.