Unable to create a custom domain in Azure Front Door because a "custom domain with the same host name already exists"

James Munro 0 Reputation points
2025-02-01T23:05:45.4166667+00:00

I am creating a Front Door standard tier route and adding a set of domain names. All but one have been added successfully.

A attempt to add a specific domain name (in fact a www subdomain) fails repeatedly with the error: Failed to create the custom domain 'www-foo-org-uk-xxxx'. Error: We couldn't create your custom domain. Another custom domain with the same host name already exists.

However, no such duplicate domain name exists in the list displayed in the portal. So I am unable to add the name, and if the name exists already I can't see it so I can't add it to the route/endpoint.

This looks like a bug in the azure portal. How do I resolve this?

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

1 answer

Sort by: Most helpful
  1. Rohith Vinnakota 2,330 Reputation points Microsoft Vendor
    2025-02-04T01:21:13.8533333+00:00

    Hi @James Munro,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.

    Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.

    Issue:

    Unable to create a custom domain in Azure Front Door because a "custom domain with the same host name already exists"

     

    Resolution:

    It turned out that the domain was being used in my subscription, but in a different (legacy) CDN resource. So it seems that a domain can only be used one in the subscription (or perhaps even in a wider scope?).

    Once I removed the domain from the legacy CDN, I was able to use it within the Front Door resource.


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.