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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Not applicable

Powershell to update datasource URL's

Hi Everyone,


I am working on a automated deployment system that deploys  PowerBI reports to a new workspace. This is all working fine but the issue i am having is updating the datasource with a new URL to get their information from. These are all SharePoint List data sources that need to be updated.


I am using the Invoke-PowerBIRestMethod  to sucessfull get the data sources within a report and I can manipulate the return to change the URL but when sending the update back i just get an error.

No information is given with the error it just doesn't work.


Does anyone have a working example of updatiung a datasource with powershell?


I have seen this thread but it doesn't have a solution

Solution Sage
Solution Sage

Hi @Anonymous ,


Try to find the error using Resolve-PowerBIError cmdlet or fiddler to capture the API error directly.


Just giving as the reference, to my artilce where you can find the some informations on the powershell scripts

Helpful resources


Fabric certifications survey

Certification feedback opportunity for the community.


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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