az acr credential-set
Manage credential sets in Azure Container Registries.
Commands
Name | Description | Type | Status |
---|---|---|---|
az acr credential-set create |
Create a credential set. |
Core | GA |
az acr credential-set delete |
Delete a credential set. |
Core | GA |
az acr credential-set list |
List the credential sets in an Azure Container Registry. |
Core | GA |
az acr credential-set show |
Show a credential set. |
Core | GA |
az acr credential-set update |
Update the username or password Azure Key Vault secret ID on a credential set. |
Core | GA |
az acr credential-set create
Create a credential set.
az acr credential-set create --login-server
--name
--password-id
--registry
--username-id
[--resource-group]
Examples
Create a credential set.
az acr credential-set create -r myregistry -n MyDockerHubCredSet -l docker.io -u https://MyKeyvault.vault.azure.net/secrets/usernamesecret -p https://MyKeyvault.vault.azure.net/secrets/passwordsecret
Required Parameters
The login server address of the upstream registry such as 'docker.io'.
The name of the credential set.
The Azure Key Vault secret ID of the secret containing the password to the upstream registry.
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>
.
The Azure Key Vault secret ID of the secret containing the username to the upstream registry.
Optional Parameters
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 acr credential-set delete
Delete a credential set.
az acr credential-set delete --name
--registry
[--resource-group]
[--yes]
Examples
Delete a credential set.
az acr credential-set delete -r myregistry -n MyCredSet
Required Parameters
The name of the credential set.
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
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
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 acr credential-set list
List the credential sets in an Azure Container Registry.
az acr credential-set list --registry
[--resource-group]
Examples
List the credential sets in an Azure Container Registry.
az acr credential-set list -r myregistry
Required Parameters
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
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 acr credential-set show
Show a credential set.
az acr credential-set show --name
--registry
[--resource-group]
Examples
Show a credential set rule.
az acr credential-set show -r myregistry -n MyCredSet
Required Parameters
The name of the credential set.
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
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 acr credential-set update
Update the username or password Azure Key Vault secret ID on a credential set.
az acr credential-set update --name
--registry
[--add]
[--force-string]
[--password-id]
[--remove]
[--resource-group]
[--set]
[--username-id]
Examples
Update the password Azure Key Vault secret ID.
az acr credential-set update -r myregistry -n MyDockerHubCredSet -p https://MyKeyvault.vault.azure.net/secrets/newsecretname
Required Parameters
The name of the credential set.
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
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
The Azure Key Vault secret ID of the secret containing the password to the upstream registry.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
The Azure Key Vault secret ID of the secret containing the username to the upstream registry.
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.