Error mapping temporary afdverify subdomain

Jesse Stewart (he/him) 66 Reputation points Microsoft Employee
2021-07-12T19:44:39.837+00:00

I am attempting to transfer an existing domain to Azure Front Door, following the instructions here: https://learn.microsoft.com/en-us/azure/frontdoor/front-door-custom-domain#map-the-temporary-afdverify-subdomain

Per the instructions on mapping a temporary afdverify subdomain, I added a cname entry for the existing domain (xyz.contoso.com) as follows:

afdverify.xyz.contoso.com -> afdverify.contoso-frontend.azurefd.net  

Once that change propagated, again following the instructions, I went to the front door designer to add my custom domain as a frontend host. Here's where I run into trouble. I do not understand step 5:

For Custom hostname, enter your custom domain, including the subdomain, to use as the source domain of your CNAME record. For example, www.contoso.com or cdn.contoso.com. Don't use the afdverify subdomain name.

What subdomain do they mean here, if it's not the afdverify one?

If I enter afdverify.xyz.contoso.com, I get an error that it can't find a CNAME record for that domain that points to my frontdoor (contoso-frontend.azurefd.net).

If I enter xyz.contoso.com, it lets me add the custom domain, but when I try to save I get an error that "Another custom domain with the same host name already exists."

I do not have xyz.contoso.com registered with any other app -- it is pointed to Azure Traffic Manager in the domain record.

If I try to hit afdverify.xyz.contoso.com directly in the browser, I get the "Our services aren't available right now" error -- which implies it's hitting my front door instance, but doesn't help me actually verify that my custom domain is working as expected.

What am I missing here? How am I supposed to verify my temporary subdomain so that I can confirm it's working and move on to migrating the actual domain?

Any advice appreciated. Thanks.

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

Accepted answer
  1. GitaraniSharma-MSFT 50,021 Reputation points Microsoft Employee Moderator
    2021-07-13T13:36:49.067+00:00

    Hello @Jesse Stewart (he/him) ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    The tutorial that you are following is correct but the steps should be in the below order:

    1. Map the temporary afdverify subdomain
    2. Map the permanent custom domain
    3. Associate the custom domain with your Front Door
    4. Verify the custom domain

    So the actual steps are as follows:

    1. First map your custom domain to your Front Door default frontend host with the Azure afdverify subdomain to create a temporary CNAME mapping (afdverify.www.contoso.com CNAME afdverify.contoso-frontend.azurefd.net). --> This is already done by you.
    2. After you've verified that the afdverify subdomain has been successfully mapped to your Front Door, you can then map the custom domain directly to your default Front Door frontend host. To do that, create a CNAME for your custom domain (<www.contoso.com> CNAME contoso-frontend.azurefd.net) and then delete the previously created a temporary afdverify subdomain CNAME record.
    3. Now, you can go to Azure portal and perform the below:

    On the Front Door designer page, select '+' to add a custom domain.
    For Frontend host, the frontend host to use as the destination domain of your CNAME record is pre-filled and is derived from your Front Door: <default hostname>.azurefd.net. It cannot be changed.
    For Custom hostname, enter your custom domain, including the subdomain, to use as the source domain of your CNAME record. For example, www.contoso.com or cdn.contoso.com. Don't use the afdverify subdomain name.
    Select Add.

    After you've completed the registration of your custom domain, verify that the custom domain references your default Front Door frontend host.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.