The iPhone app has an option to "restart" a service plan. Can anybody tell me where this is located in the portal? I can't seem to find it.
3 Answers
I think we now have a way to do that (without requiring a direct API call as suggested by @krzysztof-madej in his answer). The current location seems a bit strange to me, but you can choose any app currently running within the plan, then navigate to Monitoring > Health Check > Instances. Then you can click Restart to restart the specific instance of your plan.
You can do this only via API
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot?api-version=2022-03-01
This will restart the single machine. So if you have two instances you need to run it for each instance separately.
I recommend trying the option Try it
from the documentation.
In the Azure portal go to your App Service Plan. In the left menu click Apps
under settings
. Then click on your app to open the app's settings. There you will have an option to restart the App
-
3I am not looking for a way to restart an app. I am looking for a way to restart the whole "service plan". (The mobile app has this function, one can archive the same thing [or something similar] if you change the pricing tier.) Nov 7, 2020 at 14:04
-
I see, unfortunatly this feature is not available in the portal. Such a feature was requested in 2017 and declined by the Azure App Service team. Nov 7, 2020 at 14:10
-
1Thank you for the pointer to the feedback site. i posted a comment there. Do you happen to know what the "restart service plan" button in the mobild app does? Nov 7, 2020 at 14:21
-
Not 100% sure what the mobile app does exactly, but I suspect it call the
Restart Web App
function documented in the REST API Nov 7, 2020 at 14:52