How to Configure Azure Front Door with custom domain and 2 app services as origins

Melisa Ramos 0 Reputation points
2025-08-05T14:29:03.9333333+00:00

I am using Azure Front Door standard with a WAF security policy. I have a custom domain configured with the Front Door profile.

I want to use the same custom domain for my front door and app service origins. For example "lb.dv.org" for all 3 . User's image

Reference: https://learn.microsoft.com/en-us/azure/architecture/best-practices/host-name-preservation

I followed this documentation for the setup and it works with 1 App Service, but when I do the same thing for the second App Service, the load balancing doesn't work. It stays stuck on 1 App Service site.

I mainly want to keep the same custom domain for all 3 because I read this is best practice and in order to use the same WAF policy rules.

Any help on this issue would be greatly appreciated.

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

1 answer

Sort by: Most helpful
  1. Ganesh Patapati 8,755 Reputation points Microsoft External Staff Moderator
    2025-08-11T14:10:42.41+00:00

    Hello Melisa Ramos

    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: How to Configure Azure Front Door with custom domain and 2 app services as origins

     

    Resolution: I figured out what the issue was, I had to configure authentication settings and exclude the health probe path from authentication.

    I followed this as a reference: https://azure.github.io/AppService/2021/03/26/Secure-resilient-site-with-custom-domain.html


    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. Accepted answer

    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.