@@ -47,7 +47,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
47
47
-Priority 2 `
48
48
-RuleType MatchRule `
49
49
-MatchCondition $condition `
50
- -Action Block
50
+ -Action Block `
51
+ -State Enabled
51
52
```
52
53
53
54
And here is the corresponding JSON:
@@ -60,6 +61,7 @@ And here is the corresponding JSON:
60
61
"priority" : 2 ,
61
62
"ruleType" : " MatchRule" ,
62
63
"action" : " Block" ,
64
+ "state" : " Enabled" ,
63
65
"matchConditions" : [
64
66
{
65
67
"matchVariables" : [
@@ -106,7 +108,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
106
108
-Priority 2 `
107
109
-RuleType MatchRule `
108
110
-MatchCondition $condition `
109
- -Action Block
111
+ -Action Block `
112
+ -State Enabled
110
113
```
111
114
112
115
And the corresponding JSON:
@@ -119,6 +122,7 @@ And the corresponding JSON:
119
122
"priority" : 2 ,
120
123
"ruleType" : " MatchRule" ,
121
124
"action" : " Block" ,
125
+ "state" : " Enabled" ,
122
126
"matchConditions" : [
123
127
{
124
128
"matchVariables" : [
@@ -162,7 +166,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
162
166
-Priority 2 `
163
167
-RuleType MatchRule `
164
168
-MatchCondition $condition `
165
- -Action Block
169
+ -Action Block `
170
+ -State Enabled
166
171
```
167
172
168
173
And the corresponding JSON:
@@ -175,6 +180,7 @@ And the corresponding JSON:
175
180
"priority" : 2 ,
176
181
"ruleType" : " MatchRule" ,
177
182
"action" : " Block" ,
183
+ "state" : " Enabled" ,
178
184
"matchConditions" : [
179
185
{
180
186
"matchVariables" : [
@@ -220,7 +226,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
220
226
-Priority 10 `
221
227
-RuleType MatchRule `
222
228
-MatchCondition $condition1 `
223
- -Action Block
229
+ -Action Block `
230
+ -State Enabled
224
231
```
225
232
226
233
Here's the corresponding JSON:
@@ -233,6 +240,7 @@ Here's the corresponding JSON:
233
240
"priority" : 10 ,
234
241
"ruleType" : " MatchRule" ,
235
242
"action" : " Block" ,
243
+ "state" : "Enabled,
236
244
"matchConditions" : [
237
245
{
238
246
"matchVariables" : [
@@ -288,7 +296,8 @@ $condition2 = New-AzApplicationGatewayFirewallCondition `
288
296
-Priority 10 `
289
297
-RuleType MatchRule `
290
298
-MatchCondition $condition1, $condition2 `
291
- -Action Block
299
+ -Action Block `
300
+ -State Enabled
292
301
```
293
302
294
303
Here's the corresponding JSON:
@@ -301,6 +310,7 @@ Here's the corresponding JSON:
301
310
"priority" : 10 ,
302
311
"ruleType" : " MatchRule" ,
303
312
"action" : " Block" ,
313
+ "state" : " Enabled" ,
304
314
"matchConditions" : [
305
315
{
306
316
"matchVariables" : [
@@ -369,14 +379,16 @@ $rule1 = New-AzApplicationGatewayFirewallCustomRule `
369
379
-Priority 10 `
370
380
-RuleType MatchRule `
371
381
-MatchCondition $condition1 `
372
- -Action Block
382
+ -Action Block `
383
+ -State Enabled
373
384
374
385
$rule2 = New-AzApplicationGatewayFirewallCustomRule `
375
386
-Name myrule2 `
376
387
-Priority 20 `
377
388
-RuleType MatchRule `
378
389
-MatchCondition $condition2 `
379
- -Action Block
390
+ -Action Block `
391
+ -State Enabled
380
392
```
381
393
382
394
And the corresponding JSON:
@@ -389,6 +401,7 @@ And the corresponding JSON:
389
401
"priority" : 10 ,
390
402
"ruleType" : " MatchRule" ,
391
403
"action" : " Block" ,
404
+ "state" : " Enabled" ,
392
405
"matchConditions" : [
393
406
{
394
407
"matchVariables" : [
@@ -410,6 +423,7 @@ And the corresponding JSON:
410
423
"priority" : 20 ,
411
424
"ruleType" : " MatchRule" ,
412
425
"action" : " Block" ,
426
+ "state" : " Enabled" ,
413
427
"matchConditions" : [
414
428
{
415
429
"matchVariables" : [
@@ -456,7 +470,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
456
470
-Priority 2 `
457
471
-RuleType MatchRule `
458
472
-MatchCondition $condition `
459
- -Action Block
473
+ -Action Block `
474
+ -State Enabled
460
475
```
461
476
462
477
Corresponding JSON:
@@ -469,6 +484,7 @@ Corresponding JSON:
469
484
"priority" : 2 ,
470
485
"ruleType" : " MatchRule" ,
471
486
"action" : " Block" ,
487
+ "state" : " Enabled" ,
472
488
"matchConditions" : [
473
489
{
474
490
"matchVariables" : [
@@ -515,7 +531,8 @@ $rule = New-AzApplicationGatewayFirewallCustomRule `
515
531
-Priority 2 `
516
532
-RuleType MatchRule `
517
533
-MatchCondition $condition `
518
- -Action Block
534
+ -Action Block `
535
+ -State Enabled
519
536
```
520
537
521
538
And here is the corresponding JSON:
@@ -528,6 +545,7 @@ And here is the corresponding JSON:
528
545
"priority" : 2 ,
529
546
"ruleType" : " MatchRule" ,
530
547
"action" : " Block" ,
548
+ "state" : " Enabled" ,
531
549
"matchConditions" : [
532
550
{
533
551
"matchVariables" : [
0 commit comments