Skip to content

Commit 6d2ade6

Browse files
authored
Merge pull request #205481 from KapilAnanth-MSFT/patch-1
(AzureCXP) MicrosoftDocs/azure-docs#96029
2 parents e756171 + 4c048be commit 6d2ade6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/application-gateway/application-gateway-create-probe-ps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The following code snippet adds a probe to an existing application gateway.
134134
$getgw = Get-AzApplicationGateway -Name appgwtest -ResourceGroupName appgw-rg
135135
136136
# 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
138138
139139
# Set the backend HTTP settings to use the new probe
140140
$getgw = Set-AzApplicationGatewayBackendHttpSettings -ApplicationGateway $getgw -Name $getgw.BackendHttpSettingsCollection.name -Port 80 -Protocol Http -CookieBasedAffinity Disabled -Probe $probe -RequestTimeout 120

0 commit comments

Comments
 (0)