Azure App Service Intermittent HTTP 500 Error

SriniG 6 Reputation points

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,220 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,856 Reputation points Microsoft Employee

    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