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
Name of the label.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the revision.
Optional Parameters
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.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
Name of the label.
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Source label to be swapped.
Target label to be swapped to.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI