az network front-door waf-policy managed-rules

Note

This reference is part of the front-door extension for the Azure CLI (version 2.0.68 or higher). The extension will automatically install the first time you run an az network front-door waf-policy managed-rules command. Learn more about extensions.

Change and view managed rule sets associated with your WAF policy.

Commands

az network front-door waf-policy managed-rules add

Add a managed rule set to a WAF policy.

az network front-door waf-policy managed-rules exclusion

View and alter exclusions on a managed rule set, rule group, or rule within a managed rule set.

az network front-door waf-policy managed-rules exclusion add

Add an exclusion on a managed rule set, rule group, or rule within a managed rule set.

az network front-door waf-policy managed-rules exclusion list

List the exclusions on managed rule set, rule group, or rule within a managed rule set.

az network front-door waf-policy managed-rules exclusion remove

Remove an exclusion on a managed rule set, rule group, or rule within a managed rule set.

az network front-door waf-policy managed-rules list

Show which managed rule sets are applied to a WAF policy.

az network front-door waf-policy managed-rules override

View and alter overrides on managed rules within a managed rule set.

az network front-door waf-policy managed-rules override add

Add an override on a managed rule within a managed rule set.

az network front-door waf-policy managed-rules override list

List the overrides on managed rules within a managed rule set.

az network front-door waf-policy managed-rules override remove

Remove an override on a managed rule within a managed rule set.

az network front-door waf-policy managed-rules remove

Remove a managed rule set from a WAF policy.

az network front-door waf-policy managed-rules add

Add a managed rule set to a WAF policy.

Use 'az network front-door waf-policy managed-rule-definition list' to see the available managed rulesets.

az network front-door waf-policy managed-rules add --type
                                                   --version
                                                   [--action {Block, Log, Redirect}]
                                                   [--ids]
                                                   [--policy-name]
                                                   [--resource-group]
                                                   [--subscription]

Required Parameters

--type

Ruleset type to use.

--version

Rule set version.

Optional Parameters

--action

Action for applied rulesets, only required for Microsoft_DefaultRuleSet with version 2.0 or higher.

accepted values: Block, Log, Redirect
--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.

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

--subscription

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

az network front-door waf-policy managed-rules list

Show which managed rule sets are applied to a WAF policy.

az network front-door waf-policy managed-rules list --policy-name
                                                    --resource-group

Required Parameters

--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 managed-rules remove

Remove a managed rule set from a WAF policy.

az network front-door waf-policy managed-rules remove --type
                                                      [--ids]
                                                      [--policy-name]
                                                      [--resource-group]
                                                      [--subscription]

Required Parameters

--type

ID of the ruleset 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.

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

--subscription

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