CmdID / az / az monitor / az monitor log-analytics / az monitor log-analytics cluster / az monitor log-analytics cluster identity
az monitor log-analytics cluster identity assign
Assign the user or system managed identities. Azure CLI reference
1 example 3 options Its page in the Azure CLI reference
Examples
Add a system assigned managed identity to an existing cluster
az monitor log-analytics cluster identity assign --name cluster --resource-group rg --system-assignedIdentify--nameName of the Log Analytics Cluster.--resource-groupName of resource group.--system-assignedSet the system managed identity.Options
--cluster-name, --name, -nName of the Log Analytics Cluster.--mi-system-assigned, --system-assignedSet the system managed identity.--mi-user-assigned, --user-assignedSet the user managed identities.