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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Community Champion
Community Champion

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
v-jingzhan-msft
Community Support
Community Support

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
Community Champion
Community Champion

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
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.