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

Firmware Analysis ReaderAzure built-in role

View firmware images but not upload them or perform any workspace configuration

Role ID2a94a2fd-3c4f-45d1-847d-6585ba88af94
CategoryInternet-of-things
Actions5 (minus 3 NotActions)
Data actions0

What it can do

PermissionWhat it allows
Microsoft.IoTFirmwareDefense/*/readAny read operation on anything under Microsoft.IoTFirmwareDefense
Microsoft.IoTFirmwareDefense/workspaces/firmwares/*Every operation under Microsoft.IoTFirmwareDefense/workspaces/firmwares
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Resources/deployments/readGets or lists deployments.

Can't do

These are taken away from the actions above.

PermissionWhat it allows
Microsoft.IoTFirmwareDefense/firmwareGroups/*Every operation under Microsoft.IoTFirmwareDefense/firmwareGroups
Microsoft.IoTFirmwareDefense/workspaces/firmwares/writeThe operation to create a firmware.
Microsoft.IoTFirmwareDefense/workspaces/firmwares/deleteThe operation to delete a firmware.

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 "Firmware Analysis Reader" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Firmware Analysis Reader" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '2a94a2fd-3c4f-45d1-847d-6585ba88af94')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '2a94a2fd-3c4f-45d1-847d-6585ba88af94')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "2a94a2fd-3c4f-45d1-847d-6585ba88af94"
| 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 →