<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Find Power BI data sources for on premise server in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Find-Power-BI-data-sources-for-on-premise-server/m-p/3989889#M35306</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758034" data-lia-user-login="grasshoppa" class="lia-mention lia-mention-user"&gt;grasshoppa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First, ensure you have the &lt;A href="https://github.com/Microsoft/ReportingServicesTools" target="_blank"&gt;GitHub - microsoft/ReportingServicesTools: Reporting Services Powershell Tools&lt;/A&gt;&amp;nbsp;installed. You can install it via PowerShellGet with the following command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Install-Module -Name ReportingServicesTools&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Once installed, you can use the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 01:53:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-13T01:53:24Z</dc:date>
    <item>
      <title>Find Power BI data sources for on premise server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Find-Power-BI-data-sources-for-on-premise-server/m-p/3988878#M35297</link>
      <description>&lt;P&gt;How can I run a query (sql, powershell, or rest) to find all the data sources of my Power BI dashboards?&amp;nbsp; Most the documentation is around using powershell but the soultions are all against the cloud Power BI service.&lt;BR /&gt;&lt;BR /&gt;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.&amp;nbsp; 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.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 14:15:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Find-Power-BI-data-sources-for-on-premise-server/m-p/3988878#M35297</guid>
      <dc:creator>grasshoppa</dc:creator>
      <dc:date>2024-06-12T14:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find Power BI data sources for on premise server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Find-Power-BI-data-sources-for-on-premise-server/m-p/3989889#M35306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758034" data-lia-user-login="grasshoppa" class="lia-mention lia-mention-user"&gt;grasshoppa&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;First, ensure you have the &lt;A href="https://github.com/Microsoft/ReportingServicesTools" target="_blank"&gt;GitHub - microsoft/ReportingServicesTools: Reporting Services Powershell Tools&lt;/A&gt;&amp;nbsp;installed. You can install it via PowerShellGet with the following command:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Install-Module -Name ReportingServicesTools&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Once installed, you can use the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;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
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Xianda Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:53:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Find-Power-BI-data-sources-for-on-premise-server/m-p/3989889#M35306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T01:53:24Z</dc:date>
    </item>
  </channel>
</rss>

