0

Can we have a single Application Gateway for all VMSS created in different regions? If yes please share the possible options.

Rahatur
  • 3,147
  • 3
  • 33
  • 49
Sachan
  • 135
  • 9
  • 1
    application gateways are based on single region just like load balancers. you need to use traffic manager or azure front door (in preview) services for cross region traffic distribution – Imran Arshad Mar 25 '19 at 20:02

1 Answers1

1

As the comment mentioned, we could not have a single Application gateway for all VMSS created in a different region since Application Gateway is always deployed in a virtual network subnet and it directly supports to deploy the VMSS as the backends in the same region and virtual network as the Application gateway.

As a workaround, you could use a public IP address as the backend for communicating with instances outside of the virtual network as long as there is IP connectivity. Read more details about backend pools. So you may use a public-facing load balancer associated with the VMSS.

Furthermore, you also could use Traffic Manager to distribute traffic across multiple Application Gateways in different datacenters. Or use Azure Front Door Service provides a scalable and secure entry point for fast delivery of your global web applications.

Nancy
  • 26,865
  • 3
  • 18
  • 34
  • Thanks. Suppoese I have added 3 Application gateway in traffic manager. Is there any way I can send request to specific application gateway dynamically. From my application I will select which application gateway I would like to serve the request,? – Sachan Mar 26 '19 at 02:44
  • Check the [Traffic Manager routing methods](https://learn.microsoft.com/en-us/azure/traffic-manager/traffic-manager-routing-methods) to determine how to route network traffic to the various service endpoints. – Nancy Mar 26 '19 at 02:53
  • i have gone through the routing methods but my problem is still not resolved. I need custom routing method where problematically i should be able to redirect the request to specific application gateway. – Sachan Mar 27 '19 at 12:10
  • Well, the traffic manager works at the DNS level. Simply, If you have two healthy backends behind it, TM help client to select the endpoints based on the routing rules like Priority, Performance, Geographic and so on. when one backend is not healthy, TM will help client redirect to another healthy endpoint. Is this what you expect? – Nancy Mar 28 '19 at 02:01
  • Azure Front Door Service is now GA and a layer 7 global traffic management service. For your requirements as seen from this thread, AFD seems like the right choice. – SharadAg Apr 29 '19 at 15:53