Cannot delete custom domain CDN

Fa-8827 1 Reputation point
2021-10-06T15:59:03.17+00:00

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.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,689 questions
{count} votes

6 answers

Sort by: Most helpful
  1. Thomas Beauvais 1 Reputation point
    2022-12-21T22:07:39.23+00:00

    Yet another reason to add to the myriad of ways that Azure will steal your time in an unbelievably frustrating way!

    Also, it didn't even work. Had to delete the DNS entries, which makes NO sense. There should be an override!

    0 comments No comments