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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
st586
Regular Visitor

Using cmdlets to change SSAS connection in report

Hello World!

I need a feature which I think isn't available, but I might be wrong.

I want to use the Power BI cmdlets to repoint the datasource to a different database in the SQL Server Analysis Services.

What I want to do is this:

1. Use the cmdlets to import the Power BI reports from the Dev App Workspace to a local temp folder.

2. Repoint the Reports from Dev to Test database.

3. Export the reports to the Test App Workspace.

 

The resources for points 1 and 3 were available in the forum and I was able to do it. I need point 2 because parameterization is not supported for Live connections. Is Point 2 possible in Powershell? Is there any other way to make this work?

 

Thanks

1 REPLY 1
Jayendran
Solution Sage
Solution Sage

Hi @st586 ,

 

In Order to achieve your request you can use the Update Data Source API

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup

 

In order to automate either using Azure DevOps/ PowerShell I wrote an article which would helpful for you

https://community.powerbi.com/t5/Community-Blog/PowerBI-CICD-using-Azure-DevOps/ba-p/769244

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.