not able to delete "App Service plan"

duv1 dev1 1 Reputation point
2020-07-28T09:27:29.483+00:00

Im unable to delete "App Service plan" in azure a6c880ab-b880-43d5-b60b-1425698540bb

Error:-
Failed to update App Service plan ASP-demoapprg-aebe: {1}:
Server farm 'ASP-demoapprg-aebe' cannot be deleted because it has web app(s) duleepdev assigned to it.

please note that "duleepdev" already deleted via Azure portal

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,252 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,286 Reputation points
    2020-07-31T18:22:52.373+00:00

    Hi Duv1dev1-7278,

    We are sorry to hear you are having trouble deleting your app service plan. There are two things you can try.

    1.Use the Remove-AzureRmAppServicePlan PowerShell cmdlet to remove your Azure App Service plan. For example:

    Remove-AzureRmAppServicePlan -ResourceGroupName "Default-Web-WestUS" -Name "ContosoASP"
    This command removes the Azure App Service plan named ContosoASP that belongs to the resource group named Default-Web-WestUS.

    2.You can try to delete the attached Resource Group and then the App Service Plan should delete automatically. Only delete the resource group if you don't need the additional resources that are in it. To confirm, go to All Resource tab and you should not see that App Service Plan there.

    Hope that helps. Please let us know if the issue persists or if you have further questions.

    Thanks,

    Grace

    1 person found this answer helpful.