File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
articles/application-gateway Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ The following code snippet adds a probe to an existing application gateway.
134
134
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
135
135
136
136
# Create the probe object that will check health at http://contoso.com/path/path.htm
137
- $getgw = Add-AzApplicationGatewayProbeConfig -ApplicationGateway $getgw -Name probe01 -Protocol Http -HostName 'contoso.com' -Path '/path/custompath.htm' -Interval 30 -Timeout 120 -UnhealthyThreshold 8
137
+ $probe = Add-AzApplicationGatewayProbeConfig -ApplicationGateway $getgw -Name probe01 -Protocol Http -HostName 'contoso.com' -Path '/path/custompath.htm' -Interval 30 -Timeout 120 -UnhealthyThreshold 8
138
138
139
139
# Set the backend HTTP settings to use the new probe
140
140
$getgw = Set-AzApplicationGatewayBackendHttpSettings -ApplicationGateway $getgw -Name $getgw.BackendHttpSettingsCollection.name -Port 80 -Protocol Http -CookieBasedAffinity Disabled -Probe $probe -RequestTimeout 120
You can’t perform that action at this time.
0 commit comments