A support request will be required to delete the resource. Please follow the instructions in the private message I will make here shortly to create a support request.
Hoper this helps. Thank you
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a subnet delegated to web apps (Microsoft.Web/serverFarms) with vnet integration. I removed the web apps and app service plan. However, I'm unable to delete the subnet now due to this error:
Failed to delete subnet '<subnet>'. Error: Subnet <subnet> is in use by <rg>/providers/Microsoft.Network/virtualNetworks/<vnet>/subnets/<subnet>/serviceAssociationLinks/AppServiceLink'><vnet>/<subnet>/AppServiceLink and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet.
Since I had the infrastructure in Terraform, I recreated the app service plan and web apps with the same names. I disabled vnet integration on the web apps manually but am still not able to remove the subnet.
This seems to be a common issue with Microsoft support usually needed to fix it on the backend:
https://github.com/MicrosoftDocs/azure-docs/issues/48902 https://learn.microsoft.com/en-us/answers/questions/140197/unable-to-delete-vnet-due-to-serviceassociationlin https://learn.microsoft.com/en-us/answers/questions/1499390/cannot-delete-a-subnet-due-to-appservicelink-and-t
However, I do not have a support agreement at the moment. There have been previous cases of MSFT providing support for this issue, so looking for guidance on how to proceed.
A support request will be required to delete the resource. Please follow the instructions in the private message I will make here shortly to create a support request.
Hoper this helps. Thank you