Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hello Team,
I have a report which has 2 data sources:
1) Azure SQL database 1
2) Azure SQL database 2
Both are in import mode.
This is the code that I am using to update the data source is :
$response=Invoke-PowerBIRestMethod -Url "groups/$($workspace.id)/datasets/$($datasetid)/Default.UpdateDatasources" -Method Post -Body $Body | ConvertFrom-Json
I am able to update multiple data sources if the datasource types are different.
But since in this case the datasource types for both the datasources is same(SQL).
And since the REST API has parameter as the dataset ID which being same for both data sources, the update query is failing.
So is there any way by which we can pass the datasourceid as the parameter to update the datasource or the only way for us the achive the CI CD for suce use cases is to parameteris the data sources.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |