az network front-door waf-policy rule match-condition

Alter match-conditions associated with a WAF policy custom rule.

Note that at least one match-condition must be associated with a custom rule.

Commands

az network front-door waf-policy rule match-condition add

Add a match-condition to a WAF policy custom rule.

az network front-door waf-policy rule match-condition list

Show all match-conditions associated with a WAF policy custom rule.

az network front-door waf-policy rule match-condition remove

Remove a match-condition from a WAF policy custom rule.

az network front-door waf-policy rule match-condition add

Add a match-condition to a WAF policy custom rule.

Usage: [--negate] --match-variable VARIABLE[.selector] --operator OPERATOR --value [VALUE [VALUE ...]]

Variable allowed values: RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestHeader, RequestBody, Cookies, SocketAddr

Operator allowed values: Any, IPMatch, GeoMatch, Equal, Contains, LessThan, GreaterThan, LessThanOrEqual, GreaterThanOrEqual, BeginsWith, EndsWith, RegEx.

az network front-door waf-policy rule match-condition add --match-variable
                                                          --name
                                                          --operator
                                                          --policy-name
                                                          --resource-group
                                                          --values
                                                          [--negate {false, true}]
                                                          [--transforms {Lowercase, RemoveNulls, Trim, Uppercase, UrlDecode, UrlEncode}]

Required Parameters

--match-variable

Variable[.Selector] Request variable to test with optional selector.

--name -n

Name of the custom rule.

--operator

Operator used to compare the variable to the values.

--policy-name

Name of the WAF policy.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--values

Space-separated list of values to match against.

Optional Parameters

--negate

Applies "Not" to the operator.

accepted values: false, true
--transforms

Space-separated list of transforms to apply.

accepted values: Lowercase, RemoveNulls, Trim, Uppercase, UrlDecode, UrlEncode

az network front-door waf-policy rule match-condition list

Show all match-conditions associated with a WAF policy custom rule.

az network front-door waf-policy rule match-condition list --name
                                                           --policy-name
                                                           --resource-group

Required Parameters

--name -n

Name of the custom rule.

--policy-name

Name of the WAF policy.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

az network front-door waf-policy rule match-condition remove

Remove a match-condition from a WAF policy custom rule.

az network front-door waf-policy rule match-condition remove --index
                                                             --name
                                                             --policy-name
                                                             --resource-group

Required Parameters

--index

0-based index of the match condition to remove.

--name -n

Name of the custom rule.

--policy-name

Name of the WAF policy.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.