September 2026 release is live Read More

Databricks Onboarding

Why this matters: Databricks compute (DBUs, cluster time, SQL warehouse usage) is billed on its own schedule, separate from the underlying cloud provider invoice — and can scale quickly with query volume or always-on clusters. Without connecting it here, that spend either lives in a separate Databricks-only view nobody checks regularly, or shows up as a surprise on the invoice. Connecting it means Databricks costs show up in Mavvrik's SaaS dashboards, with the same allocation and reporting tools available for your cloud spend.

This shows up differently depending on your role:

  • FinOps managers use this to catch Databricks cost growth (idle clusters, oversized warehouses) before it's a large invoice surprise.

  • Data/platform teams do the actual onboarding — creating the service principal, granting it read-only access, and connecting the SQL warehouse.

  • Finance leaders use this for chargeback when workspaces are shared across multiple teams.

Configuration steps

Step 1: Login to Databricks and capture the account ID

  1. log in to databricks as admin ( https://accounts.azuredatabricks.net )

Open the Databricks account console
Open the Databricks account console
  1. Click on the profile icon at top right corner and copy the account ID

Copy the Databricks account ID
Copy the Databricks account ID

Step 2: Create Service Principal

  1. Navigate to workspaces from left menu bar and click open for the workspace which you wanna onboard

Select the Databricks workspace to onboard
Select the Databricks workspace to onboard
  1. Click on the workspace and click on open workspace

Open the Databricks workspace
Open the Databricks workspace
  1. Click on the profile icon at top right corner and click settings

Open Databricks workspace settings
Open Databricks workspace settings
  1. Click on Identity and access and Click Manage for Service Principals

Manage Databricks service principals
Manage Databricks service principals
  1. Click on Add service principal and click Add new

Add a new service principal
Add a new service principal
  1. Select "Databricks managed" and enter the service principal name and click on Add service principal

Create a Databricks-managed service principal
Create a Databricks-managed service principal
  1. Navigate to newly created service principal and click on Secrets tab

Open the service principal secrets
Open the service principal secrets
  1. Click on generate secret button, and then enter the validity of the secret in the number of days and click on generate

Generate a service principal secret
Generate a service principal secret
  1. After creating, you will get the client ID and client secret as shown below, and you need to capture and save them

Copy the Databricks client ID and client secret
Copy the Databricks client ID and client secret

Step 3: Run the SQL query

  1. 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 billing usage permissions in the SQL editor
Grant billing usage permissions in the SQL editor
GRANT USE SCHEMA ON SCHEMA system.billing TO `{service_principal_id}`;                                                                         
GRANT SELECT ON TABLE system.billing.usage TO `{service_principal_id}`;                                                                        
GRANT SELECT ON TABLE system.billing.list_prices TO `{service_principal_id}`;
GRANT USE SCHEMA ON SCHEMA system.access TO `{service_principal_id}`;
GRANT SELECT ON TABLE system.access.workspaces_latest TO `{service_principal_id}`;  

Step 4 : Copy the JDBC URL

  1. Click on the existing SQL Warehouse which you wanna connect

Select the Databricks SQL warehouse
Select the Databricks SQL warehouse
  1. Go to the connection details and copy the JDBC URL

Copy the Databricks JDBC URL
Copy the Databricks JDBC URL

Step 5: Integrate into Mavvrik portal

  1. Go to Mavvrik portal and click on admin and then SaaS

  2. Click on +account and then select databricks

  3. Enter the details captured above and click connect

    • Account id

    • Client id

    • Client Secret

    • JDBC URL

Connect Databricks in Mavvrik
Connect Databricks in Mavvrik

Troubleshooting

  • If the account does not connect, verify the account ID, client ID, client secret, and JDBC URL entered in Mavvrik.

  • If a permission error appears, confirm that the service principal and SQL permissions were configured as described above.

FAQs

What access does the service principal get in Databricks?
Only read-only SELECT access to system.billing.usage, system.billing.list_prices, and system.access.workspaces_latest, granted via the SQL script above — no write access to any table.

What is the JDBC URL used for?
It points Mavvrik at the specific SQL warehouse used to query the billing and access tables set up in the previous step.

Why do AI workloads increase Databricks costs?
AI workloads increase Databricks costs because they use compute for more than analytics. Embedding jobs, model serving, Vector Search, fine-tuning, batch inference, and storage all consume resources. Costs rise further when production workloads keep using compute patterns that were originally meant for experimentation.