Failed to delete Private DNS zone 'privatelink.aiservices.azure.com'

AzureConfused-7090 0 Reputation points
2026-01-13T19:40:10.5733333+00:00

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
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
{count} votes

2 answers

Sort by: Most helpful
  1. AzureConfused-7090 0 Reputation points
    2026-01-13T20:43:31.71+00:00

    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"

    0 comments No comments

  2. 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.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.