← cd ~/roles
// roles/azure · ai-machine-learning
AzureML Data ScientistAzure built-in role
Can perform all actions within an Azure Machine Learning workspace, except for creating or deleting compute resources and modifying the workspace itself.
| Role ID | f6c7c914-8db3-469d-8ca1-694a8f32e121 |
|---|---|
| Category | Ai-machine-learning |
| Actions | 4 (minus 10 NotActions) |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.MachineLearningServices/workspaces/*/read | Any read operation on anything under Microsoft.MachineLearningServices/workspaces |
Microsoft.MachineLearningServices/workspaces/*/action | Any action on anything under Microsoft.MachineLearningServices/workspaces |
Microsoft.MachineLearningServices/workspaces/*/delete | Any delete operation on anything under Microsoft.MachineLearningServices/workspaces |
Microsoft.MachineLearningServices/workspaces/*/write | Any write operation on anything under Microsoft.MachineLearningServices/workspaces |
Can't do
These are taken away from the actions above.
| Permission | What it allows |
|---|---|
Microsoft.MachineLearningServices/workspaces/delete | Deletes the Machine Learning Services Workspace(s) |
Microsoft.MachineLearningServices/workspaces/write | Creates or updates a Machine Learning Services Workspace(s) |
Microsoft.MachineLearningServices/workspaces/computes/*/write | Any write operation on anything under Microsoft.MachineLearningServices/workspaces/computes |
Microsoft.MachineLearningServices/workspaces/computes/*/delete | Any delete operation on anything under Microsoft.MachineLearningServices/workspaces/computes |
Microsoft.MachineLearningServices/workspaces/computes/listKeys/action | List secrets for compute resources in Machine Learning Services Workspace |
Microsoft.MachineLearningServices/workspaces/listKeys/action | List secrets for a Machine Learning Services Workspace |
Microsoft.MachineLearningServices/workspaces/hubs/write | Creates or updates a Machine Learning Services Hub Workspace(s) |
Microsoft.MachineLearningServices/workspaces/hubs/delete | Deletes the Machine Learning Services Hub Workspace(s) |
Microsoft.MachineLearningServices/workspaces/featurestores/write | Creates or Updates the Machine Learning Services FeatureStore(s) |
Microsoft.MachineLearningServices/workspaces/featurestores/delete | Deletes the Machine Learning Services FeatureStore(s) |
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 Data Scientist" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "AzureML Data Scientist" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'f6c7c914-8db3-469d-8ca1-694a8f32e121')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'f6c7c914-8db3-469d-8ca1-694a8f32e121')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "f6c7c914-8db3-469d-8ca1-694a8f32e121"
| 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 Compute Operator · 2 permissions
- AzureML Registry User · 2 permissions
- Cognitive Services Custom Vision Contributor · 2 permissions