Skip to content

Commit ef01c27

Browse files
authored
Merge pull request #185110 from ChaitanyaNaykodi-MSFT/patch-75
(AzureCXP) fixed variable name
2 parents 0f9063c + 7045beb commit ef01c27

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)