Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides comprehensive information on creating and managing Azure HDInsight clusters with Microsoft Entra ID authentication. Users can securely authenticate and manage access to HDInsight clusters, ensuring enterprise-grade security and centralized identity governance by using Entra ID.
With this capability, organizations can enforce role-based access, streamline user onboarding and offboarding, and enhance compliance by using existing Entra ID policies. It simplifies cluster security management while providing a seamless login experience for data engineers, analysts, and administrators.
Prerequisites
Before you begin, ensure the following requirements are met:
Azure Subscription
- An active Azure subscription with sufficient permissions to create HDInsight clusters.
Microsoft Entra ID Tenant
Access to an Entra ID tenant linked to your Azure subscription.
Permissions to create and assign Entra ID groups and roles.
Resource Group
- A resource group in Azure where the HDInsight cluster can be deployed.
HDInsight Cluster Requirements
HDInsight cluster type (for example, Hadoop, Spark, HBase, or Kafka) selected for deployment.
Correct region chosen that supports Entra ID integration.
Overview
Users have to perform the following for setting up Entra ID authentication when creating a HDInsight cluster:
Select the desired authentication method: Entra ID
Add one (or more) admin Entra ID user during cluster creation(adding atleast one admin is mandatory).
User Profiles in Ambari
Entra ID enabled users are assigned one of two profiles:
Cluster Admin: Admin permission.
Cluster User: View only permission.
Note
During cluster creation if the admin chooses Entra ID for authentication, then all the users in the cluster must be authenticated using Entra ID. If the admin chooses basic authentication during cluster creation then all the users in the cluster must be authenticated using basic authentication. During cluster creation if the user selects Entra ID authentication, during the entire lifecycle of the particular cluster authentication can be only done using Entra ID. If the admin chooses basic authentication, during the entire lifecycle of the particular cluster authentication can be only done using Basic Authentication. User can use only one mode of authentication for a particular cluster.
Login Options
Users can log in via Multifactor Authentication (MFA) once they input their Entra ID.
Adding users with API
Admin can add multiple users at once via an API, ideal for managing large clusters.
This operation allows users to change the cluster gateway HTTP credentials.
| Method | Request URI |
|---|---|
| POST | https://management.azure.com/subscriptions/{subscription Id}/resourceGroups/{resourceGroup Name}/providers/Microsoft.HDInsight/clusters/{cluster name}/updateGatewaySettings?api-version={api-version} |
| Entra Cluster API Version | greater than or equal to 2025-01-15-preview |
{
"restAuthEntraUsers": [
{
"objectId": "0d7c4bd6-d042-45ec-9ae5-1ed7871c38e0",
"displayName": "Hemant Gupta",
"upn": "john@contoso.com"
}
]
}
Response
HTTP 202 (Accepted) on successful completion of the operation.
Authentication Process
The authentication process varies based on the chosen method during cluster creation:
If Entra ID is selected:
The cluster creator provides an ID for the default cluster administrator user in Ambari.
The default admin can add Ambari users after cluster creation. Users may have either Cluster Administrator or Cluster User permissions, set via the Ambari UI or REST API. The cluster admin also has to add Object ID, and the display name and click on "Save".
A multifactor authentication prompt appears when the user logs in with their Entra ID.
Basic Authentication
Users can use the legacy basic authentication way of authenticating users as well
If Basic Authentication is selected:
User provides a User ID and password for the default admin user.
New users can be created with various roles, similar to current functionality.
Users are prompted to enter their User ID and password upon login.