<?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 PBIRS Rest API Error while getting DataSource by PowerBI Report ID using Powershell in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/PBIRS-Rest-API-Error-while-getting-DataSource-by-PowerBI-Report/m-p/976981#M13478</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get DataSource Details associated with Power BI Report(on PBIRS) using Rest API (and Powershell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I referred to API documentation(&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/" target="_blank" rel="noopener"&gt;https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/&lt;/A&gt;), the syntax I am using is as below,&lt;/P&gt;&lt;P&gt;(Powershell) Syntax used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ReportUri = "&lt;A title="http://pbirsdev.bizdata.local/reports/api/v2.0/powerbireports(f49fab1f-3343-4c90-b0d0-90e70f11a783)/datasources" href="http://pbirsdev.bizdata.local/reports/api/v2.0/PowerBIReports(f49fab1f-3343-4c90-b0d0-90e70f11a783)/Datasources" target="_blank" rel="noreferrer noopener"&gt;http://pbirsxxx.xxxxxxx.local/reports/api/v2.0/PowerBIReports(xxxxxxxx-3343-4c90-b0d0-xxxxxxxxxxxx)/Datasources"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;$pbiReports = Invoke-WebRequest -Uri $ReportUri -Method Get -UseDefaultCredentials&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Output:&lt;/DIV&gt;&lt;DIV&gt;Invoke-WebRequest : { "error":{ "code":"0","message":"" } }&lt;BR /&gt;At line:17 char:15&lt;BR /&gt;+ ... biReports = Invoke-WebRequest -Uri $pbiReportsURI -Method Get -UseDef ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 00:35:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-17T00:35:12Z</dc:date>
    <item>
      <title>PBIRS Rest API Error while getting DataSource by PowerBI Report ID using Powershell</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/PBIRS-Rest-API-Error-while-getting-DataSource-by-PowerBI-Report/m-p/976981#M13478</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get DataSource Details associated with Power BI Report(on PBIRS) using Rest API (and Powershell)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I referred to API documentation(&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/" target="_blank" rel="noopener"&gt;https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/&lt;/A&gt;), the syntax I am using is as below,&lt;/P&gt;&lt;P&gt;(Powershell) Syntax used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ReportUri = "&lt;A title="http://pbirsdev.bizdata.local/reports/api/v2.0/powerbireports(f49fab1f-3343-4c90-b0d0-90e70f11a783)/datasources" href="http://pbirsdev.bizdata.local/reports/api/v2.0/PowerBIReports(f49fab1f-3343-4c90-b0d0-90e70f11a783)/Datasources" target="_blank" rel="noreferrer noopener"&gt;http://pbirsxxx.xxxxxxx.local/reports/api/v2.0/PowerBIReports(xxxxxxxx-3343-4c90-b0d0-xxxxxxxxxxxx)/Datasources"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;$pbiReports = Invoke-WebRequest -Uri $ReportUri -Method Get -UseDefaultCredentials&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Output:&lt;/DIV&gt;&lt;DIV&gt;Invoke-WebRequest : { "error":{ "code":"0","message":"" } }&lt;BR /&gt;At line:17 char:15&lt;BR /&gt;+ ... biReports = Invoke-WebRequest -Uri $pbiReportsURI -Method Get -UseDef ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 00:35:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/PBIRS-Rest-API-Error-while-getting-DataSource-by-PowerBI-Report/m-p/976981#M13478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-17T00:35:12Z</dc:date>
    </item>
  </channel>
</rss>

