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

Azure Managed Grafana Workspace ContributorAzure built-in role

Can manage Azure Managed Grafana resources, without providing access to the workspaces themselves.

Role ID5c2d7e57-b7c2-4d8a-be4f-82afa42c6e95
CategoryMonitor
Actions35
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Dashboard/grafana/writeWrite grafana
Microsoft.Dashboard/grafana/deleteDelete grafana
Microsoft.Dashboard/grafana/PrivateEndpointConnectionsApproval/actionApprove PrivateEndpointConnection
Microsoft.Dashboard/grafana/managedPrivateEndpoints/actionOperations on Private Endpoints
Microsoft.Dashboard/locations/operationStatuses/writeWrite operation statuses
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/validate/actionValidate PrivateEndpointConnectionProxy
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/writeCreate/Update PrivateEndpointConnectionProxy
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/deleteDelete PrivateEndpointConnectionProxy
Microsoft.Dashboard/grafana/privateEndpointConnections/writeUpdate PrivateEndpointConnection
Microsoft.Dashboard/grafana/privateEndpointConnections/deleteDelete PrivateEndpointConnection
Microsoft.Dashboard/grafana/managedPrivateEndpoints/writeWrite Managed Private Endpoints
Microsoft.Dashboard/grafana/managedPrivateEndpoints/deleteDelete Managed Private Endpoints
Microsoft.Dashboard/grafana/integrationFabrics/writeWrite Integration Fabrics
Microsoft.Dashboard/grafana/integrationFabrics/deleteDelete Integration Fabrics
Microsoft.Dashboard/grafana/grafanaDefinitions/readRead Grafana Definitions
Microsoft.Dashboard/grafana/grafanaDefinitions/writeWrite Grafana Definitions
Microsoft.Dashboard/grafana/grafanaDefinitions/deleteDelete Grafana Definitions
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Insights/AlertRules/WriteCreate or update a classic metric alert
Microsoft.Insights/AlertRules/DeleteDelete a classic metric alert
Microsoft.Insights/AlertRules/ReadRead a classic metric alert
Microsoft.Insights/AlertRules/Activated/ActionClassic metric alert activated
Microsoft.Insights/AlertRules/Resolved/ActionClassic metric alert resolved
Microsoft.Insights/AlertRules/Throttled/ActionClassic metric alert rule throttled
Microsoft.Insights/AlertRules/Incidents/ReadRead a classic metric alert incident
Microsoft.Resources/deployments/readGets or lists deployments.
Microsoft.Resources/deployments/writeCreates or updates an deployment.
Microsoft.Resources/deployments/deleteDeletes a deployment.
Microsoft.Resources/deployments/cancel/actionCancels a deployment.
Microsoft.Resources/deployments/validate/actionValidates a deployment.
Microsoft.Resources/deployments/whatIf/actionPredicts template deployment changes.
Microsoft.Resources/deployments/exportTemplate/actionExport template for a deployment
Microsoft.Resources/deployments/operations/readGets or lists deployment operations.
Microsoft.Resources/deployments/operationstatuses/readGets or lists deployment operation statuses.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.

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 "Azure Managed Grafana Workspace Contributor" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Managed Grafana Workspace Contributor" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '5c2d7e57-b7c2-4d8a-be4f-82afa42c6e95')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '5c2d7e57-b7c2-4d8a-be4f-82afa42c6e95')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "5c2d7e57-b7c2-4d8a-be4f-82afa42c6e95"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other monitor roles

Find the smallest role for a task →