How to move custom domain from App Service to Front Door?

Kay Werner 5 Reputation points
2025-02-06T10:28:48+00:00

We are going to configure/setup an additional Front Door between enduser and App Service. Right now a custom domain is configured to the App Service directly (and validated with TXT record). In future this domain should point to the Front Door endpoint directly. A downtime for this change must be avoided.

I assume it does not matter if Standard or Premium tier of FD is used. Is that correct?

What are the supported migration steps for a seemless switch of the config?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
750 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,296 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 3,605 Reputation points Microsoft Vendor
    2025-02-06T13:24:28.11+00:00

    Hello @Kay Werner

    Greetings!

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

    Here are the steps you need to follow to achieve this:

    1. You can achieve this, but you will experience some downtime. First, select the domain you want to move, then open the Front Door and choose the custom domain.
    2. Next, add the custom domain and validate it with a TXT record. Once the validation process is complete, remove the CNAME or A record mapping for the existing app service record.
    3. Finally, re-add the CNAME record mapping with the Azure Front Door endpoint name.
    4. Before switching DNS records, test the Front Door endpoint to ensure it correctly routes traffic to the App Service.
    5. Gradually update your DNS records to point to the Front Door endpoint.
    6. Monitor traffic and ensure that users are being routed correctly without downtime.
    7. Once the DNS changes have propagated and you confirm that traffic is flowing through Front Door, you can remove the direct App Service custom domain configuration.

    NOTE: Both Standard and Premium tiers support custom domains, so you can choose based on your feature needs.

    How to add Configure a custom domain on Azure Front Door

    Refer: https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-add-custom-domain


    I hope this has been helpful!

    Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

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

    1 person found this answer helpful.
    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.