Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

az acr credential

Manage login credentials for Azure Container Registries.

Commands

Name Description Type Status
az acr credential renew

Regenerate login credentials for an Azure Container Registry.

Core GA
az acr credential show

Get the login credentials for an Azure Container Registry.

Core GA

az acr credential renew

Regenerate login credentials for an Azure Container Registry.

az acr credential renew --name
 --password-name {password, password2}
 [--acquire-policy-token]
 [--change-reference]
 [--resource-group]

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

--name -n

The name of the container registry. It should be specified in lower case. You can configure the default registry name using az configure --defaults acr=<registry name>.

--password-name

The name of password to regenerate.

Property Value
Accepted values: password, password2

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--resource-group -g

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

az acr credential show

Get the login credentials for an Azure Container Registry.

az acr credential show --name
 [--resource-group]

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

--name -n

The name of the container registry. It should be specified in lower case. You can configure the default registry name using az configure --defaults acr=<registry 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.

--resource-group -g

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


Feedback

Was this page helpful?