简体   繁体   中英

Can we restart Microsoft Azure app service from c#?

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

Is there a solution for this?

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://docs.microsoft.com/en-us/rest/api/appservice/webapps/restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM