Share via


az network front-door rules-engine rule condition

Note

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

Manage Rules Engine match conditions for Front Door.

Commands

Name Description Type Status
az network front-door rules-engine rule condition add

Add a match condition to a Rules Engine rule.

Extension GA
az network front-door rules-engine rule condition list

Show all match conditions associated with a Rules Engine rule.

Extension GA
az network front-door rules-engine rule condition remove

Remove a match condition from a Rules Engine rule.

Extension GA

az network front-door rules-engine rule condition add

Add a match condition to a Rules Engine rule.

az network front-door rules-engine rule condition add --front-door-name
                                                      --name
                                                      --resource-group
                                                      --rules-engine-name
                                                      [--match-values]
                                                      [--match-variable {IsMobile, PostArgs, QueryString, RemoteAddr, RequestBody, RequestFilename, RequestFilenameExtension, RequestHeader, RequestMethod, RequestPath, RequestScheme, RequestUri}]
                                                      [--negate-condition {false, true}]
                                                      [--operator {Any, BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual}]
                                                      [--selector]
                                                      [--transforms {Lowercase, RemoveNulls, Trim, Uppercase, UrlDecode, UrlEncode}]

Required Parameters

--front-door-name -f

Name of the Front Door.

--name -n

Name of the rule.

--resource-group -g

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

--rules-engine-name -r

Name of the Rules Engine.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--match-values

Space-separated list of values to match against.

Property Value
Parameter group: Match Condition Arguments
--match-variable

Name of the match condition.

Property Value
Parameter group: Match Condition Arguments
Accepted values: IsMobile, PostArgs, QueryString, RemoteAddr, RequestBody, RequestFilename, RequestFilenameExtension, RequestHeader, RequestMethod, RequestPath, RequestScheme, RequestUri
--negate-condition

Applies "Not" to the operator.

Property Value
Parameter group: Match Condition Arguments
Accepted values: false, true
--operator

Operator of the match condition.

Property Value
Parameter group: Match Condition Arguments
Accepted values: Any, BeginsWith, Contains, EndsWith, Equal, GeoMatch, GreaterThan, GreaterThanOrEqual, IPMatch, LessThan, LessThanOrEqual
--selector

Optional selector for the match condition variable.

Property Value
Parameter group: Match Condition Arguments
--transforms

Space-separated list of transforms to apply.

Property Value
Parameter group: Match Condition Arguments
Accepted values: Lowercase, RemoveNulls, Trim, Uppercase, UrlDecode, UrlEncode
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az network front-door rules-engine rule condition list

Show all match conditions associated with a Rules Engine rule.

az network front-door rules-engine rule condition list --front-door-name
                                                       --name
                                                       --resource-group
                                                       --rules-engine-name

Required Parameters

--front-door-name -f

Name of the Front Door.

--name -n

Name of the rule.

--resource-group -g

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

--rules-engine-name -r

Name of the Rules Engine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az network front-door rules-engine rule condition remove

Remove a match condition from a Rules Engine rule.

az network front-door rules-engine rule condition remove --front-door-name
                                                         --index
                                                         --name
                                                         --resource-group
                                                         --rules-engine-name

Required Parameters

--front-door-name -f

Name of the Front Door.

--index

0-based index of the match condition to remove.

--name -n

Name of the rule.

--resource-group -g

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

--rules-engine-name -r

Name of the Rules Engine.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False