2

I am unable to delete the 'default' subnet from a VNet that I am no longer using. The error is: "Subnet default is in use by /subscriptions/{guid}/resourceGroups/mpi-prod-westeurope-rg/providers/Microsoft.Web/serverfarms/mpi-web-asp and cannot be deleted."

The problem is mpi-web-asp is an App Service plan that was deleted about a week ago. I attempted to create a new App Service Plan with the same name however, as expected, that did not work.

Todd Carter
  • 879
  • 7
  • 20

1 Answers1

0

You could try to remove the App Service plan mpi-web-asp in the Azure resource explorer, navigate to the path, /subscriptions/{guid}/resourceGroups/mpi-prod-westeurope-rg/providers/Microsoft.Web/serverfarms/mpi-web-asp to find the app service plan. Get more details about using this tool.

Click Read/Write tab to enter the edit mode, then click Action(POST, DELETE), you could click Delete to delete the old resources. After this, Try to remove the default subnet again.

enter image description here

Nancy
  • 26,865
  • 3
  • 18
  • 34
  • 2
    Thanks for your reply however as mentioned my App Service Plan has already been deleted and it does not show up in the Azure Resource Explorer. – Todd Carter Jun 26 '19 at 13:51
  • How did you remove this subnet? I have tried to follow your steps, new Vnet integration---subnet, then remove the app service plan(this will require to remove all web app service hosting on this service plan). After removing all app services and app service plan, I could delete subnet from VNet-subnets--right-click the specific subnet to delete. Have you tried to delete this subnet in Azure Resource Explorer? – Nancy Jun 27 '19 at 02:51
  • 2
    I did not remove the subnet - that is the point, I cannot remove it via the Azure Portal, Powershell, or Azure Resource Explorer. – Todd Carter Jun 27 '19 at 10:48
  • So strange. Unless you still have old resources is referencing the default subnet. Before you said, you recreated the same name app service plan, ensure you have removed the app service plan, any resources associated with this app service plan and subnet, try it again? check you have signed in the correct subscription and tenant, resource group. If still no effect, it would be better to contact Azure support to check your subscription. – Nancy Jun 28 '19 at 02:26