Azure App Service - how to remove all instances by WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT

Jess 96 Reputation points
2022-04-13T08:34:12.367+00:00

Because we have two App Service, one in japan west and one in japan east. So we can afford if one App does not work.
So we want to set WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT to 100. But I find it does not work in the test.

Question 1: Can we remove all instance?
Question 2: what is the max value of WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT?

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,476 Reputation points Microsoft Employee
    2022-04-14T02:14:15.633+00:00

    Hi @Jess

    Question 1: Can we remove all instance?

    Unhealthy instances can be replaced and WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT tells the platform how many of those instances can be replaced when the app is determined to be unhealthy.

    Question 2: what is the max value of WEBSITE_HEALTHCHECK_MAXUNHEALTHYWORKERPERCENT?

    You can set the value to a max of 100 which means all worker instances can be replaced.

    For more information, please reference https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check#configuration.