← 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 ID | e503ece1-11d0-4e8e-8e2c-7a6c3bf38815 |
|---|---|
| Category | Ai-machine-learning |
| Actions | 2 |
| Data actions | 0 |
What it can do
| Permission | What 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.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "AzureML Compute Operator" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "AzureML Compute Operator" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"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?
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
- AzureML Metrics Writer (preview) · 1 permission
- Cognitive Services Data Reader · 1 permission
- Cognitive Services Immersive Reader User · 1 permission
- Cognitive Services Usages Reader · 1 permission
- Search Index Data Reader · 1 permission
- AzureML Registry User · 2 permissions
- Cognitive Services Custom Vision Contributor · 2 permissions
- Cognitive Services Custom Vision Trainer · 2 permissions