@Bina Trivedi Thank you for reaching out to Microsoft Q&A. Apologize for the inconvenience caused on this.
By default, Azure app service has Idle request time out 230 seconds.App Service returns a timeout to the client if your application does not return a response within approximately 240 seconds (230 seconds on Windows app, 240 seconds on Linux app). If your web app requires background processing, we recommend using Azure WebJobs. The Azure web app can call WebJobs and be notified when background processing is finished.
- Does your application take more than 4 minutes to complete the request? If yes, is this the same behavior while executing application on local machine as well or are you seeing this issue when you hosted you r application on Azure?
- If you are seeing this time out especially on Azure, then I would suggest you run
Webapp slow
detector inAvailability and performance
under Diagnose and solve problems of your web app to isolate the issue.