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

Azure Stack HCI Device Management RoleAzure built-in role

Microsoft.AzureStackHCI Device Management Role

Role ID865ae368-6a45-4bd1-8fbf-0d5151f56fc1
CategoryHybrid-multicloud
Actions37
Data actions0

What it can do

PermissionWhat it allows
Microsoft.AzureStackHCI/Clusters/*Every operation under Microsoft.AzureStackHCI/Clusters
Microsoft.AzureStackHCI/EdgeDevices/*Every operation under Microsoft.AzureStackHCI/EdgeDevices
Microsoft.AzureStackHCI/DevicePools/*/readAny read operation on anything under Microsoft.AzureStackHCI/DevicePools
Microsoft.AzureStackHCI/EdgeMachines/*/readAny read operation on anything under Microsoft.AzureStackHCI/EdgeMachines
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.HybridContainerService/register/actionRegister the subscription for Microsoft.HybridContainerService
Microsoft.HybridContainerService/kubernetesVersions/readGets the supported kubernetes versions from the underlying custom location
Microsoft.HybridContainerService/kubernetesVersions/writePuts the kubernetes version resource type
Microsoft.HybridContainerService/skus/readGets the supported VM skus from the underlying custom location
Microsoft.HybridContainerService/skus/writePuts the VM SKUs resource type
Microsoft.Authorization/roleassignments/readGet information about a role assignment.
Microsoft.AzureStackHCI/StorageContainers/WriteCreates/Updates storage containers resource
Microsoft.AzureStackHCI/StorageContainers/ReadGets/Lists storage containers resource
Microsoft.AzureStackHCI/LogicalNetworks/ReadGets/Lists logical networks resource
Microsoft.AzureStackHCI/LogicalNetworks/WriteCreates/Updates logical networks resource
Microsoft.AzureStackHCI/Register/ActionRegisters the subscription for the Azure Local resource provider and enables the creation of Azure Local resources.
Microsoft.GuestConfiguration/guestConfigurationAssignments/readGet guest configuration assignment.
Microsoft.KubernetesConfiguration/extensions/writeCreates or updates extension resource.
Microsoft.KubernetesConfiguration/extensions/readGets extension instance resource.
Microsoft.KubernetesConfiguration/extensions/deleteDeletes extension instance resource.
Microsoft.KubernetesConfiguration/extensions/operations/readGets Async Operation status.
Microsoft.KubernetesConfiguration/namespaces/readGet Namespace Resource
Microsoft.KubernetesConfiguration/operations/readGets available operations of the Microsoft.KubernetesConfiguration resource provider.
Microsoft.ResourceConnector/appliances/readGets an Appliance resource
Microsoft.ResourceConnector/appliances/writeCreates or Updates Appliance resource
Microsoft.ResourceConnector/appliances/deleteDeletes Appliance resource
Microsoft.ResourceConnector/locations/operationresults/readGet result of Appliance operation
Microsoft.ResourceConnector/locations/operationsstatus/readGet result of Appliance operation
Microsoft.ResourceConnector/appliances/listClusterUserCredential/actionGet an appliance cluster user credential
Microsoft.ResourceConnector/appliances/listKeys/actionGet an appliance cluster customer user keys
Microsoft.ResourceConnector/appliances/upgradeGraphs/readGets the upgrade graph of Appliance cluster
Microsoft.ResourceConnector/telemetryconfig/readGet Appliances telemetry config utilized by Appliances CLI
Microsoft.ResourceConnector/operations/readGets list of Available Operations for Appliances
Microsoft.ExtendedLocation/customLocations/deploy/actionDeploy permissions to a Custom Location resource
Microsoft.ExtendedLocation/customLocations/readGets an Custom Location resource
Microsoft.ExtendedLocation/customLocations/writeCreates or Updates Custom Location resource
Microsoft.ExtendedLocation/customLocations/deleteDeletes Custom Location resource

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 HCI Device Management Role" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Stack HCI Device Management Role" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '865ae368-6a45-4bd1-8fbf-0d5151f56fc1')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '865ae368-6a45-4bd1-8fbf-0d5151f56fc1')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "865ae368-6a45-4bd1-8fbf-0d5151f56fc1"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other hybrid-multicloud roles

Find the smallest role for a task →