Testing the application gateway

You can test the application gateway by requesting the public IP address of the gateway and pasting it into a browser window. Take the following steps:

  1. To get the public IP address, add the following line of code to PowerShell:
Get-AzPublicIPAddress -ResourceGroupName PacktApplicationGateway -Name PacktAGPublicIPAddress
  1. Paste this IP address into a browser window to test the application gateway. If you open an in-private browser and call the same URL, you will see that the request is routed to the second VM, as shown in the following screenshot:

Testing the application gateway

In the next section, we will learn how to configure the load balancing rules.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset