Set up a Microsoft Fabric destination¶
SQDR replicates to Microsoft Fabric through a mirrored database (Fabric open mirroring). The Stelo Capture Apply extension for Fabric writes the changes as Parquet files to the mirrored database's landing zone in OneLake, and Fabric loads them into the mirrored tables. It signs in as an App registration (a Microsoft Entra ID service principal), so no user's credentials are stored.
Supported configurations¶
| Supported | |
|---|---|
| Fabric | A Microsoft Fabric mirrored database (open mirroring), in a workspace on a Fabric capacity. |
| Driver on the Stelo VM | None. The Apply extension writes to OneLake over its Azure Data Lake Storage interface; the destination has no ODBC connection (see ODBC and Java connectors). |
| Snapshot replication | Yes. The rows are streamed through the source's Capture Agent, so the source needs one. |
| Incremental replication | Yes, through the FabricApplyProcessor Apply extension of Stelo Capture. |
| Apply method | Fabric applies the files: each row carries a marker saying whether it's an insert, an update (upsert) or a delete, matched on the table's key columns (see How changes are applied). |
| Authentication | A Microsoft Entra ID App registration (service principal) with a client secret. |
| Encryption | Always: the landing zone URL is HTTPS. |
| Network | Outbound HTTPS (port 443) from the Stelo VM to OneLake and Microsoft Entra ID. See Firewall rules on the Stelo VM. |
How changes are applied¶
- In the landing zone, the Apply extension writes a folder per destination schema,
<schema>.schema, with a folder per table. Fabric shows the tables under that schema in the mirrored database. - Each table's folder has a
_metadata.jsonfile naming the table's key columns: the destination columns of the subscription's replication key (or of the RRN column). Fabric matches updates and deletes on them. - The rows are written as numbered Parquet files. Each row has a
__rowMarker__column with the change (insert, update, delete or upsert); with Always upsert (on by default), inserts are written as upserts too, so a batch applied again doesn't duplicate rows. - A baseline deletes the table's folder and writes the table again from the first file.
- The Replicator Service creates no table for Fabric subscriptions in the control database, and their columns use Fabric's own type names.
Firewall rules on the Stelo VM¶
| To (outbound HTTPS, port 443) | Why |
|---|---|
onelake.dfs.fabric.microsoft.com |
OneLake, the host of the landing zone URL: the Apply extension writes the files there. |
login.microsoftonline.com |
Microsoft Entra ID: the Apply extension signs in as the App registration. |
Nothing in Fabric connects to the Stelo VM.
Prepare Fabric and Azure¶
Create the mirrored database in a workspace on a Fabric capacity, and keep the capacity running while SQDR replicates: while it's paused, OneLake refuses the files (see Troubleshooting).
Create the mirrored database¶
In the Fabric workspace, create a Mirrored database item, and note its landing zone URL, of the form
https://onelake.dfs.fabric.microsoft.com/<workspace-id>/<item-id>/Files/LandingZone, for the destination.
Create the App registration¶
- In the Azure portal, register a new app (App registrations), keeping the defaults. Note the Application (client) ID and the Directory (tenant) ID.
- Add a New client secret. Note its Value: Azure shows it only now. You store it as a secret in the Data Replicator Manager when you create the destination.
The client secret expires on the date you chose: see When the client secret expires.
Give the App registration access¶
In the mirrored database's Manage permissions, grant the App registration Read and write.
Check the Fabric tenant settings¶
The Apply extension writes to OneLake from outside Fabric, through the Azure Data Lake Storage APIs, signed in as a service principal (the App registration). Microsoft requires two Fabric tenant settings for that. Ask a Fabric administrator to check that both are on, in the Fabric admin portal's Tenant settings (also under OneLake catalog > Govern > Configurations > Tenant settings):
| Setting | Section | Why |
|---|---|---|
| Service principals can call Fabric public APIs (in older tenants and documentation, Service principals can use Fabric APIs) | Developer settings | Lets service principals use Fabric. It applies to the entire organization or to specific security groups: if it's limited to security groups, add the App registration to one of them, or create a security group that contains it and add that group. |
| Users can access data stored in OneLake with apps external to Fabric | OneLake settings | Lets applications outside Fabric, such as the Apply extension, read and write data in OneLake through the Azure Data Lake Storage APIs. While it's off, only Fabric's own experiences can. |
Create the destination¶
- Store the client secret's Value as a secret, for example
FABRIC_CLIENT_SECRET. - Name (see Create a destination): choose the DBMS Type Fabric.
-
On the Connector step, choose the Template "Microsoft Fabric - OneLake landing zone, Microsoft Entra ID service principal" and fill in:
Field What to enter Destination Schema The schema the replicated tables appear under in the mirrored database, for example dbo. The Apply extension writes them in the landing zone folder<schema>.schema. It's the destination's default Object Schema, and becomes each group's destination schema.Landing zone URL The mirrored database's landing zone URL. Tenant ID The App registration's Directory (tenant) ID. Client ID The App registration's Application (client) ID. Client secret A reference ( $$name$$) to the secret that holds the client secret's Value. Entering the Value itself also works; see When the client secret expires.Timestamps in UTC Off by default: timestamps are written as local time. More options: see More about the destination.
-
Click Verify, then save.
Test the connection. Verify (run by the SQDR Plus Launch Agent) signs in as the App registration and checks that the landing zone exists, without writing anything. Saving doesn't test a connection.
Group settings for Microsoft Fabric¶
When you create an incremental group to this destination:
- Parameters: the group copies the destination's Default Parameters when it's created and keeps its own copy. Check the landing zone URL and the App registration's IDs there (see Source/Destination). If you changed the destination after creating the group, use Load from Destination.
- DML Replication is always Merge: Fabric applies the files (see How changes are applied).
- The group's destination schema is its members' default schema: their tables appear under it in the mirrored database.
Check the destination¶
After the incremental group's first baseline (for snapshots, after the first run):
- Group status. On the Groups page, the group shows Actively monitoring and applying change data (see Group status). If the group can't write, see Troubleshooting.
- Rows at the destination. In Fabric, open the mirrored database: the tables appear under the schema, and
Monitor replication shows the rows Fabric has loaded. Compare a table's row count with the source in the
mirrored database's SQL analytics endpoint. If the tables don't appear, check that the Apply extension wrote
_partnerEvents.jsonand each table's folder (<schema>.schema/<table>), with its_metadata.jsonand Parquet files, to the landing zone. - Changes. Change a row at the source. After the group's next poll (the Poll Interval; see Scheduling) and Fabric's load, query the table again.
Data types¶
Columns use Fabric's own type names: BOOLEAN, INT, BIGINT, FLOAT, DOUBLE, DECIMAL (up to 38 digits),
STRING and BINARY (no length), DATE and TIMESTAMP. Timestamps in UTC decides whether timestamps are written
as UTC or local time. See Per-database notes.
Limitations¶
- The Fabric capacity must be running. While it's paused or unavailable, OneLake refuses the files (404, "capacity is currently not available"), so nothing is applied until it runs again.
- No existing destination table: the Apply extension writes the table's files itself, so a subscription can't use a table that already exists in the mirrored database.
- Archive subscriptions (Archive all DML Activity) are written without key columns.
- No derived columns (see Derived columns) and no indexes at the destination.
- Client secrets expire (see Create the App registration).
Troubleshooting¶
Problems and messages, with their causes and fixes, are in Troubleshooting › Cloud and streaming destinations.