Timeout in Function App hosted in App Service plan

Ganga S 67 Reputation points Microsoft Employee
2022-04-29T10:44:17.027+00:00

Hi,

My http triggered function app is hosted in an App Service plan and wanted to increase the default timeout.

As per the documents , I understand that App service plan default time out is 30 minutes and we have to enable ' Always On' under settings. I also read that regardless of the function app timeout setting, 230 seconds is the maximum amount of time that an HTTP triggered function can take to respond to a request. This is because of the default idle timeout of Azure Load Balancer.

Is my understanding correct? Please let me know how to increase the timeout for an http trigger function app in App service plan.

Thanks,
Ganga

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,643 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
215 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,451 Reputation points
    2022-05-02T07:36:58.9+00:00

    @Anonymous ,

    Thanks for reaching out to Q&A.

    Yes. Your understanding is correct. You can increase the timeout value by changing "functionTimeout" value in host.json file. Please refer to this article for reference :
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout

    As mentioned in your question, for HTTP triggers, there is a 230 seconds response timeout that is set at the load balancer which cannot be changed. I have explained clearly Function architecture and why the 230 seconds timeout cannot be changed in the below thread. I would suggest you to go through it.

    https://learn.microsoft.com/en-us/answers/questions/758823/httptrigger-response-timeout.html

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful