I'm looking for a solution to restart the azure app server/app service from C#
Is there a solution for this ?
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://learn.microsoft.com/en-us/rest/api/appservice/webapps/restart