Skip to main content
This guide explains how to connect Coalesce Quality to a Microsoft Fabric workspace securely. We need this information so we can collect metadata about the tables in your Fabric Warehouses and Lakehouses, and about the other items of the workspace: data pipelines, notebooks, Dataflows Gen2, Copy jobs, Spark job definitions and the Real-Time Intelligence and machine learning items.To finish this guide, you’ll need the following:
→ Permission to register a Microsoft Entra application (service principal) in your tenant, or an admin who can
→ A Fabric administrator to enable the tenant setting that lets service principals call Fabric
→ A workspace admin to give the service principal a role on the workspace (Contributor for query history, the activities of data pipelines and the definitions of the other items, Member to also list the workspace’s users)
⏱️ Estimated time to finish: 15 minutes.
Microsoft Fabric exposes each workspace through a shared SQL analytics endpoint that speaks T-SQL. Coalesce Quality connects to that endpoint to read the metadata of every Warehouse and Lakehouse in the workspace, and calls the Fabric REST API of the same workspace to read the other items and their runs. Each Warehouse and Lakehouse appears as a database, and Coalesce Quality queries across them using three-part [database].[schema].[table] names. One integration covers one workspace. To monitor several workspaces, add one integration for each workspace, with the SQL analytics endpoint of that workspace. The integrations can share one service principal. A Lakehouse appears with its tables in the dbo schema. If the Lakehouse has schemas enabled, each Lakehouse schema appears as a schema. Authentication is via a Microsoft Entra ID service principal. Fabric does not accept SQL logins, so this is the only way to connect a headless integration.

Data we collect

We read metadata from your workspace’s SQL analytics endpoint using the dedicated service principal described below. Depending on which features you enable in the integration, we ingest:
  • Catalog: the workspace’s databases (Warehouses and Lakehouse SQL endpoints), schemas, tables, views, stored procedures, functions, columns, data types, and constraints. Fabric constraints (primary key / unique / foreign key) are informational (NOT ENFORCED) but are still read from metadata.
  • SQL definitions: the T-SQL of views, stored procedures, and functions. Used for lineage and to detect references between objects.
  • Table metrics (on by default): row counts for anomaly detection, counted with COUNT_BIG(*) for the tables in scope (see Metrics scope below).
  • Last load time (opt-in): the time of the last load of each table, for freshness monitors. It comes from the Delta log of the table in OneLake, and needs the Contributor (or higher) workspace role.
  • Users (opt-in): the workspace’s role assignments and each database’s users, to tell people from service principals in query history. The workspace role assignments need the Member or Admin workspace role.
  • Query history (recommended, on by default): read from the workspace’s queryinsights system views for cost attribution and SQL and column-level lineage. Requires the Contributor (or higher) workspace role, see Give the service principal a role on the workspace. A query shows the client that sent it, read from its program name: Data Factory copy for a Copy data activity or a Copy job, Dataflow Gen2 refresh, Coalesce Transform, Power Query or SQL Server Management Studio. A query of a Copy data activity links to the activity run that sent it.
  • Data pipelines: every hour, the workspace’s data pipelines with their workspace folders, read through the Fabric REST API. From each pipeline we read its activities, also the activities inside a ForEach, If condition, Switch or Until, the order in which they run, and the items that an activity runs: a notebook, a Dataflow Gen2, a Copy job, a Spark job definition or another pipeline. Each pipeline and each activity is an asset in the catalog, with its lineage. A Copy data activity links its source table to its destination table, if the table is in the catalog (see Copy lineage). Reading the activities of a pipeline requires the Contributor (or higher) workspace role.
  • Other items: in the same hourly listing, the workspace’s notebooks, Dataflows Gen2, Copy jobs, Spark job definitions, Eventhouses, KQL databases, Eventstreams, Activators, ML models and ML experiments. Each item shows in the catalog in the folder of its type, with its Fabric properties and the items it uses. A notebook or a Spark job definition shows its Lakehouses and Warehouses. A Dataflow Gen2 or a Copy job shows the tables it reads and writes. An Eventstream shows its destinations, and an Eventhouse its KQL databases. We read the definition of an item only for the items and tables it names. We do not keep the code of a notebook or a Spark job definition, and we read no data. Reading a definition requires the Contributor (or higher) workspace role.
  • Runs: every 10 minutes, the runs of each data pipeline with their activity runs, and the runs of each notebook, Dataflow Gen2, Copy job and Spark job definition. A failed run shows the Fabric error. When an activity starts a notebook or another pipeline, the activity run links to that run, and that run shows the pipeline run that started it. A run of a Copy data activity counts as a load of its destination table, with the rows and bytes it copied. Reading the activity runs requires the Contributor (or higher) workspace role. When you add the integration, we also read the runs of the last 30 days.
  • Semantic models: the lineage from a Lakehouse or Warehouse table to the Power BI semantic model that reads it, for Direct Lake, import and DirectQuery tables. The semantic models and reports come from the Power BI integration of the same tenant, so the edge shows only with that integration.
Fabric has no row count metadata, so table metrics run COUNT_BIG(*) on every table in the metrics scope, which needs SELECT. Fetch table metrics is on by default. With it off, and without monitors or SQL tests, the integration reads only your schema and DDL, never row data.

Copy lineage

A Copy data activity and a Copy job link each source table to its destination table. The table must be in the catalog, through this integration or through the integration of its platform:
  • Fabric Lakehouses and Warehouses
  • Snowflake, BigQuery and Amazon Redshift
  • SQL Server and Azure SQL, PostgreSQL, MySQL and MariaDB, Oracle, Db2 and Databricks
A Copy data activity also has column-level lineage: each source column links to the destination column it lands in, following the mapping of the activity, or by name with no mapping. A Copy data activity that reads with a query links the tables and columns of the query. A Copy job links tables only. A table that an expression or a parameter names, or a connection of another type, gives no edge, and the integration status says why. A Fabric connection to BigQuery does not name the project. If the workspace has BigQuery integrations of one project, the copy uses that project. If it has several, add the project of the connection under BigQuery projects.

Set up access

1. Register an Entra service principal

The integration authenticates as a Microsoft Entra application (service principal) with a client secret. You can create one in the Entra admin center (App registrations → New registration), or with the Azure CLI:
Take note of the Client ID, Client secret, and Tenant ID. You enter them in the Coalesce Quality UI.

2. Allow service principals to use Fabric

A Fabric administrator must enable this once for the tenant:
  1. Open the Fabric admin portal → Tenant settings → Developer settings.
  2. Enable “Service principals can call Fabric public APIs”.
  3. We recommend limiting it to a security group that contains only this service principal.
Without this setting the service principal cannot obtain a Fabric token, so every connection fails and no data pipeline is read.

3. Give the service principal a role on the workspace

A workspace admin adds the service principal to the workspace that holds the Warehouses / Lakehouses you want to monitor. Open the workspace → Manage access → Add people or groups, search for the app registration by name, and assign a role. Which role you need depends on the features you enable: We recommend Contributor. It covers every feature except the users listing, with no extra SQL grants. With Viewer, the service principal can list the items but not read their definitions. The catalog then shows each data pipeline with no activities, and the other items with no related items and no lineage. Pipeline runs show without their activity runs. The integration shows a recommendation to give the service principal the Contributor role. A pipeline or an item with a protected sensitivity label does not share its definition, whatever the role. It shows with no activities and no lineage, and the integration status shows a warning. For Fetch users and service accounts, choose Member. With a lower role, the listing has only database users, and service principals show as <application id>@<tenant id>. A Viewer cannot read the queryinsights views, even with SQL grants. Choose Viewer only if you need the least privilege possible, and add the SQL grants in step 4 to recover SQL definitions and metrics. Query history is not available to a Viewer. A Viewer cannot read OneLake either, so tables have no last load time and automatic freshness monitors have no data. To keep Viewer and still get the last load time, share each Warehouse and Lakehouse with the service principal with the Read all data using Apache Spark (ReadAll) permission.

4. (Optional) Least-privilege SQL grants for a Viewer

If you assigned Viewer, grant the service principal what the enabled features read. Run this in each Warehouse you monitor, with the app registration’s display name. Fabric finds the Entra principal by name, so you do not create a user first:
These grants cannot unlock query history: queryinsights is gated by the workspace role, so leave the service principal on Contributor (or higher) if you want Fetch query history enabled. The same holds for the audit table: a Viewer cannot create it, whatever its SQL grants.

5. Network access

The Fabric SQL analytics endpoint is a public Azure endpoint (<workspace-id>.datawarehouse.fabric.microsoft.com, port 1433, TLS required). There is nothing to allowlist on the Fabric side. See the Coalesce Quality IP Whitelist only if your tenant restricts outbound access to the endpoint by IP.

Input data in the Coalesce Quality UI

Navigate to Data Sources → Add integration → Microsoft Fabric and provide:

Integration name

For example Microsoft Fabric.

SQL analytics endpoint

The workspace SQL analytics endpoint, e.g. <workspace-id>.datawarehouse.fabric.microsoft.com. You’ll find it on any Warehouse or SQL analytics endpoint in the workspace under Settings → SQL analytics endpoint (the SQL connection string). Every Warehouse and Lakehouse in the workspace shares this host, so one integration covers the whole workspace.

Default warehouse (optional)

Name of the warehouse or lakehouse to resolve unqualified queries against. Without a value, Fabric places each connection either in an arbitrary warehouse of the workspace or in master, depending on your tenant (see Microsoft’s Warehouse connectivity), so unqualified names in SQL tests and custom SQL monitors may run against the wrong warehouse or not resolve at all. Use fully qualified names in your SQL, or set this field to the warehouse or lakehouse your SQL refers to. The form warns while the field is empty.

Microsoft Entra service principal

  • Application (client) ID: the Entra application (client) ID from step 1.
  • Client secret: the service principal client secret. Stored encrypted and never displayed again in our UI.
  • Directory (tenant) ID (optional): only needed when the service principal lives in a different Entra tenant than the Fabric endpoint; inferred automatically when left blank.

Data collection

  • Fetch query history (recommended, on by default): reads the workspace’s queryinsights query history for cost attribution and SQL and column-level lineage. Needs the service principal on the Contributor (or higher) workspace role. Databases without a queryinsights schema (Lakehouse SQL endpoints, Fabric SQL databases, mirrored databases) are skipped.
  • Fetch users and service accounts (optional): shown once query history is on. Once a day, lists the workspace’s role assignments and each database’s users, so query history shows whether each login is a person or a service principal. Needs the Member or Admin workspace role for the role assignments, which are also where each login’s display name comes from.
  • Fetch table metrics (required for automatic monitors) (on by default): every 30 minutes, counts the rows of each table in the metrics scope with COUNT_BIG(*). The count is cheap on Fabric’s columnar engine, but it uses capacity. Automatic volume monitors stop working when it is off.
  • Fetch last load time (optional): shown once table metrics are on. With each metrics fetch, reads the time of the last load of each table in the metrics scope from its Delta log in OneLake, for automatic freshness monitors. That is about three OneLake requests for each table every 30 minutes, and OneLake requests use capacity, so it is off by default. For a large workspace, narrow the metrics scope first. Needs the Contributor (or higher) workspace role.

Audit table FQN (optional)

Fully qualified name in the form [warehouse].[schema].[table], for example [analytics].[dbo].[quality_sql_test__audit], of the table where Coalesce Quality writes the failing rows of SQL tests with Save failures on. Brackets are optional, except around a name that holds a space, quote or bracket; no part may hold a single quote. Coalesce Quality creates the table if it does not exist, with one row per failing execution and the failing rows stored as JSON. See the audit table schema. Leave empty if you do not save failing rows.
  • The warehouse must be a Fabric Warehouse in the same workspace as the SQL analytics endpoint. A Lakehouse cannot hold the table, because its SQL analytics endpoint is read-only. Do not use the Dataflow staging items Fabric creates automatically (DataflowsStagingWarehouse, StagingWarehouseForDataflows_*); Microsoft warns of data loss for them.
  • The service principal needs the Contributor, Member, or Admin workspace role, see step 3.
  • Microsoft limits a single value in a Fabric Warehouse to 16 MB. Coalesce Quality keeps the stored rows a margin below that limit: it stores the rows from the start of the result that fit and drops the rest, while rows_count still holds the full count.

Scope

Narrow the workspace down to what you want to monitor. Both scopes support include and exclude rules at the Warehouse, schema, and table levels:
  • Catalog scope: which Warehouses, schemas, and tables are ingested into the catalog. Empty means everything is ingested.
  • Metrics scope: which tables are scanned for metrics. Empty means metrics are collected for all ingested tables.
A Lakehouse is matched at the Warehouse level by its name. A Lakehouse that the catalog scope excludes has no tables in Coalesce Quality, and lineage into its tables is not shown.

BigQuery projects (optional)

Shown on the integration page after you add the integration. A Fabric connection to Google BigQuery does not give the project of its tables. If the Coalesce Quality workspace has BigQuery integrations of more than one project, add a row for each such connection:
  • Fabric connection: the name of the connection, or its id, as Fabric shows it in Manage connections and gateways. The name matches in any case.
  • BigQuery project: the project id of the tables that the connection reads.
Until a connection has a row, its Copy data activities have no BigQuery edge, and the integration shows a recommendation that names the connection. The next hourly listing adds the edges.

Known limits

  • Lakehouse tables can arrive late. The SQL analytics endpoint of a Lakehouse syncs its metadata from the Lakehouse in the background. The sync takes seconds to minutes, and it stops after 15 minutes without queries on the endpoint, so a table created while nobody queries the endpoint can stay invisible for hours (see SQL analytics endpoint performance). Coalesce Quality sees a new table or column only after that sync and the next catalog refresh. To make it visible sooner, open the SQL analytics endpoint in Fabric and select Refresh.
  • The last load time of a Warehouse table needs Delta Lake log publishing. A Warehouse publishes the Delta log of its tables to OneLake within seconds of each change. If publishing is paused (ALTER DATABASE ... SET DATA_LAKE_LOG_PUBLISHING = PAUSED), the last load time stays at the last published change until publishing resumes.
  • A compaction is not a load. The last load time is the last change that added or removed rows. Fabric compacts tables in the background, and a compaction does not move the last load time.
  • A Lakehouse or Warehouse with no tables is not in the catalog. Its database shows when it has its first table. Until then, an item that uses it names it without a link.
  • Notebooks and Spark job definitions have no table lineage. We do not read their code, so we know their Lakehouses and Warehouses, but not which tables they read or write.
  • Real-Time Intelligence and machine learning items have no lineage. We do not read the tables of a KQL database or the models of an ML experiment, and an Eventstream links to its destinations only in its related items.

Personal access (user OAuth)

In addition to the workspace service principal above, you can let each Coalesce Quality member authenticate as themselves against Fabric through Microsoft Entra. Queries then run under the member’s own Entra identity and respect the Fabric workspace roles, item permissions, and row-level security on that user. See Data Warehouse Access for the full model and when to enable it. To enable personal access, an Entra admin registers a separate OAuth app once (distinct from the connection service principal above), then pastes its client ID and secret into the Fabric integration’s edit page in Coalesce Quality under Warehouse access.

Register the OAuth app in Microsoft Entra

  1. In the Entra admin center, open App registrations → New registration and give it a name, e.g. coalesce-quality-fabric-user-oauth.
  2. Under Authentication → Add a platform → Web, add the Redirect URI(s) for the Coalesce Quality region(s) your members use, with no trailing slash:
    • EU: https://app.synq.io/auth/dwh-oauth/callback
    • US: https://app.us.synq.io/auth/dwh-oauth/callback
    • AU: https://app.au.synq.io/auth/dwh-oauth/callback
  3. Under API permissions → Add a permission → APIs my organization uses, search for Azure SQL Database, choose Delegated permissions, and add user_impersonation (this is the https://database.windows.net/user_impersonation scope). It needs no tenant admin consent. Each member consents once at sign-in.
  4. Under Certificates & secrets → New client secret, create a secret and copy its value (shown only once).
  5. Copy the Application (client) ID and the client secret.
In Settings → Integrations → (your Fabric integration) → Warehouse access → Personal credentials, paste the Client ID and Client secret. Members will then see this Fabric integration listed under Settings → Warehouse access → My credentials and can connect with their own Entra identity.
Coalesce Quality builds the Entra authorize URL (https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize), so you do not enter an authority or tenant. organizations lets each member’s home tenant resolve the app, so one app registration works across every workspace and Coalesce Quality region whose redirect URI you added in step 2.