az acr identity

Manage service (managed) identities for a container registry.

Commands

az acr identity assign

Assign a managed identity to a container registry.

az acr identity remove

Remove a managed identity from a container registry.

az acr identity show

Show the container registry's identity details.

az acr identity assign

Assign a managed identity to a container registry.

Managed identities can be user-assigned or system-assigned.

az acr identity assign --identities
                       --name
                       [--resource-group]
                       [--subscription]

Required Parameters

--identities

Space-separated identities. Use '[system]' to refer to the system assigned identity.

--name -n

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr identity remove

Remove a managed identity from a container registry.

az acr identity remove --identities
                       --name
                       [--resource-group]
                       [--subscription]

Required Parameters

--identities

Space-separated identities. Use '[system]' to refer to the system assigned identity.

--name -n

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az acr identity show

Show the container registry's identity details.

az acr identity show --name
                     [--query-examples]
                     [--resource-group]
                     [--subscription]

Required Parameters

--name -n

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--query-examples

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.

--resource-group -g

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

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.