CmdID

CmdID / az / az storage / az storage context-cache / az storage context-cache identity

az storage context-cache identity assign

Assign the user or system managed identities. Azure CLI reference

2 examples 3 options 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

Assign a system-assigned identity to a context cache

az storage context-cache identity assign --resource-group MyResourceGroup --name mycontextcache --system-assignedIdentify
--resource-groupName of resource group.
--nameThe name of the context cache
--system-assignedSet the system managed identity.

Assign a user-assigned identity to a context cache

az storage context-cache identity assign --resource-group MyResourceGroup --name mycontextcache --user-assigned /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myidentityIdentify
--resource-groupName of resource group.
--nameThe name of the context cache
--user-assignedSet the user managed identities.

Options

3 in the Azure CLI reference
--context-cache-name, --name, -nThe name of the context cache
--mi-system-assigned, --system-assignedSet the system managed identity.
--mi-user-assigned, --user-assignedSet the user managed identities.