az network application-gateway waf-policy custom-rule match-condition

Manage application gateway web application firewall (WAF) policies.

Commands

az network application-gateway waf-policy custom-rule match-condition add

A match condition to an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule match-condition list

List application gateway WAF policy custom rule match conditions.

az network application-gateway waf-policy custom-rule match-condition remove

Remove a match condition from an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule match-condition add

A match condition to an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule match-condition add --match-variables
                                                                          --operator {BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual, Regex}
                                                                          --values
                                                                          [--ids]
                                                                          [--name]
                                                                          [--negate {false, true}]
                                                                          [--policy-name]
                                                                          [--resource-group]
                                                                          [--subscription]
                                                                          [--transforms {HtmlEntityDecode, Lowercase, RemoveNulls, Trim, UrlDecode, UrlEncode}]

Required Parameters

--match-variables

Space-separated list of variables to use when matching. Variable values: RemoteAddr, RequestMethod, QueryString, PostArgs, RequestUri, RequestHeaders, RequestBody, RequestCookies.

--operator

Operator for matching.

accepted values: BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual, Regex
--values

Space-separated list of values to match.

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the WAF policy rule.

--negate

Match the negative of the condition.

accepted values: false, true
--policy-name

The name of the application gateway WAF policy.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--transforms

Space-separated list of transforms to apply when matching.

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

az network application-gateway waf-policy custom-rule match-condition list

List application gateway WAF policy custom rule match conditions.

az network application-gateway waf-policy custom-rule match-condition list --name
                                                                           --policy-name
                                                                           --resource-group
                                                                           [--query-examples]
                                                                           [--subscription]

Examples

List application gateway WAF policy custom rule match conditions. (autogenerated)

az network application-gateway waf-policy custom-rule match-condition list --name MyWAFPolicyRule --policy-name MyPolicy --resource-group MyResourceGroup --subscription MySubscription

Required Parameters

--name -n

Name of the WAF policy rule.

--policy-name

The name of the application gateway WAF policy.

--resource-group -g

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

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az network application-gateway waf-policy custom-rule match-condition remove

Remove a match condition from an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule match-condition remove --index
                                                                             [--ids]
                                                                             [--name]
                                                                             [--policy-name]
                                                                             [--resource-group]
                                                                             [--subscription]

Required Parameters

--index

Index of the match condition to remove.

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

Name of the WAF policy rule.

--policy-name

The name of the application gateway WAF policy.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.