CmdID / az / az network / az network application-gateway / az network application-gateway waf-policy / az network application-gateway waf-policy custom-rule / az network application-gateway waf-policy custom-rule match-condition
az network application-gateway waf-policy custom-rule match-condition add
Add a match condition to an application gateway WAF policy custom rule. Azure CLI reference
2 examples 8 options Its page in the Azure CLI reference
Examples
Add application gateway WAF policy custom rule match condition with contains.
az network application-gateway waf-policy custom-rule match-condition add --resource-group MyResourceGroup --policy-name MyPolicy --name MyWAFPolicyRule --match-variables RequestHeaders.value --operator contains --values foo boo --transform lowercaseIdentify--resource-groupName of resource group.--policy-nameName of the application gateway WAF policy.--nameName of the WAF policy rule.--operatorOperator for matching.--valuesSpace-separated list of values to match.Add application gateway WAF policy custom rule match condition with equal.
az network application-gateway waf-policy custom-rule match-condition add --resource-group MyResourceGroup --policy-name MyPolicy --name MyWAFPolicyRule --match-variables RequestHeaders.Content-Type --operator Equal --values application/csp-reportIdentify--resource-groupName of resource group.--policy-nameName of the application gateway WAF policy.--nameName of the WAF policy rule.--operatorOperator for matching.--valuesSpace-separated list of values to match.Options
--indexIndex of match condition.--name, -nName of the WAF policy rule.--negateMatch the negative of the condition.--operatorOperator for matching.--policy-nameName of the application gateway WAF policy.--transformsSpace-separated list of transforms to apply when matching.--valuesSpace-separated list of values to match.--variablesSpace-separated list of variables to use when matching.