Skip to content

Commit 7045beb

Browse files
(AzureCXP) fixed variable name
Modified the command to make it consistent throughout the doc. resolves MicrosoftDocs/azure-docs#86428
1 parent 2add60a commit 7045beb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/web-application-firewall/ag/per-site-policies.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ $wafPolicyURI = New-AzApplicationGatewayFirewallPolicy `
263263
-PolicySetting $PolicySettingURI `
264264
-CustomRule $rule4, $rule5
265265
266-
$Gateway = Get-AzApplicationGateway -Name "myAppGateway"
266+
$appgw = Get-AzApplicationGateway `
267+
-ResourceGroupName myResourceGroupAG `
268+
-Name myAppGateway
267269
268270
$PathRuleConfig = New-AzApplicationGatewayPathRuleConfig -Name "base" `
269271
-Paths "/base" `
@@ -281,7 +283,7 @@ $URLPathMap = New-AzApplicationGatewayUrlPathMapConfig -Name "PathMap" `
281283
-DefaultBackendAddressPoolId $defaultPool.Id `
282284
-DefaultBackendHttpSettingsId $poolSettings.Id
283285
284-
Add-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGw `
286+
Add-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $appgw `
285287
-Name "RequestRoutingRule" `
286288
-RuleType PathBasedRouting `
287289
-HttpListener $siteListener `

0 commit comments

Comments
 (0)