Deleting a CDN

Todd McBride 1 Reputation point
2022-03-01T07:25:59.393+00:00

178667-image.png

esource group
(move)
:
iesgroup
Status
:
Stopped
Location
:
Global
Subscription
(move)
:
IES-Group
Subscription ID
:
904dd6c1-6483-47e4-82e0-346ab233a877
Endpoint hostname
:
https://ies365.azureedge.net
Origin hostname
:
https://bms.ies365.co.nz
Protocols
:
HTTP, HTTPS
Optimization type
:
iesecure: Cannot delete custom domain "remote.ies365.co.nz" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "ies365.azureedge.net". Please remove the DNS CNAME record and try again. (Code: Conflict)

Azure Content Delivery Network
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. SaiKishor-MSFT 17,216 Reputation points
    2022-03-01T10:40:57.347+00:00

    @Todd McBride Thank you for reaching out to Microsoft Q&A. I understand that you are having issues with deleting your CDN endpoint where it is throwing an error that it is unable to delete custom domain,

    In order to delete the CDN endpoint, you first need to delete the Custom Domain. 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.

    To do so please follow steps here:

    • Go to your DNS provider, delete the CNAME record for the custom domain, or update the CNAME record for the custom domain to a non-Azure CDN endpoint.
    • In your CDN profile, select the endpoint with the custom domain that you want to remove.

    From the Endpoint page, under Custom domains, right-click the custom domain that you want to remove, then select Delete from the context menu. Select Yes.

    The custom domain is disassociated from your endpoint.

    After this, you should be able to delete the CDN endpoint. Hope this helps. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    1 person found this answer helpful.
    0 comments No comments

  2. Tyler Jones 6 Reputation points
    2022-06-09T18:30:40.813+00:00

    I have this same issue. @SaiKishor-MSFT the step you have listed:

    "From the Endpoint page, under Custom domains, right-click the custom domain that you want to remove, then select Delete from the context menu. Select Yes."

    fails with the same error as Todd-Mcbride shows. you cannot delete the endpoint and we have no control over the cname entry outside of our domain registrar, where that cname doesn't exist.

    1 person found this answer helpful.
    0 comments No comments

  3. Kundan Kumar 5 Reputation points
    2023-06-15T12:38:57.4266667+00:00

    You said
    Go to your DNS provider, delete the CNAME record for the custom domain, or update the CNAME record for the custom domain to a non-Azure CDN endpoint.

    But I can't do this as I lost access to the domain.

    1 person found this answer helpful.