← cd ~/roles
// roles/azure · monitor
Workbook ReaderAzure built-in role
Can read workbooks.
| Role ID | b279062a-9be3-42a0-92ae-8b3cf002ec4d |
|---|---|
| Category | Monitor |
| Actions | 3 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
microsoft.insights/workbooks/read | Read a workbook |
microsoft.insights/workbooks/revisions/read | Get the workbook revisions |
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 Reader" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Workbook Reader" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, 'b279062a-9be3-42a0-92ae-8b3cf002ec4d')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'b279062a-9be3-42a0-92ae-8b3cf002ec4d')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "b279062a-9be3-42a0-92ae-8b3cf002ec4d"
| 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
- Data Purger · 4 permissions
- Log Analytics Reader · 5 permissions