question

SriniG-9172 avatar image
0 Votes"
SriniG-9172 asked ·

Azure App Service Intermittent HTTP 500 Error

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
1 Vote"
ryanchill answered ·

Hi @SriniG-9172, 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.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.