Cannot delete Vnet

Dimas Rivas 0 Reputation points
2024-02-26T16:06:35.5933333+00:00

im having issues to delete the VNET after i Delete a mysql flexible server

3r1ckwebpageVnet: Subnet 3r1ckwebpageDbSubnet is in use by /subscriptions/e63f7470-7aa2-41cc-91a0-306969358e50/resourceGroups/3r1ck-dev-resources/providers/Microsoft.Network/virtualNetworks/3r1ckwebpageVnet/subnets/3r1ckwebpageDbSubnet/serviceAssociationLinks/64ecc59d-aeb8-66b8-3fc4-0cd0bef6510a-sal and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. (Code: InUseSubnetCannotBeDeleted)

i try to use the support and said that the Azure Resource Manager its out of sync with the resources that wait 20 minutes and should be solve and im having the same issue the last 2 months,

We've discovered that resources related to this issue are out-of-sync with Azure Resource Manager. We have now synced them to resolve the issue. No additional actions are required on your part.

Recommended Steps

  1. Check the status of the resource and/or operation in 20 minutes to verify that your issue has been resolved.

there is another way to fix this issue!?

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

1 answer

Sort by: Most helpful
  1. dashanan13 930 Reputation points
    2024-02-29T14:43:34.86+00:00

    Hei @Dimas Rivas , Thank you for reaching out to Microsoft Q&A. Ideally @Marcin Policht 's suggestion works and is the case, its mostly delay. On the other hand, you say it is still present after 2 months! This indicates that either the virtual network has another resources associated that is not being deleted or its Azure issue either related to your permissions or the azure infra itself. Since you have talked to support, i will discount Azure infra issue. Now this leaves us with a rouge resource or your permissions. To consolidate both, i would suggest deploy in a separate resource group dedicated to the resource. This way you know that you have full permission on the resource group and resources within, also when you are done delete the resource group altogether with all attached resources. You could use Bicep templates or a powershell script to do all of it too, running them will also ensure that only decalared things are deployed. Please do mark as answer if it helped.


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.