Unable to delete virtual networking vnet.

Danish Ahmed Khan 25 Reputation points
2023-09-06T14:41:22.43+00:00

Failed to delete subnet 'blog-flaskAppSubnet'. Error: Subnet blog-flaskAppSubnet is in use by blog-flask_group/providers/Microsoft.Network/virtualNetworks/blog-flaskVnet/subnets/blog-flaskAppSubnet/serviceAssociationLinks/AppServiceLink'>blog-flaskVnet/blog-flaskAppSubnet/AppServiceLink and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,404 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,662 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,466 Reputation points Microsoft Employee
    2023-10-12T15:53:22.6666667+00:00

    Hello @Anonymous ,

    I understand that you were unable to delete a Virtual network and receiving the below error: "Error: Subnet blog-flaskAppSubnet is in use by flask_group/providers/Microsoft.Network/virtualNetworks/blog-flaskVnet/subnets/blog-flaskAppSubnet/serviceAssociationLinks/AppServiceLink'>blog-flaskVnet/blog-flaskAppSubnet/AppServiceLink and cannot be deleted".

    You already tried the recommended steps, but it didn't help.

    So, we created a support request to delete the AppServiceLink from the backend.

    The support team engaged the backend tem and they deleted the Orphaned Service Association Link, post which you were able to delete the Vnet successfully.

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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