Increase azure web app request timeout
Hope this would be some help https://azure.microsoft.com/en-us/blog/new-configurable-idle-timeout-for-azure-load-balancer/. But I think it's bad idea keep request while some heavy job being executed. Imho, you'd better implement background job and check it status from client from time to time.
You can use my trick code here to by-pass 230s limit. In summary, we just keep writing empty html value "\r\n" to response to let ALB know that we are returning data, but actually we are processing the request.
Sample code
No, you cannot increase the timeout for Azure App Services (it is 230 seconds). You can move to a cloud services or IIS hosted on a VM where you have control over those settings. You can also move to an async model where the client makes a request, gets some sort of ticket or identifier that is can poll back to see if the processing is done. There are many examples of async type models for web apps out there you can choose from. Ref:https://social.msdn.microsoft.com/Forums/en-US/05f254a6-9b34-4eb2-a5f7-2a82fb40135f/time-out-after-230-seconds?forum=windowsazurewebsitespreview
You can deploy the web app using the automation script and add this line under "resources":
{
"name": "WEBSITES_CONTAINER_START_TIME_LIMIT",
"value": 1800
},
where value is by default 230, but can be increased up to 1800. You can also add a New Setting under Application Settings, named WEBSITES_CONTAINER_START_TIME_LIMIT and with the value of seconds you want.