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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
rishigarg
Regular Visitor

Deploy powerbi report using powershell with new dataset Id

I have powerbi report connecting to existing dataset in a workspace (used powerbi desktop to do that). Now I need to deploy this report to prod environment, using powershell script. Since the dataset id in Prod env is different then what is used in my Powerbi report. So is it possible to update the dataset id of my Powerbi report using Powerbi API / REST API or any other means, when I am deploying it to Prod env?

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@rishigarg,

There are two methods for you to change the dataset id.

1. Directly change data source in PBIX file.
1.PNG

2. Copy PBIX file to ZIP file, edit Connections file in the ZIP file and rename zip file to PBIX file.  There is a similar thread for your reference. Please note that this method is not supported officially. Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@rishigarg,

There are two methods for you to change the dataset id.

1. Directly change data source in PBIX file.
1.PNG

2. Copy PBIX file to ZIP file, edit Connections file in the ZIP file and rename zip file to PBIX file.  There is a similar thread for your reference. Please note that this method is not supported officially. Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.

 



Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, In Connections file, I see there is a JSON tag "PbiServiceModelId": How to get the value for this tag?

Someone managed to get the PbiServiceModelId maybe? 😄

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 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI 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.