azureblog.co.uk
← cd ~/roles
// roles/azure · management-and-governance

Azure Connected Machine Resource ManagerAzure built-in role

Custom Role for AzureStackHCI RP to manage hybrid compute machines and hybrid connectivity endpoints in a resource group

Role IDf5819b54-e033-4d82-ac66-4fec3cbf3f4c
CategoryManagement-and-governance
Actions34
Data actions0

What it can do

PermissionWhat it allows
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.GuestConfiguration/guestConfigurationAssignments/*/readAny read operation on anything under Microsoft.GuestConfiguration/guestConfigurationAssignments
Microsoft.GuestConfiguration/guestConfigurationAssignments/readGet guest configuration assignment.
Microsoft.GuestConfiguration/guestConfigurationAssignments/writeCreate new guest configuration assignment.
Microsoft.HybridCompute/machines/readRead any Azure Arc machines
Microsoft.HybridCompute/machines/extensions/readReads any Azure Arc extensions
Microsoft.HybridCompute/*/readAny read operation on anything under Microsoft.HybridCompute
Microsoft.HybridCompute/machines/deleteDeletes an Azure Arc machines
Microsoft.HybridCompute/machines/extensions/deleteDeletes an Azure Arc extensions
Microsoft.HybridCompute/machines/extensions/writeInstalls or Updates an Azure Arc extensions
Microsoft.HybridCompute/machines/licenseProfiles/deleteDeletes an Azure Arc licenseProfiles
Microsoft.HybridCompute/machines/licenseProfiles/readReads any Azure Arc licenseProfiles
Microsoft.HybridCompute/machines/licenseProfiles/writeInstalls or Updates an Azure Arc licenseProfiles
Microsoft.HybridCompute/machines/UpgradeExtensions/actionUpgrades Extensions on Azure Arc machines
Microsoft.HybridCompute/machines/writeWrites an Azure Arc machines
Microsoft.HybridConnectivity/endpoints/readList of endpoints to the target resource.
Microsoft.HybridConnectivity/endpoints/serviceConfigurations/readAPI to enumerate registered services in service configurations under a Endpoint Resource
Microsoft.HybridConnectivity/endpoints/serviceConfigurations/writeCreate or update a service in serviceConfiguration for the endpoint resource.
Microsoft.HybridConnectivity/endpoints/writeCreate or update the endpoint to the target resource.
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.EdgeMarketplace/locations/operationStatuses/readread operationStatuses
Microsoft.EdgeMarketPlace/offers/getAccessToken/actionA long-running resource action.
Microsoft.EdgeMarketPlace/offers/generateAccessToken/actionA long-running resource action.
Microsoft.EdgeMarketplace/publishers/readList Publisher resources by subscription ID
Microsoft.EdgeMarketplace/offers/readList Offer resources by subscription ID
Microsoft.ExtendedLocation/customLocations/readGets an Custom Location resource
Microsoft.Attestation/attestationProviders/writeAdds attestation service.
Microsoft.Attestation/attestationProviders/readGets the attestation service status.
Microsoft.Attestation/attestationProviders/deleteRemoves attestation service.
Microsoft.Attestation/attestationProviders/attestation/readGets the attestation service status.
Microsoft.Attestation/attestationProviders/attestation/writeAdds attestation service.
Microsoft.Attestation/attestationProviders/attestation/deleteRemoves attestation service.
Microsoft.HybridCompute/settings/readReads any Azure Arc settings
Microsoft.HybridCompute/settings/writeWrites an Azure Arc settings

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 Connected Machine Resource Manager" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "Azure Connected Machine Resource Manager" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, 'f5819b54-e033-4d82-ac66-4fec3cbf3f4c')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'f5819b54-e033-4d82-ac66-4fec3cbf3f4c')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "f5819b54-e033-4d82-ac66-4fec3cbf3f4c"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other management-and-governance roles

Find the smallest role for a task →