azureblog.co.uk
← cd ~/roles
// roles/azure · hybrid-multicloud

Azure Stack Registration OwnerAzure built-in role

Lets you manage Azure Stack registrations.

Role ID6f12a6df-dd06-4f3e-bcb1-ce8be600526a
CategoryHybrid-multicloud
Actions4
Data actions0

What it can do

PermissionWhat it allows
Microsoft.AzureStack/edgeSubscriptions/read
Microsoft.AzureStack/registrations/products/*/actionAny action on anything under Microsoft.AzureStack/registrations/products
Microsoft.AzureStack/registrations/products/readGets the properties of an Azure Stack Marketplace product
Microsoft.AzureStack/registrations/readGets the properties of an Azure Stack registration

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 Stack Registration Owner" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Stack Registration Owner" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '6f12a6df-dd06-4f3e-bcb1-ce8be600526a')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '6f12a6df-dd06-4f3e-bcb1-ce8be600526a')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "6f12a6df-dd06-4f3e-bcb1-ce8be600526a"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other hybrid-multicloud roles

Find the smallest role for a task →