azureblog.co.uk
← cd ~/roles
// roles/azure · internet-of-things

Azure Device Registry AdministratorAzure built-in role

Azure Device Registry Administrator

Role ID12675fd7-7f59-493f-9201-f7944860a2f1
CategoryInternet-of-things
Actions1
Data actions0

What it can do

PermissionWhat it allows
Microsoft.DeviceRegistry/*Every operation under Microsoft.DeviceRegistry

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 Device Registry Administrator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Device Registry Administrator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '12675fd7-7f59-493f-9201-f7944860a2f1')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '12675fd7-7f59-493f-9201-f7944860a2f1')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "12675fd7-7f59-493f-9201-f7944860a2f1"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other internet-of-things roles

Find the smallest role for a task →