az network application-gateway waf-policy policy-setting

Defines contents of a web application firewall global configuration.

Commands

az network application-gateway waf-policy policy-setting list

List properties of a web application firewall global configuration.

az network application-gateway waf-policy policy-setting update

Update properties of a web application firewall global configuration.

az network application-gateway waf-policy policy-setting list

List properties of a web application firewall global configuration.

az network application-gateway waf-policy policy-setting list --policy-name
                                                              --resource-group
                                                              [--query-examples]
                                                              [--subscription]

Examples

List properties of a web application firewall global configuration. (autogenerated)

az network application-gateway waf-policy policy-setting list --policy-name MyPolicy --resource-group MyResourceGroup

Required Parameters

--policy-name

The name of the web application firewall 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 policy-setting update

Update properties of a web application firewall global configuration.

az network application-gateway waf-policy policy-setting update --policy-name
                                                                --resource-group
                                                                [--add]
                                                                [--file-upload-limit-in-mb]
                                                                [--force-string]
                                                                [--max-request-body-size-in-kb]
                                                                [--mode {Detection, Prevention}]
                                                                [--remove]
                                                                [--request-body-check {false, true}]
                                                                [--set]
                                                                [--state {Disabled, Enabled}]
                                                                [--subscription]

Examples

Update properties of a web application firewall global configuration. (autogenerated)

az network application-gateway waf-policy policy-setting update --mode Prevention --policy-name MyPolicy --resource-group MyResourceGroup

Required Parameters

--policy-name

The name of the web application firewall policy.

--resource-group -g

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

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--file-upload-limit-in-mb

Maximum file upload size in Mb for WAF.".

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--max-request-body-size-in-kb

Maximum request body size in Kb for WAF.

--mode

Describes if it is in detection mode or prevention mode at policy level.

accepted values: Detection, Prevention
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--request-body-check

Specified to require WAF to check request Body.

accepted values: false, true
--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--state

Describes if the policy is in enabled state or disabled state.

accepted values: Disabled, Enabled
--subscription

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