Configuring an application gateway

You can create an Azure application gateway using the Azure portal, PowerShell, or CLI. In this demo, we are going to create an Azure application gateway from PowerShell. 

In this section, we are going to set up the required network resources, virtual machines, backend servers, frontend IP address, and the application gateway itself. It will take a while (30 minutes upwards) to run the full script.

The code for this example has been split into multiple sections. You can download the whole script from GitHub using the link provided in the Technical requirements section at the beginning of this chapter.

First, we need to connect to our Azure account and select the subscription. If you are using Azure Cloud Shell, you don't need to log in to your Azure account using the administrator credentials. Take the following steps:

  1. First, we need to log in to the Azure account, as follows:
Connect-AzAccount
  1. If necessary, select the right subscription, as follows:
    Select-AzSubscription -SubscriptionId "********-****-****-****-***********"
    ..................Content has been hidden....................

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