0

I'm looking for a solution to restart the azure app server/app service from C#

Is there a solution for this ?

1 Answers1

2

Not only in c# but almost in every language. Just call the REST API:

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/restart?api-version=2019-08-01

https://learn.microsoft.com/en-us/rest/api/appservice/webapps/restart

Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90