Cannot delete custom domain because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint

Ben McFadden 31 Reputation points
2022-11-23T22:20:53.823+00:00

I want to delete an Azure CDN endpoint, but I can't because Azure won't permit me to delete the custom domains associated with it. When I try, either via the portal or Azure CLI, I get this error:

Cannot delete custom domain "[custom domain name]" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "[endpoint name]". Please remove the DNS CNAME record and try again.

I deleted the CNAME records more than 16 hours ago.

I have executed this command to no avail:

az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion

I have verified that the feature is registered.

Azure Content Delivery Network
{count} vote

1 answer

Sort by: Most helpful
  1. Ben McFadden 31 Reputation points
    2022-11-25T05:38:11.307+00:00

    I don't know whether this was resolved manually on Microsoft's side or whether it happened automatically, but after Microsoft contacted me privately I found that everything began working as it should.