File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
articles/web-application-firewall/ag Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ $sku = New-AzApplicationGatewaySku -Name WAF_v2 -Tier WAF_v2
104
104
### Create two custom rules and apply it to WAF policy
105
105
106
106
``` azurepowershell
107
+ # Create WAF config
108
+ $wafConfig = New-AzApplicationGatewayWebApplicationFirewallConfiguration -Enabled $true -FirewallMode "Prevention" -RuleSetType "OWASP" -RuleSetVersion "3.0"
107
109
# Create a User-Agent header custom rule
108
110
$variable = New-AzApplicationGatewayFirewallMatchVariable -VariableName RequestHeaders -Selector User-Agent
109
111
$condition = New-AzApplicationGatewayFirewallCondition -MatchVariable $variable -Operator Contains -MatchValue "evilbot" -Transform Lowercase -NegationCondition $False
You can’t perform that action at this time.
0 commit comments