Lastly, we will create the application gateway itself. Proceed as follows:
- Create the application gateway, as follows:
$sku = New-AzApplicationGatewaySku -Name Standard_Medium -Tier Standard -Capacity 2
New-AzApplicationGateway `
-Name PacktAppGateway `
-ResourceGroupName PacktApplicationGateway `
-Location eastus `
-BackendAddressPools $backendPool `
-BackendHttpSettingsCollection $poolSettings `
-FrontendIpConfigurations $fipconfig `
-GatewayIpConfigurations $gipconfig `
-FrontendPorts $frontendport `
-HttpListeners $defaultlistener `
-RequestRoutingRules $frontendRule `
-Sku $sku
It will take approximately 30 minutes before the whole script is executed.