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
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
Name of the match condition: https://learn.microsoft.com/en-us/azure/cdn/cdn-standard-rules-engine-match-conditions.
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Accepted values: | ClientPort, Cookies, HostName, HttpVersion, IsDevice, PostArgs, QueryString, RemoteAddress, RequestBody, RequestHeader, RequestMethod, RequestScheme, RequestUri, ServerPort, SocketAddr, SslProtocol, UrlFileExtension, UrlFileName, UrlPath |
Operator of the match condition.
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Name of the rule.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Match values of the match condition. e.g, space separated values "GET" "HTTP".
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Name of the CDN endpoint.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
If true, negates the condition.
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Accepted values: | false, true |
Name of the CDN profile which is unique within the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Selector of the match condition.
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Transform to apply before matching.
Property | Value |
---|---|
Parameter group: | Match Condition Arguments |
Accepted values: | Lowercase, Uppercase |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az cdn endpoint rule condition remove
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
The index of the condition/action.
Name of the rule.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the CDN endpoint.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the CDN profile which is unique within the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az cdn endpoint rule condition show
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
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
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.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the CDN endpoint.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of the CDN profile which is unique within the resource group.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Property | Value |
---|---|
Parameter group: | Resource Id Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |