Azure role · monitor
Azure Managed Grafana Workspace ContributorAzure built-in role
Can manage Azure Managed Grafana resources, without providing access to the workspaces themselves.
Read onlyChange some thingsChange anythingGive access to others
Medium risk. It can create, change or delete some resources in scope.
In short: Azure Managed Grafana Workspace Contributor is an Azure built-in role with 35 actions.
| Role ID | 5c2d7e57-b7c2-4d8a-be4f-82afa42c6e95 |
|---|---|
| Category | Monitor |
| Actions | 35 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.Dashboard/grafana/write | Write grafana |
Microsoft.Dashboard/grafana/delete | Delete grafana |
Microsoft.Dashboard/grafana/PrivateEndpointConnectionsApproval/action | Approve PrivateEndpointConnection |
Microsoft.Dashboard/grafana/managedPrivateEndpoints/action | Operations on Private Endpoints |
Microsoft.Dashboard/locations/operationStatuses/write | Write operation statuses |
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/validate/action | Validate PrivateEndpointConnectionProxy |
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/write | Create/Update PrivateEndpointConnectionProxy |
Microsoft.Dashboard/grafana/privateEndpointConnectionProxies/delete | Delete PrivateEndpointConnectionProxy |
Microsoft.Dashboard/grafana/privateEndpointConnections/write | Update PrivateEndpointConnection |
Microsoft.Dashboard/grafana/privateEndpointConnections/delete | Delete PrivateEndpointConnection |
Microsoft.Dashboard/grafana/managedPrivateEndpoints/write | Write Managed Private Endpoints |
Microsoft.Dashboard/grafana/managedPrivateEndpoints/delete | Delete Managed Private Endpoints |
Microsoft.Dashboard/grafana/integrationFabrics/write | Write Integration Fabrics |
Microsoft.Dashboard/grafana/integrationFabrics/delete | Delete Integration Fabrics |
Microsoft.Dashboard/grafana/grafanaDefinitions/read | Read Grafana Definitions |
Microsoft.Dashboard/grafana/grafanaDefinitions/write | Write Grafana Definitions |
Microsoft.Dashboard/grafana/grafanaDefinitions/delete | Delete Grafana Definitions |
Microsoft.Authorization/*/read | Any read operation on anything under Microsoft.Authorization |
Microsoft.Insights/AlertRules/Write | Create or update a classic metric alert |
Microsoft.Insights/AlertRules/Delete | Delete a classic metric alert |
Microsoft.Insights/AlertRules/Read | Read a classic metric alert |
Microsoft.Insights/AlertRules/Activated/Action | Classic metric alert activated |
Microsoft.Insights/AlertRules/Resolved/Action | Classic metric alert resolved |
Microsoft.Insights/AlertRules/Throttled/Action | Classic metric alert rule throttled |
Microsoft.Insights/AlertRules/Incidents/Read | Read a classic metric alert incident |
Microsoft.Resources/deployments/read | Gets or lists deployments. |
Microsoft.Resources/deployments/write | Creates or updates an deployment. |
Microsoft.Resources/deployments/delete | Deletes a deployment. |
Microsoft.Resources/deployments/cancel/action | Cancels a deployment. |
Microsoft.Resources/deployments/validate/action | Validates a deployment. |
Microsoft.Resources/deployments/whatIf/action | Predicts template deployment changes. |
Microsoft.Resources/deployments/exportTemplate/action | Export template for a deployment |
Microsoft.Resources/deployments/operations/read | Gets or lists deployment operations. |
Microsoft.Resources/deployments/operationstatuses/read | Gets or lists deployment operation statuses. |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
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 "Azure Managed Grafana Workspace Contributor" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Azure Managed Grafana Workspace Contributor" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"What each line does
- Line 1: Creates a role assignment in Azure. Makes a change.
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?
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
- 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
Find the smallest role for a task →
Link to this page
Writing a guide or answering a question? Copy this link.
<a href="https://azureblog.co.uk/roles/azure/azure-managed-grafana-workspace-contributor/">Azure Managed Grafana Workspace Contributor Azure role explained</a>Spotted something out of date or wrong? Tell us and we'll fix it.