CDNs are in the Microsoft.Cdn namespace, so you need to register its equivalent feature:
az feature register --namespace Microsoft.Cdn --name BypassCnameCheckForCustomDomainDeletion
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Trying to delete a custom domain on a CDN but get the following error. This was a PoC for a bug bounty but can't seem to delete my custom domain on the CDN resource. How would I go about actually deleting it? (Without updating the DNS)
I already tried:
az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion
but to no avail.
The error message is:
(Conflict) Cannot delete custom domain "XXXX" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "XXXX.azureedge.net".
Please remove the DNS CNAME record and try again.
CDNs are in the Microsoft.Cdn namespace, so you need to register its equivalent feature:
az feature register --namespace Microsoft.Cdn --name BypassCnameCheckForCustomDomainDeletion
I think the following command works. You just need to wait for more than 10 minutes to effect.
az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion
You can check the registering status by this:
az feature list -o table --query "[?contains(name, 'Microsoft.Network/BypassCnameCheckForCustomDomainDeletion')].{Name:name,State:properties.state}"
We are working offline with the customer regarding this issue and will update with the resolution once we have it. Thank you!
I am having the same issue, any information on this?
Same issue here. I'm not in control of the DNS registrations.