← cd ~/roles
// roles/azure · monitor
Workbook ContributorAzure built-in role
Can save shared workbooks.
| Role ID | e8ddcd69-c73f-4f9f-9844-4100522f16ad |
|---|---|
| Category | Monitor |
| Actions | 7 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.Insights/workbooks/write | Create or update a workbook |
Microsoft.Insights/workbooks/delete | Delete a workbook |
Microsoft.Insights/workbooks/read | Read a workbook |
Microsoft.Insights/workbooks/revisions/read | Get the workbook revisions |
Microsoft.Insights/workbooktemplates/write | Create or update a workbook template |
Microsoft.Insights/workbooktemplates/delete | Delete a workbook template |
Microsoft.Insights/workbooktemplates/read | Read a workbook template |
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 "Workbook Contributor" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Workbook Contributor" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'e8ddcd69-c73f-4f9f-9844-4100522f16ad')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'e8ddcd69-c73f-4f9f-9844-4100522f16ad')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "e8ddcd69-c73f-4f9f-9844-4100522f16ad"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)Other monitor roles
- Grafana Admin · 1 permission
- Grafana Editor · 1 permission
- Grafana Limited Viewer · 1 permission
- Grafana Viewer · 1 permission
- Log Analytics Data Reader · 3 permissions
- Monitoring Reader · 3 permissions
- Workbook Reader · 3 permissions
- Data Purger · 4 permissions