How to add application gateway to the azure web app service

ReCloudS 40 Reputation points
2025-03-03T12:33:59.31+00:00

Hi ,

I have the requirement of setting up a Azure App Gateway to the azure app service to configure a WAF rule to restrict the access from specific regions , so I will deploy an App Gateway with WAF2 and VNET to talk to each other on azure and configure frontend ip and backendpool and add the routing rule later.SO, my question here is the azure app service was existed already and and added the custom domain aswell , upon adding the new frontend public ip in the app gateway do In need to change the frontend public ip of the azure app service to the new frontend ip in the domain provider ? or if I ahve the CNAME record in place for the azure webapp I don't think I have to make any changes here , let me know If I am on the right lane ? anything would need to have a look at ?

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,136 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Praveen Bandaru 700 Reputation points Microsoft External Staff
    2025-03-03T14:31:14.64+00:00

    Hello ReCloudS

    Greetings!
    I understand that you want to set up an application gateway in the frontend of your web app service.

    The Application Gateway allows you to use an App Service app or other multi-tenant service as a backend pool member. App Service with Application Gateway This article explains how to configure an App Service app with Application Gateway. The configuration will vary based on how the App Service is accessed:

    The first option uses a custom domain for both the Application Gateway and the backend App Service.

    The second option allows the Application Gateway to access the App Service using its default domain, ending in ".azurewebsites.net".

    Note:  You also need to add an A record in the DNS zone pointing to the application gateway frontend IP. Only then will the traffic route via the application gateway. And remove the existing CNAME record those points to the web app in the DNS record.

    Check the below reference documents:


    Hope the above answer helps! Please let us know do you have any further queries.

    Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.

  2. Jose Benjamin Solis Nolasco 631 Reputation points
    2025-03-03T14:36:04.7866667+00:00

    I strongly suggest you to ensure that all traffic goes thought the gateway making changes on the service app as you said, you are almost in the right way @ReCloudS

    Additionally these video help me out when I have the same doubt.

    1- https://www.youtube.com/watch?v=xtey4xQjG70&pp=ygUqIEVuZm9yY2luZyBUcmFmZmljIFRocm91Z2ggdGhlIEFwcCBHYXRld2F5

    2-https://www.youtube.com/watch?v=B3O6bXu-NbM&pp=ygUqIEVuZm9yY2luZyBUcmFmZmljIFRocm91Z2ggdGhlIEFwcCBHYXRld2F5

    If you found it helpful, could you kindly click the “Accept Answer and upvote” on the post.

    If you have any further queries, please let us know we are glad to help you.

    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.