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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Clone Power BI reports between tenants using Power BI REST API

Hi!
 
I have 2 workspaces:
  • Workspace A hosted on tenant A: Vendor workspace which contains the product PBIX. "Golden workspace".
  • Workspace B: Client workspace, hosted on tenants B, client workspace.

On workspace A I have: Dataset + report A Report which is connected to the dataset above.

I want to copy the content workspace A to workspace B using the rest API. (I am using python).

I am using PPU or Pro license, I don't have premium capacity.

I want to copy the content workspace A to workspace B using the rest API. (I am using python). I am pretty familiar with Power BI service principal profiles and used them several times.

a legit solution can be to import PBIX files to workspace B, I don't must clone workspace A.

 

My final goal is to create the workflow on this link.

 

Thank you, Tal

 

4 REPLIES 4
Hariharan_R
Solution Sage
Solution Sage

Hi @Anonymous 

You need to ensure you are using the right authentication.

Ref - https://www.sqlshack.com/migrate-power-bi-reports-between-multiple-workspaces/

Ref - https://powerbi.microsoft.com/sv-se/blog/duplicate-workspaces-using-the-power-bi-rest-apis-a-step-by...

Thanks

Hari

Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


My Blog :: YouTube Channel :: My Linkedin


Anonymous
Not applicable

Hi

I generated the token and used in order to create workspaces an dusers. So from the authentication aspect I think I am good. Thanks for the links, the thing is that all the examples are based on powershell. any chance you have examples with the REST API HTTP requests?

 

appriciate the help, Tal

Anonymous
Not applicable

Hi @Anonymous,

Did these report contents design on the power bi service side? If not, I'd like to suggest you parametrized these reports with query parameters.

Deep Dive into Query Parameters and Power BI Templates | Microsoft Power BI Blog | Microsoft Power B...
Then you can directly use rest API to export and re-publish to different tenants, and change the query parameter to work in different environments.

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev  

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Thanks for the help

I'm familiar with the parameters. Currently, my main obstacle is to import the PBIX or clone it.

 

I think about 2 options:

  1. Clone a work space and all the reports and datasets in it (The option I described above).
  2. Import a PBIX I uploaded to Blob storage (The PBIX are small, about 100MB). Does it possible using PPU or Pro license? Or I need premium capacity for this.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.