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:
- To get the public IP address, add the following line of code to PowerShell:
Get-AzPublicIPAddress -ResourceGroupName PacktApplicationGateway -Name PacktAGPublicIPAddress
- 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.