Skip to content

Commit 20a4a8f

Browse files
Update custom-waf-rules-overview.md
1 parent 96f7edd commit 20a4a8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/web-application-firewall/ag/custom-waf-rules-overview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ $AllowRule = New-AzApplicationGatewayFirewallCustomRule `
4545
-RuleType MatchRule `
4646
-MatchCondition $condition `
4747
-Action Allow
48+
-State Enabled
4849
4950
$BlockRule = New-AzApplicationGatewayFirewallCustomRule `
5051
-Name example2 `
5152
-Priority 2 `
5253
-RuleType MatchRule `
5354
-MatchCondition $condition `
5455
-Action Block
56+
-State Enabled
5557
```
5658

5759
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
6365
"priority": 2,
6466
"ruleType": "MatchRule",
6567
"action": "Block",
68+
"state": "Enabled",
6669
"matchConditions": [
6770
{
6871
"matchVariables": [
@@ -95,7 +98,7 @@ The name of the rule. It appears in the logs.
9598

9699
### Enable rule [optional]
97100

98-
Turn this rule on/off.
101+
Turn this rule on/off. Custom rules are enabled by default.
99102

100103
### Priority [required]
101104

0 commit comments

Comments
 (0)