Mirroring in Fabric

By Hatnest · Reviewed by Saurav Raj Joshi · Updated Nov 30, 2026

Mirroring keeps a continuously updated replica of an operational data source inside OneLake, without you building a pipeline. You create a secure connection, choose a whole database or individual tables, and Fabric does the rest: it replicates the data, converts it to Delta (Parquet files with a Delta log), and keeps it in sync. You get near-real-time analytics on operational data with no extract schedule to maintain.

The three types

  • Database mirroring replicates the data itself. Sources include Azure SQL Database, Azure SQL Managed Instance, SQL Server, Azure Cosmos DB, Azure Database for PostgreSQL, Azure Database for MySQL (preview), Oracle, SAP, Google BigQuery, Snowflake, and Fabric SQL database. It copies data into Fabric.
  • Metadata mirroring synchronizes only metadata (catalog, schema and table names) and reads the data in place through OneLake shortcuts. Azure Databricks catalogs are the typical case. Nothing is duplicated, and source changes are visible immediately.
  • Open mirroring is for sources Fabric does not support natively. Your application, or a partner product, writes change data into a landing zone in OneLake, and Fabric merges it into Delta tables.

What gets created

A mirrored database item gives you the replication process plus a SQL analytics endpoint, a read-only T-SQL layer on the replicated tables. From there you can build views, functions and stored procedures, apply SQL security, use the visual query editor, share the item, create a semantic model, or use Direct Lake. You can also reach the data from Spark by creating a lakehouse shortcut to the mirrored tables, or read the Delta files directly in OneLake. Cross-database queries can join mirrored tables with warehouse and lakehouse tables using three-part names, with the mirrored database name as the first part.

SELECT o.OrderID, c.Segment
FROM MirroredSales.dbo.Orders AS o
JOIN MyWarehouse.dbo.DimCustomer AS c ON c.CustomerID = o.CustomerID;

How replication works

For database mirroring, the source publishes incremental change files to a landing area in Fabric. The method of finding changes depends on the source; for SQL Server 2025 the engine scans the transaction log. A replicator in Fabric watches for new files at high frequency and merges them into the target Delta table. Changes can arrive as fast as every 15 seconds, and back-off logic slows the polling when activity is low. Actual latency depends on regions, change volume and frequency, network, and gateway compute where one is used.

Open mirroring specifics

Each table folder in the landing zone should have a _metadata.json file with the key columns. Without keyColumns, updates and deletes are impossible, and the key columns cannot be changed once set. Data can be Parquet or delimited text (including CSV), uncompressed or compressed with Snappy, GZIP or ZSTD. A __rowMarker__ column, which must be the last column, tells Fabric whether each row is an insert, update or delete. Files are named with a 20-digit sequence such as 00000000000000000001.parquet.

Cost and retention

  • Replication compute is free and does not use your capacity units. Storage for replicas is free up to one terabyte per capacity unit purchased (an F64 gives 64 TB). Beyond that, or when the capacity is paused, you pay for OneLake storage.
  • A running capacity is required; if it is paused or deleted, nothing replicates.
  • Querying with SQL, Power BI or Spark is charged at normal rates.
  • Mirroring runs vacuum automatically. Retention defaults to one day for databases created in the portal after mid-June 2025 and seven days for older ones. Change it under Settings, Delta table management. A longer value keeps more history for time travel but uses more storage.

Choosing mirroring

Use mirroring when you want low-maintenance, near-real-time replication of a supported source for analytics. Use a shortcut when the data is already in a lake or supported storage and you do not need a replica. Use a pipeline or Copy job when the source is unsupported, when you must transform on the way in, or when scheduled batch is enough. Use open mirroring when you control the producer and need continuous change feeds.

Common mistakes

  • Treating the mirror as writable. The SQL analytics endpoint is read-only.
  • Forgetting that a paused capacity stops replication.
  • Omitting keyColumns in open mirroring, then expecting updates to apply.
  • Choosing metadata mirroring and expecting a physical copy in OneLake.

For the exam

  • Database mirroring copies data; metadata mirroring uses shortcuts; open mirroring lands change data you supply.
  • A mirrored database comes with a read-only SQL analytics endpoint.
  • Replication compute is free; storage is free up to 1 TB per capacity unit.
  • Open mirroring uses _metadata.json with keyColumns, and a final __rowMarker__ column, to apply updates and deletes.
  • Default retention: one day for newer portal-created databases, seven for older ones.

Sources