How to programmatically launch Azure Web App

Is there a way to restart Azure Web App programmatically, such as Kudu or some other kind?

I found that this is possible using management libraries, but this is not applicable to me, since I cannot create an application in AD.

+5
source share
2 answers

Powershell:

Restart-AzureRmWebApp -ResourceGroupName xxx -Name xxx 

or using the provider operation:

 Invoke-AzureRmResourceAction -ResourceGroupName xxx -ResourceType 'Microsoft.Web/sites' -ResourceName xxx ' -ApiVersion '2015-08-01' -Action 'Restart' -Force 

Azure Cli (nodejs, deprecated):

 azure webapp restart --resource-group xxx --name xxx 

Azure Cli (python):

 az appservice web restart --resource-group xxx --name xxx 

or you can use Rest Api

+11
source

I assume you are looking for this feature because you or the people in your team do not have elevated permissions on the Azure Portal.

Scripting will work, but it still requires someone to be comfortable running command lines.

The best way I've found this is with the VSTS pipeline. A few clicks and restart. A simple and amazing way to create a culture of passages.

enter image description here

+1
source

Source: https://habr.com/ru/post/1266240/


All Articles