asp.net-mvcazureload-balancingazure-web-app-service

How to shutdown one instance of an app service in azure


I have deployd an Asp.Net MVC application to an app service in azure and scaled it out to 2 instances.

Sometimes I need to restart an instance, but I only find a way to restart the whole web app. Is there a way to restart one instance only? Even removing the instance and then creating a new one would work for me.


Solution

  • There is no super clean way to do this, but it is still possible to achieve with the following steps: