Welcome to the Alteryx Knowledge Base

How to use Microsoft Entra ID managed service principal in Azure Databricks?
user

Created/Edited - 6/5/2026 by Clara Boo | Alteryx

How To

Please follow the steps outlined in this article to create a Microsoft Entra ID managed service principal to connect to Azure Databricks. If you want to use a Databricks managed service principal, please refer to the following article instead.

 

Environment
  • Alteryx Designer/Server
    • Version >= 2025.1

 

Prerequisites
  • Azure Databricks
  • Databricks ODBC Driver (previously named as Simba Sparks ODBC Driver)
    • Version >= 2.8.2
  • Databricks Utility Catalog enabled


Procedure

IMPORTANT: Sections A and B require the administrator for both services to perform the steps. 

 

A. Create an Entra (formerly known as Azure AD) Application

  1. Go to Azure Portal.
  2. Go to Microsoft Entra ID > App Registrations.
  3. Create a new application and set the account type accordingly. Redirect URI is not needed here for the service principal.
  4. Note down the application name, client ID and tenant ID after registering the application.

 

  1. Go to Certificates & secrets and create a new client secret,
  2. Note down the secret value immediately once created.

 

 

B. Add the Service Principal to Azure Databricks

  1. Log in to the Databricks workspace as a Workspace Admin.
  2. Click the Profile and select Settings.

 

 

  1. Click Identity and access on the left pane.
  2. Click the Manage button in the Service principals section.

 

 

 

  1. Click the Add service principal button.
  2. At the Select existing service principal dropdown, enter the application name created in step 4 of section A. This application name will be used for the rest of the steps.
  3. Once the dropdown shows the application, select it and click the Add button.
  4. On the furthest left pane, click Catalog.
  5. In the Catalog page, click the catalog that you want to provision to the service principal.
  6. Click the Permissions link.

 

 

 

  1. Click the Grant button and add the appropriate permissions to the service principal.

 

 

  1. Go to Compute and select the appropriate cluster to use in Alteryx,
  2.  Go to Permissions as shown below.

 

 

  1. Add the "Can Attach To" privilege to the service principal. 

 

 

 

C. Get the Databricks Information [FOR USER OR ADMINISTRATOR]

 

  1. Log in to Databricks.
  2. Go to Compute and select the appropriate cluster that will be used in Alteryx. For user who is unsure which cluster to use, please check with the Administrator, if necessary.
  3. Go to Configuration and scroll down to Advanced > JDBC/ODBC and take note of the server host and the HTTP Path.

 

 

 

D. Use the Service Principal in Alteryx

 

  1. In Designer, add an Input Data tool to the workflow canvas.
  2. Configure the tool to use the Data Connection Manager (DCM), if optional.

 

 

 

  1. In the Data Connections window, click the Data Sources on the left pane.
  2. Click the Quick Connect link under the Databricks Utility Catalog section.

 

 

  1. Create a new connection, datasource and credentials. 
  2. For the datasource, enter the Host and HTTP Path from step 3 of section C.

 

 

  1. For the authentication method in the Credentials, please select Generic OAuth2.

 

 

  1. Enter the following field and values for the credentials:

 

Field

Value

Grant Type

Client Credentials

OAuth token URL

https://login.microsoftonline.com/{tenant_ID}/oauth2/v2.0/token

 

*Replace "{tenant_ID}" with the directory (tenant) ID in step 4 of section A.

Client ID

The application (client ID) from step 4 of section A.

Client Secret

The secret from step 6 of section A.

Client Authentication

Send Client Credentials in Body

 

 

 

  1. Enter a name for the token credential, and enter the following for the Scope.

 

Field

Value

Scope

2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default

 

 

 

  1. Click the Save button.
  2. Click the Connect button after creation.

 

NOTE: The DCM user interface may be different across Designer versions. The screenshots in this article are from Designer version 2025.2.

 

 

Additional Information
Was this article helpful?