Using application gateway cross-subscriptions

Suwarna S Kale 306 Reputation points
2023-10-09T16:35:30.07+00:00

We have a use case where we want to use application gateway as it’s a layer 7 regional service. We have different subscription created according to environment type (dev, qa,uat,prod). But can we use single application gateway created in one subscription (east us) to connect resource in different subscriptions (east us)? Like we place application gateway at hub network and all other environment specific subscriptions would be spoke networks. What is the recommended practice, we can use single application gateway across all subscription in same region or we should have separate application gateway in each subscription? What are pros and cons?

Also, is it possible to connect application gateway to send data to Azure data lake or other azure data services? Probably using another service as a mediator?

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

Accepted answer
  1. KapilAnanth-MSFT 41,491 Reputation points Microsoft Employee
    2023-10-10T04:16:23.43+00:00

    @Suwarna S Kale

    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 use Azure Application gateway across multiple VNETs in different subscriptions.

    This is perfectly possible and Application gateway will be able to communicate with resources in other VNETs outside it's subscription as long as the VNET in which the Application gateway is deployed and the backend VNETs are peered.

    Refer FAQ : Can Application Gateway communicate with instances outside of its virtual network or outside of its subscription?

    The choice to use a Single gateway or multiple gateways entirely depends on your requirement and architecture and the isolation/management you would require.

    In any case, I can't think of any pros/cons with using either Multiple App gateway or Peered VNET VMs as backends in a single App gateway, only there are some considerations.

    • Note that the backend type must be "Internal IP addresses".
    • You must make sure the VNET Peering is properly configured and the App gateway is able to access the backend VMs
      • Wrt NSGs and UDRs on the backend VMs' subnets.
    • You can either use
      • a single Wildcard listener to receive traffic for every backend
        • or multiple listeners for multiple backends and tie them to appropriate backend
    • I would suggest using multiple listeners as allows for easy management

    The only thing I can think of is Management overhead with using a single App gateway

    • You must make sure the Listeners are properly tied to the appropriate backend (dev,qa,uat,prod) using the Routing Rules.
    • Again, this would depend on your requirement.

    Some docs that may come in handy are :

    Wrt "is it possible to connect application gateway to send data to Azure data lake or other azure data services? Probably using another service as a mediator?"

    • Primary use case of Azure App gateway is to provide a reverse proxy for sites.
    • The backends will not be able to initiate a connection via App gateway
      • i.e, App gateway is inbound only. The VMs cannot initiate an outbound traffic via App gateway.
    • So, if your intention is to make use of App gateway to enable the backend VMs to upload files to Azure data lake or other azure data services - this won't be feasible.
    • However, Azure application gateway is perfectly capable of acting as a reverse proxy for other PaaS services that are exposed via Public Internet (in your case, Azure data lake)
    • So, if your intention is to enable Clients in Internet to upload data to Azure data lake via App gateway - this should be doable.

    I would suggest you post a new query with exact use case for this file upload and appropriate tags, so the community experts on Data lake storage can add their comments as well.

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful