question

caliburn1994 avatar image
0 Votes"
caliburn1994 asked Sam-Cogan answered

Azure App Service - How to work around the number of instance replaced by Health checks

At most one instance will be replaced per hour, with a maximum of three instances per day per App Service Plan.

Ref: https://docs.microsoft.com/en-us/azure/app-service/monitor-instances-health-check

Is it mean that I must restart instances manually if the number of unhealthy instances is over 3?

Q1: Is there some way to work around this limit?

I have tried to work around this by Auto-Heal because they look alike. Q2: What is Auto-Heal for after I turn on Health Check?

192950-image.png



azure-webappsazure-webapps-availabilityazure-webapps-auto-heal
image.png (386.7 KiB)
5 |1600 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

Sam-Cogan avatar image
1 Vote"
Sam-Cogan answered

You can't work around it, that is the limit of this service. To be honest, if your app is regularly going unhealthy for long enough that it is replaced ( an instance is only replaced if it is unhealthy for 1 hour), and this happens multiple times a day, then you need to look at fixing your application as that should not be happening.

5 |1600 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.