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 ...

Get Microsoft Azure Architect Technologies: Exam Guide AZ-300 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.