Is it possible to use .azurewebsites.net domain with application gateway?

Najam ul Saqib 280 Reputation points
2024-09-03T07:22:42.4266667+00:00

Hi,

I have integrated azure app gateway with my app service to have WAF in front of my web app. I see that I have app gateway's IP address via which I can access the app service, is there any possibility that I use the default domain of web app even with the app gateway?

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
1,048 questions
Azure Web Application Firewall
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,663 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 44,311 Reputation points Microsoft Employee
    2024-09-03T11:45:42.05+00:00

    @Najam ul Saqib ,

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

    I understand that you would like to know if you can use the App Service's default domain on to access the App gateway in front of it.

    To answer your query,

    • No
    • It is not possible

    Further explanation,

    • While it is technically possible to configure a listener with "<YOURSITE>.azurewebsites.net" on the application gateway, you cannot route traffic to this listener via Internet
    • This is because, "azurewebsites.net" domain is owned and managed by Microsoft and you cannot update any records within the domain
      • This means, "<YOURSITE>.azurewebsites.net" will always resolve to App Service
      • It cannot be made to resolve to the Application gateway's IP

    In the document , Configure App Service with Application Gateway

    • User's image
    • myapp.westeurope.cloudapp.azure.com and myapp.azurewebsites.net are two different domains
    • myapp.westeurope.cloudapp.azure.com is the default domain of Public IP of the App Gateway - Not the App Service

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

    Thanks,

    Kapil


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