DNS Zone cannot be deleted because of parent lock but the parent (domain) has NOT been created due to lack of invoice history.

Arsman92 20 Reputation points
2024-02-17T10:50:59.69+00:00

I have tried to buy a .com domain but i have been encountered by an error message due to lack of invoice history but despite of the fact the domain resource has NOT been created but the DNS zone was and since then It's draining the money continuously for nothing. Additionally DNS zone cannot be deleted due to the following error message:

'***.com' can't be deleted because either you do not have permission or the resource has parent lock/s. Locks must be removed before this resource can be deleted. <a href="">Learn more</a>

How I could unlock the parent resource if the parent resource (the domain) haven't been created by the Azure?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
603 questions
Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. JimmySalian-2011 41,926 Reputation points
    2024-02-17T23:24:35.4366667+00:00

    Hi, Only the Owner and the User Access Administrator built-in roles can create and delete management locks. To get all the locks in your subscription, use:Get-AzResourceLock To delete a lock for a resource, use: $lockId = (Get-AzResourceLock -ResourceGroupName exampleresourcegroup -ResourceName examplesite -ResourceType Microsoft.Web/sites).LockId Remove-AzResourceLock -LockId $lockId

    Please try this and get back for any issues.

    Hope this helps. JS

    == Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful