azureblog.co.uk
← cd ~/roles
// roles/azure · management-and-governance

Essential Machine Management AdministratorAzure built-in role

Can managed Essential Machine Management resources for subscriptions

Role ID34013b0a-565b-43aa-8755-1b7c286f6cf7
CategoryManagement-and-governance
Actions19
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Resources/deployments/*Every operation under Microsoft.Resources/deployments
Microsoft.Insights/dataCollectionRules/readRead a data collection rule
Microsoft.Insights/dataCollectionRules/writeCreate or update a data collection rule
Microsoft.Monitor/accounts/writeCreate or Update any Monitoring Account
Microsoft.Monitor/accounts/readRead any Monitoring Account
Microsoft.ManagedOps/managedOps/readGets the information of the ManagedOps instance.
Microsoft.ManagedOps/managedOps/writeUpdates the ManagedOps instance with the supplied fields.
Microsoft.ManagedOps/managedOps/deleteDeletes the ManagedOps instance.
Microsoft.OperationsManagement/solutions/readGet existing OMS solution
Microsoft.OperationsManagement/solutions/writeCreate new OMS solution
Microsoft.OperationalInsights/workspaces/readGets an existing workspace
Microsoft.OperationalInsights/workspaces/sharedkeys/actionRetrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.
Microsoft.OperationalInsights/workspaces/sharedkeys/readRetrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.
Microsoft.OperationalInsights/workspaces/listKeys/actionRetrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Insights/metricAlerts/writeCreate or update a metric alert
Microsoft.Insights/metricAlerts/readRead a metric alert
Microsoft.Security/pricings/writeUpdates the pricing settings for the scope
Microsoft.Security/pricings/readGets the pricing settings for the scope

Assign it

Scope it as tightly as you can: a resource or resource group rather than the whole subscription.

azure cli
az role assignment create \
  --assignee "jane.doe@contoso.com" \
  --role "Essential Machine Management Administrator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Essential Machine Management Administrator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '34013b0a-565b-43aa-8755-1b7c286f6cf7')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '34013b0a-565b-43aa-8755-1b7c286f6cf7')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "34013b0a-565b-43aa-8755-1b7c286f6cf7"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other management-and-governance roles

Find the smallest role for a task →