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

EventGrid EventSubscription ReaderAzure built-in role

Lets you read EventGrid event subscriptions.

Role ID2414bbcf-6497-4faf-8c65-045460748405
CategoryIntegration
Actions6
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.EventGrid/eventSubscriptions/readRead an eventSubscription
Microsoft.EventGrid/topicTypes/eventSubscriptions/readList global event subscriptions by topic type
Microsoft.EventGrid/locations/eventSubscriptions/readList regional event subscriptions
Microsoft.EventGrid/locations/topicTypes/eventSubscriptions/readList regional event subscriptions by topictype
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 "EventGrid EventSubscription Reader" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "EventGrid EventSubscription Reader" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '2414bbcf-6497-4faf-8c65-045460748405')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '2414bbcf-6497-4faf-8c65-045460748405')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "2414bbcf-6497-4faf-8c65-045460748405"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other integration roles

Find the smallest role for a task →