When i am trying to delete the subnet from my Resource group I am getting this error.
Failed to delete subnet 'app_subnet'. Error: Subnet app_subnet is in use.
This subnet was left after I tried clearing all the deployment in my resourcegroup which was an app service.
Able to remove the subnet so I can delete the resourcegroup.
CodePudding user response:
You can try the below mentioned workaround.
- Create App Service Plan with the same name as the deleted one
- Create App Service with the same name as the deleted one
- Link App Service with the VNET subnet
- Disconnect VNet from App Service -> Networking -> VNet integration -> Disconnect
- Delete subnet
Additionally you can also create a ticket to Azure Support via "Help & Support" to get it deleted.