File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
articles/web-application-firewall/ag Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,9 @@ $wafPolicyURI = New-AzApplicationGatewayFirewallPolicy `
263
263
-PolicySetting $PolicySettingURI `
264
264
-CustomRule $rule4, $rule5
265
265
266
- $Gateway = Get-AzApplicationGateway -Name "myAppGateway"
266
+ $appgw = Get-AzApplicationGateway `
267
+ -ResourceGroupName myResourceGroupAG `
268
+ -Name myAppGateway
267
269
268
270
$PathRuleConfig = New-AzApplicationGatewayPathRuleConfig -Name "base" `
269
271
-Paths "/base" `
@@ -281,7 +283,7 @@ $URLPathMap = New-AzApplicationGatewayUrlPathMapConfig -Name "PathMap" `
281
283
-DefaultBackendAddressPoolId $defaultPool.Id `
282
284
-DefaultBackendHttpSettingsId $poolSettings.Id
283
285
284
- Add-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $AppGw `
286
+ Add-AzApplicationGatewayRequestRoutingRule -ApplicationGateway $appgw `
285
287
-Name "RequestRoutingRule" `
286
288
-RuleType PathBasedRouting `
287
289
-HttpListener $siteListener `
You can’t perform that action at this time.
0 commit comments