azureblog.co.uk
← cd ~/roles
// roles/azure · web-and-mobile

SignalR REST API ReaderAzure built-in role

Read-only access to Azure SignalR Service REST APIs

Role IDddde6b66-c0df-4114-a159-3618637b3035
CategoryWeb-and-mobile
Actions0
Data actions3

Before you assign it

  • It reaches the data, not just the resource. It has 3 data actions, such as reading blobs, secrets or messages.

What it can do

No control-plane actions.

Data actions

PermissionWhat it allows
Microsoft.SignalRService/SignalR/group/readCheck group existence or user existence in group
Microsoft.SignalRService/SignalR/clientConnection/readCheck client connection existence
Microsoft.SignalRService/SignalR/user/readCheck user existence

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 "SignalR REST API Reader" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "SignalR REST API Reader" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'ddde6b66-c0df-4114-a159-3618637b3035')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ddde6b66-c0df-4114-a159-3618637b3035')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "ddde6b66-c0df-4114-a159-3618637b3035"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other web-and-mobile roles

Find the smallest role for a task →