← cd ~/roles
// roles/azure · analytics
HDInsight Cluster OperatorAzure built-in role
Lets you read and modify HDInsight cluster configurations.
| Role ID | 61ed4efc-fab3-44fd-b111-e24485cc132a |
|---|---|
| Category | Analytics |
| Actions | 9 |
| Data actions | 0 |
What it can do
| Permission | What it allows |
|---|---|
Microsoft.HDInsight/*/read | Any read operation on anything under Microsoft.HDInsight |
Microsoft.HDInsight/clusters/getGatewaySettings/action | Get gateway settings for HDInsight Cluster |
Microsoft.HDInsight/clusters/updateGatewaySettings/action | Update gateway settings for HDInsight Cluster |
Microsoft.HDInsight/clusters/configurations/* | Every operation under Microsoft.HDInsight/clusters/configurations |
Microsoft.Resources/subscriptions/resourceGroups/read | Gets or lists resource groups. |
Microsoft.Resources/deployments/operations/read | Gets or lists deployment operations. |
Microsoft.Insights/alertRules/* | Every operation under Microsoft.Insights/alertRules |
Microsoft.Authorization/*/read | Any 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.
az role assignment create \
--assignee "jane.doe@contoso.com" \
--role "HDInsight Cluster Operator" \
--scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"New-AzRoleAssignment -SignInName "jane.doe@contoso.com" `
-RoleDefinitionName "HDInsight Cluster Operator" `
-Scope "/subscriptions/<subscription id>/resourceGroups/<resource group>"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?
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
- Azure Event Hubs Data Owner · 2 permissions
- Azure Event Hubs Data Receiver · 2 permissions
- Azure Event Hubs Data Sender · 2 permissions
- Schema Registry Contributor · 2 permissions
- Schema Registry Reader · 2 permissions
- HDInsight Domain Services Contributor · 3 permissions
- Stream Analytics Query Tester · 4 permissions
- Data Factory Contributor · 9 permissions