az network front-door waf-policy rule

Manage WAF policy custom rules.

Commands

az network front-door waf-policy rule create

Create a WAF policy custom rule. Use --defer and add a rule match-condition.

az network front-door waf-policy rule delete

Delete a WAF policy custom rule.

az network front-door waf-policy rule list

List WAF policy custom rules.

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

Alter match-conditions associated with 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.

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 show

Get the details of a WAF policy custom rule.

az network front-door waf-policy rule update

Alter the details of a WAF policy custom rule.

az network front-door waf-policy rule create

Create a WAF policy custom rule. Use --defer and add a rule match-condition.

az network front-door waf-policy rule create --action {Allow, Block, Log, Redirect}
                                             --name
                                             --policy-name
                                             --priority
                                             --resource-group
                                             --rule-type {MatchRule, RateLimitRule}
                                             [--disabled {false, true}]
                                             [--rate-limit-duration]
                                             [--rate-limit-threshold]

Required Parameters

--action

Rule action.

accepted values: Allow, Block, Log, Redirect
--name -n

Name of the custom rule.

--policy-name

Name of the WAF policy.

--priority

Priority of the rule.

--resource-group -g

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

--rule-type

Type of rule.

accepted values: MatchRule, RateLimitRule

Optional Parameters

--disabled

Whether to disable the rule.

accepted values: false, true
--rate-limit-duration

Rate limit duration in minutes.

--rate-limit-threshold

Rate limit threshold.

az network front-door waf-policy rule delete

Delete a WAF policy custom rule.

az network front-door waf-policy rule delete --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 list

List WAF policy custom rules.

az network front-door waf-policy rule 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 rule show

Get the details of a WAF policy custom rule.

az network front-door waf-policy rule show --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 update

Alter the details of a WAF policy custom rule.

az network front-door waf-policy rule update --name
                                             --policy-name
                                             --resource-group
                                             [--action {Allow, Block, Log, Redirect}]
                                             [--disabled {false, true}]
                                             [--priority]
                                             [--rate-limit-duration]
                                             [--rate-limit-threshold]

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

Optional Parameters

--action

Rule action.

accepted values: Allow, Block, Log, Redirect
--disabled

Whether to disable the rule.

accepted values: false, true
--priority

Priority of the rule.

--rate-limit-duration

Rate limit duration in minutes.

--rate-limit-threshold

Rate limit threshold.