Skip to content

Commit 76d0523

Browse files
authored
Merge pull request #104863 from msrini-MSFT/patch-103
(AzureCXP) fixes MicrosoftDocs/azure-docs#48191
2 parents c24db0e + 3e28b36 commit 76d0523

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ $sku = New-AzApplicationGatewaySku -Name WAF_v2 -Tier WAF_v2
104104
### Create two custom rules and apply it to WAF policy
105105

106106
```azurepowershell
107+
# Create WAF config
108+
$wafConfig = New-AzApplicationGatewayWebApplicationFirewallConfiguration -Enabled $true -FirewallMode "Prevention" -RuleSetType "OWASP" -RuleSetVersion "3.0"
107109
# Create a User-Agent header custom rule
108110
$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector User-Agent
109111
$condition = New-AzApplicationGatewayFirewallCondition -MatchVariable $variable -Operator Contains -MatchValue "evilbot" -Transform Lowercase -NegationCondition $False

0 commit comments

Comments
 (0)