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

Device Update Deployments ReaderAzure built-in role

Gives you read access to management operations, but does not allow making changes

Role ID49e2f5d2-7741-4835-8efa-19e1fe35e47f
CategoryInternet-of-things
Actions6
Data actions2

Before you assign it

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

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Support/*Every operation under Microsoft.Support
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.DeviceUpdate/accounts/readReturns the list of Device Update Accounts
Microsoft.DeviceUpdate/accounts/instances/readReturns the list of Device Update Instances

Data actions

PermissionWhat it allows
Microsoft.DeviceUpdate/accounts/instances/management/readPerforms a read operation related to management
Microsoft.DeviceUpdate/accounts/instances/updates/readPerforms a read operation related to updates

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 "Device Update Deployments Reader" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Device Update Deployments Reader" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '49e2f5d2-7741-4835-8efa-19e1fe35e47f')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '49e2f5d2-7741-4835-8efa-19e1fe35e47f')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "49e2f5d2-7741-4835-8efa-19e1fe35e47f"
| 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 →