trying to delete cdn endpoint / custom domain

Rommel dumlao 25 Reputation points
2023-03-14T13:22:58.8366667+00:00

I'm trying to delete resources that are no longer needed - CDN enpoint and custom domain. When I try to delete the custom domain or the CDN endpoint I get the following error

Cannot delete custom domain "cdn.xidekick.com" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "xidekick-static.azureedge.net". Please remove the DNS CNAME record and try again.

I do not own the domain xidekick.com anymore and I believe it no longer exists.

Please help.

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
586 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 23,106 Reputation points Microsoft Employee
    2023-03-14T17:03:32.8033333+00:00

    @Rommel dumlao

    Thank you for reaching out on the Microsoft Q&A forum.

    Based on your question I understand that you are trying to delete your Azure CDN endpoint, but you are facing issue because Azure CDN endpoint CNAME is still associated with your custom domain.

    Based on the documentation here this requirement was implemented to prevent dangling DNS entries and the security risks they create, starting from April 9th 2021, Azure CDN requires removal of the CNAME records to Azure CDN endpoints before the resources can be deleted. Resources include Azure CDN custom domains, Azure CDN profiles/endpoints or Azure resource groups that has Azure CDN custom domain(s) enabled.

    In order to delete the custom domain, you need to delete the CNAME record for the custom domain, or update the CNAME record for the custom domain to a non-Azure CDN endpoint.

    Based on your question I understand.

    I do not own the domain xidekick.com anymore and I believe it no longer exists.

    The domain might have been deleted and you do not own the domain anymore.

    In this case you can try and bypass this check by running below PowerShell command which will register a feature for your Subscription which can help bypass the cname check. It is advised to wait for some time (15 - 20 mins) for feature to register and then attempt deleting the custom domain again.

    Register-AzProviderFeature -ProviderNamespace Microsoft.Cdn -FeatureName BypassCnameCheckForCustomDomainDeletion
    
    

    If this doesn't work, creating a support request can be helpful here as a support engineer can help remove cname check from the backend. Please let me know if you do not have a support plan, I can help you in this regard.

    Hope this helps!


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


0 additional answers

Sort by: Most helpful