az cdn endpoint rule condition

Command group 'cdn endpoint rule' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Manage delivery rule conditions for an endpoint.

Commands

Name Description Type Status
az cdn endpoint rule condition add

Add a condition to a delivery rule.

Core Preview
az cdn endpoint rule condition remove

Remove a condition from a delivery rule.

Core Preview
az cdn endpoint rule condition show

Show delivery rules associate with the endpoint.

Core Preview

az cdn endpoint rule condition add

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Add a condition to a delivery rule.

az cdn endpoint rule condition add --match-variable {ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath}
                                   --operator
                                   --rule-name
                                   [--ids]
                                   [--match-values]
                                   [--name]
                                   [--negate-condition {false, true}]
                                   [--profile-name]
                                   [--resource-group]
                                   [--selector]
                                   [--subscription]
                                   [--transform {Lowercase, Uppercase}]

Examples

Add a remote address condition.

az cdn endpoint rule condition add -g group -n endpoint --profile-name profile --rule-name name --match-variable RemoteAddress --operator GeoMatch --match-values "TH"

Required Parameters

--match-variable

Name of the match condition: https://docs.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions.

accepted values: ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath
--operator

Operator of the match condition.

--rule-name

Name of the rule.

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.

--match-values

Match values of the match condition. e.g, space separated values "GET" "HTTP".

--name -n

Name of the CDN endpoint.

--negate-condition

If true, negates the condition.

accepted values: false, true
--profile-name

Name of the CDN profile which is unique within the resource group.

--resource-group -g

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

--selector

Selector of the match condition.

--subscription

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

--transform

Transform to apply before matching.

accepted values: Lowercase, Uppercase
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az cdn endpoint rule condition remove

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Remove a condition from a delivery rule.

az cdn endpoint rule condition remove --index
                                      --rule-name
                                      [--ids]
                                      [--name]
                                      [--profile-name]
                                      [--resource-group]
                                      [--subscription]

Examples

Remove the first condition.

az cdn endpoint rule condition remove -g group -n endpoint --profile-name profile --rule-name name --index 0

Required Parameters

--index

The index of the condition/action.

--rule-name

Name of the rule.

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

Name of the CDN endpoint.

--profile-name

Name of the CDN profile which is unique within the resource group.

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az cdn endpoint rule condition show

Preview

Command group 'cdn endpoint rule condition' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Show delivery rules associate with the endpoint.

az cdn endpoint rule condition show [--ids]
                                    [--name]
                                    [--profile-name]
                                    [--resource-group]
                                    [--subscription]

Examples

show delivery rules associate with the endpoint.

az cdn endpoint rule condition show -g group -n endpoint --profile-name profile-name

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

Name of the CDN endpoint.

--profile-name

Name of the CDN profile which is unique within the resource group.

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.