CmdID

CmdID / az / az compute-fleet / az compute-fleet identity

az compute-fleet 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 managed identity to a Compute Fleet.

az compute-fleet identity assign --resource-group MyResourceGroup --fleet-name MyFleet --system-assignedIdentify
--resource-groupName of resource group.
--fleet-nameThe name of the Compute Fleet
--system-assignedSet the system managed identity.

Assign a user-assigned managed identity to a Compute Fleet without waiting for the operation to finish.

az compute-fleet identity assign --resource-group MyResourceGroup --fleet-name MyFleet --user-assigned MyIdentityResourceId --no-waitIdentify
--resource-groupName of resource group.
--fleet-nameThe name of the Compute Fleet
--user-assignedSet the user managed identities.

Options

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