Unable to use subnet when VNET Integrated App is deleted
When an app service is integrated into Regional VNET the subnet is delegated with Microsoft.Web/Server Farm and if we delete app service we are unable to remove the service association link from the subnet. subnet goes waste and needs to raise a ticket with Microsoft. Either don't allow people to delete the function app/App Service, forcing them to disconnect from VNET prior or if it gets deleted to also clean up the delegation on the subnet.
I'm automating the creation and deletion of a resource group, app service plan and app service with vnet integration.
I delete the resource group (not the individual resources within the group) but the subnet delegation doesn't get removed.
I spoke too soon, it looks like this issue has returned. Is there any update on whether this bug is going to be fixed?
Looks like this has now been implemented. When the last app service in a service plan is deleted that has VNet integration enabled, then the VNet integration is automatically disconnected and the service association link is removed.
Or if possible in the short term, provide a method for us to be able to remove the service association with the subnet ourselves once this has occurred.