Use the same Custom Domain for an App Service within the same scale unit behind an Application Gateway

Sam Gooch 1 Reputation point
2021-03-24T14:34:36.84+00:00

I need to add a custom domain to two App Services running on the same App Service Plan. In front of them both, sits an Application Gateway which the DNS is configured to route to.

The reason I need a custom domain is because the applications are expecting that custom domain to be present and it affects the routing and URL behaviour from the CMS application.

Please advise how best to do this?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2021-03-28T09:38:44.63+00:00

    Hi @Sam Gooch

    Thanks for your patience.

    Yes, your scenario can be achieved using URL path-based routing via Application Gateway. Please follow this tutorial:
    Create an application gateway with path-based routing rules using the Azure portal.

    81997-figure1.png

    Another option could be deploying your web apps to multiple virtual directories. Read this Blog post and SO post for more details.

    Hope that helps.
    -Grace


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.