azureblog.co.uk
← cd ~/roles
// roles/azure · monitor

Workbook ReaderAzure built-in role

Can read workbooks.

Role IDb279062a-9be3-42a0-92ae-8b3cf002ec4d
CategoryMonitor
Actions3
Data actions0

What it can do

PermissionWhat it allows
microsoft.insights/workbooks/readRead a workbook
microsoft.insights/workbooks/revisions/readGet the workbook revisions
microsoft.insights/workbooktemplates/readRead a workbook template

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 "Workbook Reader" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Workbook Reader" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
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?

kql · azure resource graph
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

Find the smallest role for a task →