azureblog.co.uk
← cd ~/roles
// roles/azure · analytics

HDInsight Cluster OperatorAzure built-in role

Lets you read and modify HDInsight cluster configurations.

Role ID61ed4efc-fab3-44fd-b111-e24485cc132a
CategoryAnalytics
Actions9
Data actions0

What it can do

PermissionWhat it allows
Microsoft.HDInsight/*/readAny read operation on anything under Microsoft.HDInsight
Microsoft.HDInsight/clusters/getGatewaySettings/actionGet gateway settings for HDInsight Cluster
Microsoft.HDInsight/clusters/updateGatewaySettings/actionUpdate gateway settings for HDInsight Cluster
Microsoft.HDInsight/clusters/configurations/*Every operation under Microsoft.HDInsight/clusters/configurations
Microsoft.Resources/subscriptions/resourceGroups/readGets or lists resource groups.
Microsoft.Resources/deployments/operations/readGets or lists deployment operations.
Microsoft.Insights/alertRules/*Every operation under Microsoft.Insights/alertRules
Microsoft.Authorization/*/readAny read operation on anything under Microsoft.Authorization
Microsoft.Support/*Every operation under Microsoft.Support

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 "HDInsight Cluster Operator" \
  --scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
powershell3 lines
New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
  -RoleDefinitionName "HDInsight Cluster Operator" `
  -Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"
bicep7 lines
resource assignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
  name: guid(resourceGroup().id, principalId, '61ed4efc-fab3-44fd-b111-e24485cc132a')
  properties: {
    roleDefinitionId: subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '61ed4efc-fab3-44fd-b111-e24485cc132a')
    principalId: principalId
  }
}

Who already has it?

kql · azure resource graph
authorizationresources
| where type == "microsoft.authorization/roleassignments"
| where tostring(properties.roleDefinitionId) endswith "61ed4efc-fab3-44fd-b111-e24485cc132a"
| project principalId = tostring(properties.principalId), principalType = tostring(properties.principalType), scope = tostring(properties.scope)

Other analytics roles

Find the smallest role for a task →