az acr credential
Manage login credentials for Azure Container Registries.
Commands
az acr credential renew |
Regenerate login credentials for an Azure Container Registry. |
az acr credential show |
Get the login credentials for an Azure Container Registry. |
az acr credential renew
Regenerate login credentials for an Azure Container Registry.
az acr credential renew --name
--password-name {password, password2}
[--resource-group]
[--subscription]
Examples
Renew the second password for an Azure Container Registry.
az acr credential renew -n MyRegistry --password-name password2
Regenerate login credentials for an Azure Container Registry. (autogenerated)
az acr credential renew --name MyRegistry --password-name password --resource-group MyResourceGroup
Required Parameters
The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>
.
The name of password to regenerate.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.
az acr credential show
Get the login credentials for an Azure Container Registry.
az acr credential show --name
[--query-examples]
[--resource-group]
[--subscription]
Examples
Get the login credentials for an Azure Container Registry.
az acr credential show -n MyRegistry
Get the username used to log in to an Azure Container Registry.
az acr credential show -n MyRegistry --query username
Get a password used to log in to an Azure Container Registry.
az acr credential show -n MyRegistry --query passwords[0].value
Required Parameters
The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>
.
Optional Parameters
Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.
Increase logging verbosity. Use --debug for full debug logs.