CmdID

CmdID / az / az acr / az acr task / az acr task identity

az acr task identity remove

Remove managed identities for a task. Azure CLI reference

3 examples Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Remove the system-assigned identity from a task.

az acr task identity remove -n MyTask -r myregistryIdentify
-nThe name of the task.
-rName of registry.

Remove a user-assigned identity from a task.

az acr task identity remove -n MyTask -r myregistry --identities "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myUserAssignedIdentitiy"Identify
-nThe name of the task.
-rName of registry.
--identitiesAssign managed identities to the task.

Remove all managed identities from a task.

az acr task identity remove -n MyTask -r myregistry --identities [all]Identify
-nThe name of the task.
-rName of registry.
--identitiesAssign managed identities to the task.