Unable to delete a subnet
Failed to delete resource group popsmile-rg: Deletion of resource group 'xxxxxx-rg' failed as resources with identifiers 'Microsoft.Network/virtualNetworks/xxxxxx-44e0116872-vnet' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '000c000c-00008919-4764-b7c8-356ed111111'. Please check audit logs for more details. (Code: ResourceGroupDeletionBlocked) Subnet popsmile-ad11ad57aa-dbsubnet is in use by /subscriptions/xxxxx/resourceGroups/xxxxxxx-rg/providers/Microsoft.Network/virtualNetworks/xxxxx-111111-vnet/subnets/popsmile-ad11ad57aa-dbsubnet/serviceAssociationLinks/be4f0cdd-2221-7b58-e9eb-1533a0f1cf71-sal and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet. (Code: InUseSubnetCannotBeDeleted, Target: /subscriptions/21af63bb-34f7-474c-a9f9-e29c12647c67/resourceGroups/popsmile-rg/providers/Microsoft.Network/virtualNetworks/xxxxx-44e0116872-vnet)
I try to delete connection how specified here https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-delete-vnet-gateway-portal
Step 2: Delete connections
- On the page for your virtual network gateway, click Connections to view all connections to the gateway.
- Click the '...' on the row of the name of the connection, then select Delete from the dropdown.
- Click Yes to confirm that you want to delete the connection. If you have multiple connections, delete each connection.
But it returns always error.
So; I simply need to force the deleteing for all reosurces present in a resource-group.
Please, someone can help me?
Thanks in advance.
Rgards,
Mauro