Azure App Service Intermittent HTTP 500 Error

SriniG 6 Reputation points
2020-03-24T14:18:06.273+00:00

We have an Azure App Service that periodically keeps throwing HTTP 500 Error.

Currently we are resolving the issue by restarting the App Service.

We think there is a suspect code in startup.cs that MIGHT be the root cause.
We are yet to collect the logs to confirm that.

Meanwhile, we wonder why would startup.cs get triggered when we have already enabled Always On.

We were assuming that Always On Enabled means Azure would NOT restart the service.

Looking for insight on this.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,913 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ryan Hill 28,636 Reputation points Microsoft Employee
    2020-03-24T15:58:51.56+00:00

    Hi @SriniG , You are correct that Always On tells the Worker to constantly "ping" your app to ensure it responds to request. There are exceptions though such as any platform updates being done or the Worker being in an unhealthy state. You can use the Resource Health blade under Support + troubleshooting to gain additional insight.

    Let me know if I can be of any further assistance.

    1 person found this answer helpful.
    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.