Can't delete Azure App Service plan

Albert_S picture Albert_S · Dec 15, 2015 · Viewed 21.1k times · Source

I am trying to delete everything related to a mobile app back-end I previously created, and I was able to delete everything but the app service plan.

It shows that the App service plan has no connected apps and no pricing tier, but I still can't delete it:

App Service plan]

And when I try to click on the plan to see its details, the portal goes into an infinite loading state and nothing else happens:

App service plan details

Can anyone help me solve this problem?

Answer

Ramon de Klein picture Ramon de Klein · Feb 7, 2017

I had a similar issue. The app service plan couldn't be deleted, but I wasn't able to access is properly from the Azure Portal. I managed to remove the plan like this:

  1. Make sure all related apps (web jobs, ...) were removed.
  2. Open PowerShell and log in to your Azure account: Login-AzureRmAccount.
  3. Remove the app service plan: Remove-AzureRmAppServicePlan -Name <name> -ResourceGroupName <resourcegroup>.