SaaS Onboarding
Step 1: Login to Databricks and capture the account ID
1. log in to databricks as admin ( https://accounts.azuredatabricks.net )

Click on the profile icon at top right corner and copy the account ID
Step 2: Create Service Principal
Navigate to workspaces from left menu bar and click open for the workspace which you wanna onboard

Click on the workspace and click on open workspace
Click on the profile icon at top right corner and click settings

Click on Identity and access and Click Manage for Service Principals

Click on Add service principal and click Add new

Select “Databricks managed” and enter the service principal name and click on Add service principal

Navigate to newly created service principal and click on Secrets tab

Click on generate secret button, and then enter the validity of the secret in the number of days and click on generate

After creating, you will get the client ID and client secret as shown below, and you need to capture and save them

Step 4: Run the SQL query
Navigate to workspaces from left menu bar and open the workspace

Click on SQL editor and run the following queries in the SQL editor as follows and replace the service principal client id with the one created above in service principal

GRANT USE SCHEMA ON SCHEMA system.compute TO `<service principal client id>`;
GRANT SELECT ON TABLE system.compute.clusters TO `<service principal client id>`;
GRANT USE SCHEMA ON SCHEMA system.billing TO `<service principal client id>`;
GRANT SELECT ON TABLE system.billing.list_prices TO `<service principal client id>`;
GRANT SELECT ON TABLE system.billing.usage TO `<service principal client id>`;
Step 5 : Copy the JDBC URL
Click on the existing SQL Warehouse which you wanna connect

Go to the connection details and copy the JDBC URL

Step 6: Integrate into Mavvrik portal
Go to Mavvrik portal and click on admin and then SaaS
Click on +account and then select databricks
Enter the details captured above i.e.
Account id
Client id
Client Secret
JDBC URL
Then click on connect After it is connected, you will see it as below