Skip to content

Commit 433aa86

Browse files
authored
Update waf-front-door-configure-ip-restriction.md
fix Powershell and Cli syntax for multiple IP addresses values
1 parent 89e419e commit 433aa86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/frontdoor/waf-front-door-configure-ip-restriction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ az network waf-policy custom-rule create \
5858
--name IPAllowListRule \
5959
--priority 1 \
6060
--rule-type MatchRule \
61-
--match-condition RemoteAddr IPMatch "<ip-address-range-1>","<ip-address-range-2>" \
61+
--match-condition RemoteAddr IPMatch ("<ip-address-range-1>","<ip-address-range-2>") \
6262
--action Allow \
6363
--resource-group <resource-group-name> \
6464
--policy-name IPAllowPolicyExampleCLI
@@ -134,7 +134,7 @@ In the following example, replace *ip-address-range-1*, *ip-address-range-2* wit
134134
$IPMatchCondition = New-AzFrontDoorWafMatchConditionObject `
135135
-MatchVariable RemoteAddr `
136136
-OperatorProperty IPMatch `
137-
-MatchValue ["ip-address-range-1", "ip-address-range-2"]
137+
-MatchValue "ip-address-range-1", "ip-address-range-2"
138138
```
139139
Create an IP *match all condition* rule by using the following command:
140140
```powershell

0 commit comments

Comments
 (0)