Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
Scott_Powell
Advocate III
Advocate III

Copy tables and files (quickly) between two lakehouses with same name

Hi, we're experimenting with CI/CD and using the whole "branch out" git functionality. As part of this, I'll want the ability to copy any and all files and tables from one workspace into another. Is there an easy way to do this?

 

The copy activity in a pipeline seems to require knowing the list of tables and files beforehand, making it inflexible as things change. 

 

Using a notebooks seems the best way - but I'm uncertain how to "attach" both Lakehouses when they have the same name. 

 

Any idea how to do this? CoPilot hasn't been much help...

 

Thanks,

Scott

 

1 ACCEPTED SOLUTION
frithjof_v
Super User
Super User

Regarding Notebook: I think you can use a combination of abfss path and mounting (which relies on abfss path). Notebookutils can also be a helpful tool for such use cases (getting abfss paths dynamically, mounting lakehouses, file system utilities, etc.). NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

For transferring tables, you could use the abfss path of the lakehouses.

 

You could mount the lakehouses, this is useful for transferring files, I think (using the local directories, i.e. relative paths). How To Mount A Lakehouse and Identify Mounted Lakehouses in Fabric

Or perhaps you can use the abfss path directly for transferring files also.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Scott_Powell 

 

Another CI/CD experience in Fabric is Deployment pipelines. If you want to copy lakehouses from one workspace to another workspace directly, you can create a deployment pipeline to do this task. The files and tables in a lakehouse can still remain their original names, and the lakehouse in the destination stage worksapce can also have the same name as the source one. This might be an alternative. 

Get started using deployment pipelines, the Fabric Application lifecycle management (ALM) tool - Mic...

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

frithjof_v
Super User
Super User

Regarding Notebook: I think you can use a combination of abfss path and mounting (which relies on abfss path). Notebookutils can also be a helpful tool for such use cases (getting abfss paths dynamically, mounting lakehouses, file system utilities, etc.). NotebookUtils (former MSSparkUtils) for Fabric - Microsoft Fabric | Microsoft Learn

 

For transferring tables, you could use the abfss path of the lakehouses.

 

You could mount the lakehouses, this is useful for transferring files, I think (using the local directories, i.e. relative paths). How To Mount A Lakehouse and Identify Mounted Lakehouses in Fabric

Or perhaps you can use the abfss path directly for transferring files also.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.