Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 891
Mathias F Avatar asked Dec 25 '22 05:12

Mathias F


1 Answers

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

  • Go to the Web App in the portal
  • Choose Process Explorer from Tools menu
  • You'll see processes for all instances. You can right click on specific w3wp's and kill them, which effectively restarts the site. You don't have to kill the Kudu process (the one with the K icon) if you only want to restart the site. For WebJobs, kill Kudu as well.
like image 122
David Ebbo Avatar answered Jan 13 '23 19:01

David Ebbo