Azure SQL to Snowflake via Microsoft Fabric Mirroring and OneLake Catalog Integration
Last updated: October 2026
Quick answer: To sync Azure SQL to Snowflake using Fabric Mirroring, create a mirrored database in Microsoft Fabric that replicates your Azure SQL tables to OneLake in Delta format, which OneLake also exposes through Iceberg metadata. Then create a Snowflake catalog integration on OneLake's Iceberg REST endpoint and a catalog-linked database that discovers the mirrored tables automatically, so no ETL pipeline is needed.
Introduction
Microsoft Fabric Mirroring with Snowflake catalog integration enables near-real-time data synchronization from Azure SQL to Snowflake without traditional ETL pipelines. This guide covers mirroring an Azure SQL Database to OneLake and integrating the mirrored data with Snowflake through an Iceberg REST catalog integration, so both platforms work from the same copy in OneLake.
By combining Fabric Mirroring with Snowflake's Iceberg catalog integration, organizations can make Azure SQL data available in Snowflake without building a pipeline. For a pipeline-based alternative that copies the data into Snowflake tables, see our guide on Azure SQL to Snowflake via Fabric OneLake. OneLake generates Iceberg metadata for the mirrored Delta tables, which Snowflake reads through its Iceberg REST catalog support. That conversion has documented limits, which Step 4 covers.
Step 1 - Load Data into Azure SQL Database
The first step is to ensure your source data is available in Azure SQL Database. In this example, API data is loaded into an Azure SQL Database table dbo.api using Azure Data Factory. This table serves as the source for Fabric Mirroring.
Azure Data Factory pipelines can be configured to ingest data from various APIs, flat files, or other databases into your Azure SQL Database on a scheduled or event-driven basis.
Step 2 - Prepare Azure SQL and Fabric for Mirroring
Mirroring needs several things in place before you create the mirrored database:
- Managed identity: In the Azure portal, open your logical SQL server (the server, not the database), select Identity under Security, and set the System assigned managed identity to On. Fabric uses this identity to publish the mirrored data to OneLake, and it must be the server's primary identity, which you can check with
SELECT * FROM sys.dm_server_managed_identities;. A user-assigned managed identity also works, although Microsoft lists that option as preview. - Database principal: Create a login for Fabric in the
masterdatabase and a mapped user in the database you want to mirror, with the four permissions shown below. Fabric connects to the database through this principal. - Network access: Under Networking, enable Allow Azure services and resources to access this server. If the server isn't publicly accessible, a virtual network data gateway or an on-premises data gateway can reach it through a private endpoint or a firewall rule instead.
- Tenant settings: A Fabric administrator needs to enable the developer setting that lets service principals call Fabric public APIs, and the OneLake setting Users can access data stored in OneLake with apps external to Fabric. Snowflake's access to OneLake later in this guide depends on the same two settings.
- Workspace role: The person who creates the mirrored database needs the Member or Admin role in the workspace, because the Contributor role lacks the Reshare permission that the creation step uses.
-- In the master database
CREATE LOGIN [fabric_login] WITH PASSWORD = '<strong-password>';
-- In the database to be mirrored
CREATE USER [fabric_user] FOR LOGIN [fabric_login];
GRANT SELECT, ALTER ANY EXTERNAL MIRROR, VIEW DATABASE PERFORMANCE STATE,
VIEW DATABASE SECURITY STATE TO [fabric_user];
Microsoft Entra ID logins, service principals and the Fabric workspace identity are also supported, and they need the same four permissions.
Step 3 - Create the Mirrored Database in Microsoft Fabric
To create a mirrored database in Microsoft Fabric, follow these steps:
- Open the Fabric portal (fabric.microsoft.com) and go to your workspace
- Select Create, scroll to the Data Warehouse section and select Mirrored Azure SQL Database
- Under New sources, select Azure SQL Database, then enter the server name and database name
- Select a data gateway if you use one, and choose the authentication kind that matches the login from Step 2
- Select Connect
- On the Configure mirroring screen, keep Mirror all data selected, or turn it off and select individual tables
- Select Mirror database
Fabric then replicates the selected tables from Azure SQL into OneLake in Delta format. With Mirror all data selected, tables created after mirroring starts are mirrored as well.
Step 4 - Verify Mirroring Status
A few minutes after mirroring starts, select Monitor replication in the Fabric portal and look for the following indicators:
- Status: Shows as Running when mirroring is active
- Rows Replicated: The count increases as data is synced
- Last Completed: Timestamp updates to show the most recent sync
Monitor these metrics to confirm that your Azure SQL data is being continuously replicated into OneLake.
OneLake also generates Iceberg metadata for each mirrored Delta table, and that metadata is what Snowflake reads. Microsoft's OneLake table API documentation says this automatic Delta Lake to Iceberg conversion must be enabled for the tenant or workspace. The conversion has these documented limits:
- A source table must have fewer than 5,000 transactions or commits for the conversion to take place.
- Generating the Iceberg metadata takes between 5 seconds and 2 minutes. Microsoft advises that the Delta table be updated less often than once every 2 minutes, because Iceberg readers can otherwise see an inconsistent view.
- The conversion isn't supported for tenants or workspaces with private links enabled, and it isn't yet available in the Qatar Central and Norway West regions.
Each table's metadata folder contains a latest_conversion_log.txt file with the result of the most recent conversion. For a mirrored database, open it with Azure Storage Explorer or OneLake File Explorer, because the Fabric UI doesn't show those files. When a table doesn't appear in Snowflake, check this file first.
Step 5 - Extract Workspace and Item IDs
You will need the Workspace ID and Mirrored Database Item ID for configuring Snowflake's catalog integration. These can be extracted from the Fabric portal URLs:
- Workspace ID: Found in the URL when viewing your workspace (e.g.,
app.fabric.microsoft.com/groups/<workspace-id>/...) - Mirrored DB Item ID: Found in the URL when viewing the mirrored database (e.g.,
.../artifacts/<mirroreddb-id>/...)
Save both IDs as they will be used in the Snowflake integration scripts in Step 8.
Step 6 - Azure App Registration for Snowflake
Snowflake needs OAuth credentials to authenticate with Microsoft Fabric's Iceberg REST Catalog API. Create an Azure App Registration by following these steps:
- Go to the Azure Portal
- Navigate to Microsoft Entra ID (formerly Azure Active Directory)
- Click App registrations → New registration
- Provide a name (e.g., Snowflake-Fabric-Integration) and register
- Go to API permissions → Add a permission
- Select Azure Storage → Delegated permissions → user_impersonation
- Grant admin consent for the permission
- Go to Certificates & secrets → New client secret
- Generate a secret and copy the Value immediately (it will not be shown again)
Collect the following values from the App Registration:
- Tenant ID: Found on the Overview page
- Client ID (Application ID): Found on the Overview page
- Client Secret Value: The secret value you generated above
Step 7 - Grant Contributor Access in Fabric Workspace
The App Registration created in Step 6 must be granted access to your Fabric Workspace so that Snowflake can read the mirrored data:
- Open your Fabric Workspace
- Click Manage access (or Workspace settings → Access)
- Add the App Registration (search by name or Client ID)
- Assign the Contributor role
This allows the registered application (used by Snowflake) to read data from OneLake within the workspace.
Step 8 - Snowflake Integration Script
Now configure Snowflake to connect to the mirrored data in OneLake. Execute the following SQL statements in Snowflake. Replace all placeholder values (e.g., <workspace-id>, <tenant-id>, etc.) with your actual values.
1. Create Catalog Integration
This creates the connection between Snowflake and Fabric's Iceberg REST Catalog API:
CREATE CATALOG INTEGRATION onelake_catalog_int
CATALOG_SOURCE = ICEBERG_REST
TABLE_FORMAT = ICEBERG
REST_CONFIG = (
CATALOG_URI = 'https://onelake.table.fabric.microsoft.com/iceberg'
CATALOG_NAME = '<workspace-id>/<mirroreddb-id>'
)
REST_AUTHENTICATION = (
TYPE = OAUTH
OAUTH_TOKEN_URI = 'https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token'
OAUTH_CLIENT_ID = '<client-id>'
OAUTH_CLIENT_SECRET = '<client-secret>'
OAUTH_ALLOWED_SCOPES = ('https://storage.azure.com/.default')
)
ENABLED = TRUE;
2. Create External Volume
This defines the storage location in OneLake where Snowflake will read the mirrored data:
CREATE EXTERNAL VOLUME onelake_vol
STORAGE_LOCATIONS = (
(
NAME = 'onelake_loc'
STORAGE_PROVIDER = 'AZURE'
STORAGE_BASE_URL = 'azure://onelake.dfs.fabric.microsoft.com/<workspace-id>/<mirroreddb-id>/Tables/'
AZURE_TENANT_ID = '<tenant-id>'
)
)
ALLOW_WRITES = FALSE;
3. Grant Fabric Access to External Volume Identity
After creating the external volume, run DESC EXTERNAL VOLUME to get the consent URL and the name of Snowflake's application, then give that application access to your Fabric workspace:
DESC EXTERNAL VOLUME onelake_vol;
-- 1. Open the AZURE_CONSENT_URL value in a browser and accept the
-- permissions request. Consent adds the application to your tenant,
-- so Fabric can only find it after this step.
-- 2. Note AZURE_MULTI_TENANT_APP_NAME. It looks like <name>_<number>,
-- and only the <name> part is used in Fabric.
-- 3. In the Fabric workspace, select Manage access, then Add people or
-- groups, search for <name> and assign the Contributor role
-- (the same process as Step 7).
4. Create the Catalog-Linked Database
This creates a catalog-linked database that discovers the schemas and tables in the OneLake catalog automatically. Discovery runs every 30 seconds by default, set by the SYNC_INTERVAL_SECONDS parameter (30 to 86,400 seconds). End-to-end freshness also depends on mirroring replication and on OneLake generating Iceberg metadata, which takes between 5 seconds and 2 minutes, so allow for more than the 30-second discovery interval:
CREATE DATABASE FABRIC_LINKED_DB
LINKED_CATALOG = (CATALOG = 'onelake_catalog_int')
EXTERNAL_VOLUME = 'onelake_vol';
5. Verify and Query the Linked Database
Use these commands to verify the catalog link status and explore the mirrored data:
-- Check catalog link status
SELECT SYSTEM$CATALOG_LINK_STATUS('FABRIC_LINKED_DB');
-- Explore schemas and tables
SHOW SCHEMAS IN DATABASE FABRIC_LINKED_DB;
SHOW TABLES IN DATABASE FABRIC_LINKED_DB;
-- Query mirrored data
SELECT * FROM FABRIC_LINKED_DB."dbo"."<table>" LIMIT 10;
Conclusion
This integration provides a powerful, near-real-time data synchronization pipeline between Azure SQL Database and Snowflake using Microsoft Fabric Mirroring and OneLake Catalog Integration. Here are the key benefits of this approach:
- Automatic sync: Fabric Mirroring continuously replicates Azure SQL data to OneLake without manual intervention
- No ETL pipeline needed: Eliminates the need to build and maintain traditional ETL/ELT pipelines for moving data between Azure SQL and Snowflake
- Iceberg format for interoperability: OneLake's Delta-to-Iceberg metadata conversion lets Snowflake read the mirrored tables through its Iceberg REST catalog support
- Automatic table discovery: The catalog-linked database picks up new schemas and tables every 30 seconds by default, with no manual table registration
By leveraging Microsoft Fabric's mirroring capabilities and Snowflake's Iceberg catalog integration, teams can significantly reduce data pipeline complexity while achieving near-real-time data availability across both platforms. Ensure proper data access control strategies are in place when sharing data across platforms.
Frequently Asked Questions
Q: What is the difference between Fabric Mirroring and traditional ETL pipelines?
Mirroring provides continuous, automatic replication of Azure SQL data into Fabric OneLake without building or managing ETL pipelines. Changes in the source database are automatically reflected in OneLake.
Q: How often does Snowflake's linked database sync with OneLake?
Snowflake's catalog-linked database discovers schemas and tables every 30 seconds by default, controlled by SYNC_INTERVAL_SECONDS (30 to 86,400 seconds). Data freshness also depends on mirroring replication and on OneLake generating Iceberg metadata, which takes between 5 seconds and 2 minutes.
Q: Why is an Azure App Registration needed?
The App Registration provides OAuth credentials that allow Snowflake to authenticate with Microsoft Fabric's Iceberg REST Catalog API and access OneLake storage.
Related Articles
Still have questions?
Get AssistanceReady? Let's Talk!
Get expert insights and answers tailored to your business requirements and transformation.
Get Assistance