Connect Fabric Agents to Databricks workspaces via PAT or OAuth. Explore Unity Catalog, run queries, scaffold projects with Fabric Harness, and deploy Databricks Apps — all from the chat surface.
The Databricks integration lets Fabric Agents query your Lakehouse, scaffold projects, and deploy workloads without leaving the chat. It supports three auth methods — PAT (quick start), M2M OAuth (production automation), and U2M OAuth (interactive user consent) — and delegates build/deploy to Fabric Harness (fh) via a built-in bridge.
Note: This section covers the Databricks workspace integration (sources, discovery, harness, templates). For using Databricks Mosaic AI as the agent's LLM provider, see Databricks Mosaic AI provider.
Workspace exploration — list catalogs, schemas, tables, clusters, jobs, and SQL warehouses via the Databricks REST API.
Unity Catalog governance — read tags, lineage, and privileges; the agent inherits your UC grants.
SQL execution — run queries through SQL warehouses using the Statement Execution API.
Project scaffolding — fabric-cli databricks init generates a Databricks Asset Bundle (DAB) project via Fabric Harness.
Mock runs — validate structure and syntax without live API calls.
Deploy targets — build for databricks-app or databricks-serving and preview deploy before going live.
Source discovery — the agent discovers catalogs, schemas, tables, warehouses, clusters, and jobs automatically, and uses them to pre-fill scaffolded projects.
Live health tests — source test validates connectivity, credentials, and permissions in real time.
Three workload templates — Governed Analytics Copilot, Lakebase Stateful RAG Agent, and Data Engineering Agent.
Direct workspace access — the chat agent calls Databricks REST APIs through your configured source: Unity Catalog discovery, SQL execution, cluster/job listing, and health checks. Everything is governed by your UC grants and the source's permission rules.
The harness bridge — fabric-cli databricks (or the databricks_harness_invoke session tool) delegates scaffolding, mock runs, builds, and deploys to the Fabric Harness CLI (fh). The bridge strips unrelated secrets from the child environment, redacts tokens from output, and gates live runs behind FABRIC_DATABRICKS_TEST=1.
fabric-cli databricks run --mock --question "What tables are in main?"
Set the live gate and run for real:
export FABRIC_DATABRICKS_TEST=1export DATABRICKS_HOST="https://<workspace-host>.cloud.databricks.com"export DATABRICKS_TOKEN="dapi..."fabric-cli databricks run --question "What tables are in main?"