CmdID / az / az connectedmachine / az connectedmachine identity
az connectedmachine identity assign
Assign the user or system managed identities. Azure CLI extensions reference
2 examples 4 options Its page in the Azure CLI extensions reference
Examples
sample command for identity assign
az connectedmachine identity assign --resource-group myResourceGroup --machine-name myMachineIdentify--resource-groupName of resource group.--machine-nameThe name of the hybrid machine.Sample command for identity assign
az connectedmachine identity assign --resource-group myResourceGroup --machine-name myMachineIdentify--resource-groupName of resource group.--machine-nameThe name of the hybrid machine.Options
--expandThe expand expression to apply on the operation.--machine-name, --name, -nThe name of the hybrid machine.--mi-system-assigned, --system-assignedSet the system managed identity.--mi-user-assigned, --user-assignedSet the user managed identities.