How to delete a private DNS zone in Azure?

William Menezes 0 Reputation points
2025-11-04T02:22:17.61+00:00

I'm trying to delete a private DNS resource that was never provisioned correctly.

Errors I'm receiving:

  • Portal: I'm getting a generic "The resource operation completed with the terminal provisioning state 'Failed'" when trying to delete the resource in the Azure portal.

Az PS:

Remove-AzResource -ResourceId "/subscriptions/4a59ff40-b8a0-498d-962b-995a9e4d9e28/resourceGroups/az104-rg4/providers/Microsoft.Network/privateDnsZones/private.acmecorp.com" -Force -Confirm:$false

  • When I tried the command above, I receive:
    • Remove-AzResource:{"code":"BadRequest","message":"The request was invalid."} CorrelationId: 4d701a5b-4760-4eba-a2c2-6ec57789422a

Things I've checked:

  • I have owner access to the resource
  • There are no locks on the resource
  • There are no Vnets linked
  • There are no recordsets (except the default)
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
{count} votes

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.