← cd ~/roles
// roles/azure · monitor
Service Health Security ReaderAzure built-in role
Grants permissions to view sensitive security information present in service health events
| Role ID | 1a928ab0-1fee-43cf-9266-f9d8c22a8ddb |
|---|---|
| Category | Monitor |
| Actions | 11 (minus 1 NotActions) |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.ResourceHealth/events/action | Endpoint to fetch details for event |
Microsoft.ResourceHealth/AvailabilityStatuses/read | Gets the availability statuses for all resources in the specified scope |
Microsoft.ResourceHealth/AvailabilityStatuses/current/read | Gets the availability status for the specified resource |
Microsoft.ResourceHealth/Operations/read | Get the operations available for the Microsoft ResourceHealth |
Microsoft.ResourceHealth/emergingissues/read | Get Azure services' emerging issues |
Microsoft.ResourceHealth/events/read | Get Service Health Events for given subscription |
Microsoft.ResourceHealth/events/fetchEventDetails/action | Endpoint to fetch details for event |
Microsoft.ResourceHealth/events/listSecurityAdvisoryImpactedResources/action | Get Impacted Resources for a given event of type SecurityAdvisory |
Microsoft.ResourceHealth/events/impactedResources/read | Get Impacted Resources for a given event |
Microsoft.ResourceHealth/metadata/read | Gets Metadata |
Microsoft.ResourceHealth/potentialoutages/read | Get Potential Outages for given subscription |
Can't do
These are taken away from the actions above.
| Permission | What it allows |
|---|---|
Microsoft.ResourceHealth/events/fetchBillingCommunicationDetails/action | Get Billing details for a given subscription and tracking id |
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 "Service Health Security Reader" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "Service Health Security Reader" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
name: guid(resourceGroup().id, principalId, '1a928ab0-1fee-43cf-9266-f9d8c22a8ddb')
properties: {
roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '1a928ab0-1fee-43cf-9266-f9d8c22a8ddb')
principalId: principalId
}
}Who already has it?
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "1a928ab0-1fee-43cf-9266-f9d8c22a8ddb"
| 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