az network application-gateway waf-policy

Manage application gateway web application firewall (WAF) policies.

Commands

az network application-gateway waf-policy create

Create an application gateway WAF policy.

az network application-gateway waf-policy custom-rule

Manage application gateway web application firewall (WAF) policy custom rules.

az network application-gateway waf-policy custom-rule create

Create an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule delete

Delete an application gateway WAF policy custom rule.

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

List application gateway WAF policy custom rules.

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

Manage application gateway web application firewall (WAF) policies.

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 show

Get the details of an application gateway WAF policy custom rule.

az network application-gateway waf-policy custom-rule update

Update an application gateway WAF policy custom rule.

az network application-gateway waf-policy delete

Delete an application gateway WAF policy.

az network application-gateway waf-policy list

List application gateway WAF policies.

az network application-gateway waf-policy managed-rule

Manage managed rules of a waf-policy. Visit: https://docs.microsoft.com/en-us/azure/web-application-firewall/afds/afds-overview.

az network application-gateway waf-policy managed-rule exclusion

Manage OWASP CRS exclusions that are applied on a WAF policy managed rules.

az network application-gateway waf-policy managed-rule exclusion add

Add an OWASP CRS exclusion rule to the WAF policy managed rules.

az network application-gateway waf-policy managed-rule exclusion list

List all OWASP CRS exclusion rules that are applied on a Waf policy managed rules.

az network application-gateway waf-policy managed-rule exclusion remove

List all OWASP CRS exclusion rules that are applied on a Waf policy managed rules.

az network application-gateway waf-policy managed-rule rule-set

Manage managed rule set of managed rules of a WAF policy.

az network application-gateway waf-policy managed-rule rule-set add

Add managed rule set to the WAF policy managed rules. For rule set and rules, please visit: https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-crs-rulegroups-rules.

az network application-gateway waf-policy managed-rule rule-set list

List all managed rule set.

az network application-gateway waf-policy managed-rule rule-set remove

Remove a managed rule set by rule set group name if rule_group_name is specified. Otherwise, remove all rule set.

az network application-gateway waf-policy managed-rule rule-set update

Update(Override) existing rule set of a WAF policy managed rules. For rule set and rules, please visit: https://docs.microsoft.com/en-us/azure/web-application-firewall/ag/application-gateway-crs-rulegroups-rules.

az network application-gateway waf-policy policy-setting

Defines contents 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 update

Update properties of a web application firewall global configuration.

az network application-gateway waf-policy show

Get the details of an application gateway WAF policy.

az network application-gateway waf-policy update

Update an application gateway WAF policy.

az network application-gateway waf-policy wait

Place the CLI in a waiting state until a condition of the application gateway WAF policy is met.

az network application-gateway waf-policy create

Create an application gateway WAF policy.

az network application-gateway waf-policy create --name
                                                 --resource-group
                                                 [--location]
                                                 [--subscription]
                                                 [--tags]
                                                 [--type {Microsoft_BotManagerRuleSet, OWASP}]
                                                 [--version {0.1, 2.2.9, 3.0, 3.1}]

Examples

Create an application gateway WAF policy. (autogenerated)

az network application-gateway waf-policy create --name MyApplicationGatewayWAFPolicy --resource-group MyResourceGroup

Required Parameters

--name -n

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

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

--type

The type of the web application firewall rule set.

accepted values: Microsoft_BotManagerRuleSet, OWASP
default value: OWASP
--version

The version of the web application firewall rule set type. 0.1 is used for Microsoft_BotManagerRuleSet.

accepted values: 0.1, 2.2.9, 3.0, 3.1
default value: 3.0

az network application-gateway waf-policy delete

Delete an application gateway WAF policy.

az network application-gateway waf-policy delete [--ids]
                                                 [--name]
                                                 [--resource-group]
                                                 [--subscription]

Examples

Delete an application gateway WAF policy. (autogenerated)

az network application-gateway waf-policy delete --name MyApplicationGatewayWAFPolicy --resource-group MyResourceGroup

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

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.

az network application-gateway waf-policy list

List application gateway WAF policies.

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

Examples

List application gateway WAF policies. (autogenerated)

az network application-gateway waf-policy list --resource-group MyResourceGroup

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.

--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.

az network application-gateway waf-policy show

Get the details of an application gateway WAF policy.

az network application-gateway waf-policy show [--ids]
                                               [--name]
                                               [--query-examples]
                                               [--resource-group]
                                               [--subscription]

Examples

Get the details of an application gateway WAF policy. (autogenerated)

az network application-gateway waf-policy show --name MyApplicationGatewayWAFPolicy --resource-group MyResourceGroup

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

The name of the application gateway WAF policy.

--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.

--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.

az network application-gateway waf-policy update

Update an application gateway WAF policy.

az network application-gateway waf-policy update [--add]
                                                 [--force-string]
                                                 [--ids]
                                                 [--name]
                                                 [--remove]
                                                 [--resource-group]
                                                 [--set]
                                                 [--subscription]
                                                 [--tags]

Examples

Update an application gateway WAF policy. (autogenerated)

az network application-gateway waf-policy update --add communities='12076:5010' --name MyApplicationGatewayWAFPolicy --resource-group MyResourceGroup

Update an application gateway WAF policy. (autogenerated)

az network application-gateway waf-policy update --name MyApplicationGatewayWAFPolicy --remove tags.no_80 --resource-group MyResourceGroup

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>.

--force-string

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

--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

The name of the application gateway WAF policy.

--remove

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

--resource-group -g

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

--set

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

--subscription

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

--tags

Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.

az network application-gateway waf-policy wait

Place the CLI in a waiting state until a condition of the application gateway WAF policy is met.

az network application-gateway waf-policy wait [--created]
                                               [--custom]
                                               [--deleted]
                                               [--exists]
                                               [--ids]
                                               [--interval]
                                               [--name]
                                               [--resource-group]
                                               [--subscription]
                                               [--timeout]
                                               [--updated]

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

--exists

Wait until the resource exists.

--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.

--interval

Polling interval in seconds.

default value: 30
--name -n

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.

--timeout

Maximum wait in seconds.

default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.