Welcome to the Alteryx Knowledge Base
Created/Edited -
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.
- Alteryx Designer/Server
- Version >= 2025.1
- Azure Databricks
- Databricks ODBC Driver (previously named as Simba Sparks ODBC Driver)
- Version >= 2.8.2
- Databricks Utility Catalog enabled
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
- Go to Azure Portal.
- Go to Microsoft Entra ID > App Registrations.
- Create a new application and set the account type accordingly. Redirect URI is not needed here for the service principal.
- Note down the application name, client ID and tenant ID after registering the application.
- Go to Certificates & secrets and create a new client secret,
- Note down the secret value immediately once created.
B. Add the Service Principal to Azure Databricks
- Log in to the Databricks workspace as a Workspace Admin.
- Click the Profile and select Settings.
- Click Identity and access on the left pane.
- Click the Manage button in the Service principals section.
- Click the Add service principal button.
- 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.
- Once the dropdown shows the application, select it and click the Add button.
- On the furthest left pane, click Catalog.
- In the Catalog page, click the catalog that you want to provision to the service principal.
- Click the Permissions link.
- Click the Grant button and add the appropriate permissions to the service principal.
- Go to Compute and select the appropriate cluster to use in Alteryx,
- Go to Permissions as shown below.
- Add the "Can Attach To" privilege to the service principal.
C. Get the Databricks Information [FOR USER OR ADMINISTRATOR]
- Log in to Databricks.
- 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.
- 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
- In Designer, add an Input Data tool to the workflow canvas.
- Configure the tool to use the Data Connection Manager (DCM), if optional.
- In the Data Connections window, click the Data Sources on the left pane.
- Click the Quick Connect link under the Databricks Utility Catalog section.
- Create a new connection, datasource and credentials.
- For the datasource, enter the Host and HTTP Path from step 3 of section C.
- For the authentication method in the Credentials, please select Generic OAuth2.
- 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 |
- Enter a name for the token credential, and enter the following for the Scope.
|
Field |
Value |
|
Scope |
2ff814a6-3304-4ab8-85cb-cd0e6f879c1d/.default |
- Click the Save button.
- 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.