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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
grasshoppa
New Member

Find Power BI data sources for on premise server

How can I run a query (sql, powershell, or rest) to find all the data sources of my Power BI dashboards?  Most the documentation is around using powershell but the soultions are all against the cloud Power BI service.

I have a local/on premise Power BI server and I am trying to document the SQL server names and databases for each of the published dashboards.  It would be helpful if it looped through all the dashboards in the sub folders so I don't have to manually add the indivdual dashboards.

1 REPLY 1
Anonymous
Not applicable

Hi @grasshoppa ,

For on-premise Power BI Report Server, leveraging PowerShell in conjunction with the Reporting Services Tools can be a viable approach. The Reporting Services Tools provide cmdlets for managing items in a report server in native mode or a Power BI Report Server.

First, ensure you have the GitHub - microsoft/ReportingServicesTools: Reporting Services Powershell Tools installed. You can install it via PowerShellGet with the following command:

Install-Module -Name ReportingServicesTools

Once installed, you can use the cmdlet (RsItemDataSource) to retrieve information about data sources for reports. You'll need to loop through the items (reports and dashboards) in your server's folders to gather this information.

Import-Module ReportingServicesTools
$reportServerUri = "http://yourReportServer/ReportServer"
$folderPath = "/PathToYourDashboardsFolder"
Get-RsFolderContent -ReportServerUri $reportServerUri -RsFolder $folderPath | Where-Object Type -EQ "Report" | ForEach-Object {
  $reportPath = $_.Path
  Get-RsItemDataSource -ReportServerUri $reportServerUri -RsItem $reportPath
}

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.