Unable To Delete Virtual Network and a Resource Group

hongfu wang 0 Reputation points
2024-04-29T07:57:29.1433333+00:00

Azure resource Group delete  error case of a virtualNetworks(wscunicore-efd8474f96-vnet)

I think the reason is the same with https://video2.skills-academy.com/en-us/answers/questions/169500/unable-to-delete-virtual-network-and-a-resource-gr

I have sent email but replay with below

Currently this DL is in unmonitored state and would request you to follow up on your existing MS Q&A thread private message if you don’t have an active thread, request you to open a new thread on Q&A platform for your query/issue with appropriate service area tag so that one of the community experts will reach you shortly for further assistance - https://video2.skills-academy.com/en-us/answers/index.html .

  az group delete --name  vse_unicore

 

(ResourceGroupDeletionBlocked) Deletion of resource group 'vse_unicore' failed as resources with identifiers 'Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '0ea861ab-593e-4f64-b546-9e17986213b7'. Please check audit logs for more details.      

Code: ResourceGroupDeletionBlocked

Message: Deletion of resource group 'vse_unicore' failed as resources with identifiers 'Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '0ea861ab-593e-4f64-b546-9e17986213b7'. Please check audit logs for more details.

Exception Details:      (None) {"error":{"code":"InUseSubnetCannotBeDeleted","message":"Subnet wscunicore-efd8474f96-dbsubnet is in use by /subscriptions/[]/resourceGroups/vse_unicore/providers/Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet/subnets/wscunicore-efd8474f96-dbsubnet/serviceAssociationLinks/80bb0984-878c-5c12-a7ce-e0eb677b7d60-sal and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.","details":[]}}

        Code: None

        Message: {"error":{"code":"InUseSubnetCannotBeDeleted","message":"Subnet wscunicore-efd8474f96-dbsubnet is in use by /subscriptions/[]/resourceGroups/vse_unicore/providers/Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet/subnets/wscunicore-efd8474f96-dbsubnet/serviceAssociationLinks/80bb0984-878c-5c12-a7ce-e0eb677b7d60-sal and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet.","details":[]}}

        Target: /subscriptions/[]/resourceGroups/vse_unicore/providers/Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet

 

 

 az resource delete --ids "/subscriptions/【】/resourceGroups/vse_unicore/providers/Microsoft.Network/virtualNetworks/wscunicore-efd8474f96-vnet/subnets/wscunicore-efd8474f96-dbsubnet/serviceAssociationLinks/80bb0984-878c-5c12-a7ce-e0eb677b7d60-sal" --verbose 

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,427 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 45,111 Reputation points Microsoft Employee
    2024-04-29T08:08:12.53+00:00

    @hongfu wang ,

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

    I understand that you are unable to delete a VNET (and resource group) because of an ServiceAssociationLink.

    For one time free support,

    You are required to send an email with a specific Subject.

    I shall share more details in the Private message, please let us know if you need additional information.

    Cheers,

    Kapil


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.