Unable to delete a vnet created for training purposes

Prashanth Ravindra 20 Reputation points
2023-09-04T15:15:12.6966667+00:00

I am unable to delete a virtual network. This was created as a part of a training execrcise and the vnet was created while I created the Wordpress application.

Now when I try to delete the resource group I am unable to delete it as it is not allowing me to delete the vnet. It does not allow me to delete the vnet as it says the vnet has subnets which have service link associations.

The workround provided says that I need to create the same app with the same name as the deleted one with the existing vnet. However, when I try to create the Wordpress App again, the existing vnet does not show up in the dropdown!

Please let me know if there is any other way to delete the vnet and then the Resource Group.

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,135 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 34,766 Reputation points Microsoft Employee
    2023-10-03T14:03:42.92+00:00

    @Prashanth Ravindra

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Reason for this Error:
    The VNET integration feature must set locks on subnets in the Network Resource Provider, we set these locks by putting a structure called a Service Association Link(SAL) onto the Subnet, which is a privileged operation that only Microsoft.Web and some other internal Azure services have access to, this ends up being odd cases where these locks don't get cleaned up. The result is that the customer will have a subnet that cannot be deleted or used because a Service Association Link still exists on the subnet.

    You confirmed you were able to delete the resource now with the help of Support Team.

    Please let us know if we can be of any further assistance here.

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful