Is there any rest api to start-stop AzureAppServices programmatically ?
Asked
Active
Viewed 2,215 times
1 Answers
3
I was able to find REST API documentation for Azure WebApps here: https://learn.microsoft.com/en-us/rest/api/appservice/webapps.
Start WebApp: https://learn.microsoft.com/en-us/rest/api/appservice/webapps#WebApps_Start
Stop WebApp: https://learn.microsoft.com/en-us/rest/api/appservice/webapps#WebApps_Stop

Gaurav Mantri
- 128,066
- 12
- 206
- 241
-
Thanks for reply...what is the part before (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/start?api-version=2016-08-01) ? Is it https://management.azure.com/ ? – Dhruv Gohil Jan 18 '17 at 09:24
-
That's correct. Assuming you're connecting to your Azure Subscription not hosted in China, Germany or US Gov regions, you would use management.azure.com. – Gaurav Mantri Jan 18 '17 at 09:30
-
I am getting bad request ...in response – Dhruv Gohil Jan 18 '17 at 09:31
-
Would you mind posting that as a separate question? Please include your code and the detailed error message you're getting. – Gaurav Mantri Jan 18 '17 at 09:32
-
You should unaccept my answer as now the question is considerably changed. This is why I asked you to post as another question. – Gaurav Mantri Jan 18 '17 at 10:02
-
http://stackoverflow.com/questions/41716480/400-badrequest-while-call-rest-api-of-azure-web-app Now can you answer this question ? – Dhruv Gohil Jan 18 '17 at 10:08
-
Thanks! If I won't/can't, someone else will :) – Gaurav Mantri Jan 18 '17 at 10:59