How to create a Data Share between Lakehouses in Microsoft Fabric: step by step
This tutorial explains how to create a Data Share between Lakehouses in Microsoft Fabric to share data in a controlled way between workspaces or subscriptions. It is useful when you want to provide access to datasets without copying files or losing control over versions and permissions.
Prerequisites
- Account with access to Microsoft Fabric and administrator or owner permissions in the source workspace.
- Lakehouse with data (Delta tables) in OneLake in the source workspace.
- Destination workspace with permissions to accept the Data Share.
- Basic familiarity with Lakehouse, Delta tables and permissions in Fabric.
Step 1: Prepare the Delta table in the source Lakehouse
Verify that the table you want to share is a Delta table inside the Lakehouse. If necessary, create a simple table using Spark SQL in a Notebook or within the Lakehouse editor.
-- Exemplo em Spark SQL para criar uma Delta table
CREATE TABLE IF NOT EXISTS bronze.sales_delta (
sale_id LONG,
amount DOUBLE,
sale_date DATE
)
USING DELTA;
-- Inserir alguns dados de teste
INSERT INTO bronze.sales_delta VALUES (1, 100.0, '2026-01-01');
Step 2: Create the Data Share in the source workspace
Open the Lakehouse in the source workspace, go to the Data Sharing section and create a new Data Share. Give it a name, description and add the Delta table you want to share. Configure the sharing options (read-only, exposed columns).
-- Conceptual: não há comando único; segue a interface: New Data Share -> escolher Lakehouse -> adicionar tabela
-- Se estiver disponível API/CLI, usa Microsoft Fabric REST/CLI para criar o share apontando para a Delta table.
Step 3: Set permissions and retention period
When creating the Data Share, define who can access it: specify workspaces, consumer accounts or subscriptions. Also define policies such as retention (how long the shared snapshot is available) and whether you allow automatic updates.
-- Exemplo conceptual de opções a validar na interface:
-- Permissions: Allow workspace X to access
-- Retention: 30 dias
-- Refresh: Manual ou agendado
Step 4: Send an invitation to the destination workspace
After creating the Data Share, send an invitation to the destination workspace. The recipient will receive a link/entry in the Data Shares area to accept the share. Ensure the destination team has permissions to accept and mount the share.
-- Na interface: Share -> Invite consumer -> seleccionar workspace destino (email/ID)
-- No destino: Accept Share -> escolher local onde montar (por exemplo, como tabela externa numa Lakehouse)
Step 5: Mount the Data Share in the destination Lakehouse
In the destination workspace, accept the Data Share and choose to mount the shared table inside a Lakehouse. Typically the Data Share appears as a catalog or a set of external tables that you can connect directly to your analytics or to Power BI.
-- Após aceitar, a tabela aparece como external table no Lakehouse destino; podes consultar com:
SELECT * FROM shared_catalog.origin_sales_delta LIMIT 10;
Step 6: Test access and performance
Run read queries in the destination Lakehouse to confirm that the data is visible and that permissions work. Check performance and latency; if necessary, use a Warehouse or a materialized view on the destination to optimize heavy queries.
-- Teste simples
SELECT COUNT(*) FROM shared_catalog.origin_sales_delta;
Verify the result
Confirm that the shared table appears in the destination Lakehouse and that you can run SELECTs without errors. Check the Data Share log in the source workspace (who accessed it, when). If queries fail, verify the consumer permissions and the existence of the Delta table.
Conclusion
Sharing data with a Data Share between Lakehouses in Microsoft Fabric enables secure sharing without data duplication, while keeping control over access and versions. Next steps: automate share updates, create materialized views on the destination for performance, or use masking policies if the data is sensitive. Tip: before sharing, audit sensitive columns and test permissions with a development workspace.