File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
articles/web-application-firewall/ag Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,15 @@ $AllowRule = New-AzApplicationGatewayFirewallCustomRule `
45
45
-RuleType MatchRule `
46
46
-MatchCondition $condition `
47
47
-Action Allow
48
+ -State Enabled
48
49
49
50
$BlockRule = New-AzApplicationGatewayFirewallCustomRule `
50
51
-Name example2 `
51
52
-Priority 2 `
52
53
-RuleType MatchRule `
53
54
-MatchCondition $condition `
54
55
-Action Block
56
+ -State Enabled
55
57
```
56
58
57
59
The previous ` $BlockRule ` maps to the following custom rule in Azure Resource Manager:
@@ -63,6 +65,7 @@ The previous `$BlockRule` maps to the following custom rule in Azure Resource Ma
63
65
"priority" : 2 ,
64
66
"ruleType" : " MatchRule" ,
65
67
"action" : " Block" ,
68
+ "state" : " Enabled" ,
66
69
"matchConditions" : [
67
70
{
68
71
"matchVariables" : [
@@ -95,7 +98,7 @@ The name of the rule. It appears in the logs.
95
98
96
99
### Enable rule [ optional]
97
100
98
- Turn this rule on/off.
101
+ Turn this rule on/off. Custom rules are enabled by default.
99
102
100
103
### Priority [ required]
101
104
You can’t perform that action at this time.
0 commit comments