CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

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

8 in the Azure CLI reference
--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.