Skip to content

Commit c63a0cf

Browse files
authored
Merge pull request MicrosoftDocs#3241 from ShuheiUda/patch-3
Update application-gateway-web-app-powershell.md
2 parents 30675c7 + ac514a5 commit c63a0cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/application-gateway/application-gateway-web-app-powershell.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $probe = Get-AzureRmApplicationGatewayProbeConfig -name webappprobe2 -Applicatio
4545
Set-AzureRmApplicationGatewayBackendHttpSettings -Name appGatewayBackendHttpSettings -ApplicationGateway $gw -PickHostNameFromBackendAddress -Port 80 -Protocol http -CookieBasedAffinity Disabled -RequestTimeout 30 -Probe $probe
4646
4747
# Add the web app to the backend pool
48-
Set-AzureRmApplicationGatewayBackendAddressPool -Name appGatewayBackendPool -ApplicationGateway $gw -BackendIPAddresses $webappFQDN
48+
Set-AzureRmApplicationGatewayBackendAddressPool -Name appGatewayBackendPool -ApplicationGateway $gw -BackendFqdns $webappFQDN
4949
5050
# Update the application gateway
5151
Set-AzureRmApplicationGateway -ApplicationGateway $gw
@@ -95,7 +95,7 @@ $publicip = New-AzureRmPublicIpAddress -ResourceGroupName $rg.ResourceGroupName
9595
$gipconfig = New-AzureRmApplicationGatewayIPConfiguration -Name gatewayIP01 -Subnet $subnet
9696
9797
# Create a backend pool with the hostname of the web app
98-
$pool = New-AzureRmApplicationGatewayBackendAddressPool -Name appGatewayBackendPool -BackendIPAddresses $webapp.HostNames
98+
$pool = New-AzureRmApplicationGatewayBackendAddressPool -Name appGatewayBackendPool -BackendFqdns $webapp.HostNames
9999
100100
# Define the status codes to match for the probe
101101
$match = New-AzureRmApplicationGatewayProbeHealthResponseMatch -StatusCode 200-399

0 commit comments

Comments
 (0)