az rest --method delete --url "https://management.azure.com/subscriptions/our subscription/resourceGroups/resource-group/providers/Microsoft.Network/privateDnsZones/privatelink.aiservices.azure.com/virtualNetworkLinks/xxxxxxxx?api-version=2018-09-01"
Failed to delete Private DNS zone 'privatelink.aiservices.azure.com'
Failed to delete Private DNS zone 'privatelink.aiservices.azure.com': Cannot delete resource while nested resources exist. Some existing nested resource IDs include: 'Microsoft.Network/privateDnsZones/privatelink.aiservices.azure.com/virtualNetworkLinks/xxxxxxxx'. Please delete all nested resources before deleting this resource.
privatelink.aiservices.azure.com | Virtual Network Links is empty:
Get-AzPrivateDnsVirtualNetworkLink: The virtual network link 'xxxxxxxx' does not exist for Private DNS zone 'privatelink.aiservices.azure.com' in resource group 'resource-group' of subscription 'our subscription'
Azure DNS
2 answers
Sort by: Most helpful
-
-
Praveen Bandaru 9,785 Reputation points Microsoft External Staff Moderator
2026-01-14T07:13:24+00:00 Hello Azure-Confused
I understand that you are trying to be deleting the Private DNS zone but unable to do so.
Please check the Virtual Network links in the private DNS zone configuration to see if any VNET is present. If so, try deleting it.
If there are any dependencies in the Private DNS zone, deletion may not be possible, so please verify this as well.
Additionally, I have initiated a private message. Please review it and share the requested information as mentioned. Kindly check and send it to us.
Please refer to the screenshot below to locate the private message option. You'll find it under your question; simply click on it to open and view the details.