Unable to delete VNet due to serviceAssociationLinks/AppServiceLink

Noora Kazi 0 Reputation points
2025-10-28T15:52:10.82+00:00

I have an issue where a service association link is not allowing me to delete the subnet. I have tried the below commands

az network vnet subnet show --name snet-agentsEgress --vnet-name vnet-workload --resource-group rg-chat-baseline-aifchat --query "serviceAssociationLinks"

This shows me the servicelink. However the list is not empty and allowDelete is still false.

az network vnet subnet delete --name snet-agentsEgress --vnet-name vnet-workload --resource-group rg-chat-baseline-aifchat

When I run the above command I get this error : (InUseSubnetCannotBeDeleted) Subnet snet-agentsEgress is in use by /subscriptions/

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.