az containerapp revision label

Manage revision labels assigned to traffic weights.

Commands

Name Description Type Status
az containerapp revision label add

Set a revision label to a revision with an associated traffic weight.

Core GA
az containerapp revision label remove

Remove a revision label from a revision with an associated traffic weight.

Core GA
az containerapp revision label swap

Swap a revision label between two revisions with associated traffic weights.

Core GA

az containerapp revision label add

Set a revision label to a revision with an associated traffic weight.

az containerapp revision label add --label
                                   --resource-group
                                   --revision
                                   [--name]
                                   [--no-prompt]

Examples

Add a label to the latest revision.

az containerapp revision label add -n my-containerapp -g MyResourceGroup --label myLabel --revision latest

Add a label to a previous revision.

az containerapp revision label add -g MyResourceGroup --label myLabel --revision revisionName

Required Parameters

--label

Name of the label.

--resource-group -g

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

--revision

Name of the revision.

Optional Parameters

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--no-prompt --yes -y

Do not prompt for confirmation.

default value: False
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 containerapp revision label remove

Remove a revision label from a revision with an associated traffic weight.

az containerapp revision label remove --label
                                      --name
                                      --resource-group

Examples

Remove a label.

az containerapp revision label remove -n my-containerapp -g MyResourceGroup --label myLabel

Required Parameters

--label

Name of the label.

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

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

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 containerapp revision label swap

Swap a revision label between two revisions with associated traffic weights.

az containerapp revision label swap --name
                                    --resource-group
                                    --source
                                    --target

Examples

Swap a revision label between two revisions.

az containerapp revision label swap -n my-containerapp -g MyResourceGroup --source myLabel1 --target myLabel2

Required Parameters

--name -n

The name of the Containerapp. A name must consist of lower case alphanumeric characters or '-', start with a letter, end with an alphanumeric character, cannot have '--', and must be less than 32 characters.

--resource-group -g

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

--source

Source label to be swapped.

--target

Target label to be swapped to.

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.