azureblog.co.uk
← cd ~/roles
// roles/azure · ai-machine-learning

AzureML Compute OperatorAzure built-in role

Can access and perform CRUD operations on Machine Learning Services managed compute resources (including Notebook VMs).

Role IDe503ece1-11d0-4e8e-8e2c-7a6c3bf38815
CategoryAi-machine-learning
Actions2
Data actions0

What it can do

PermissionWhat it allows
Microsoft.MachineLearningServices/workspaces/computes/*Every operation under Microsoft.MachineLearningServices/workspaces/computes
Microsoft.MachineLearningServices/workspaces/notebooks/vm/*Every operation under Microsoft.MachineLearningServices/workspaces/notebooks/vm

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 "AzureML Compute Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "AzureML Compute Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'e503ece1-11d0-4e8e-8e2c-7a6c3bf38815')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'e503ece1-11d0-4e8e-8e2c-7a6c3bf38815')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "e503ece1-11d0-4e8e-8e2c-7a6c3bf38815"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other ai-machine-learning roles

Find the smallest role for a task →