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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ManasaSN
New Member

PBIRS Rest API Error while getting DataSource by PowerBI Report ID using Powershell

Hi Everyone,

 

I am trying to get DataSource Details associated with Power BI Report(on PBIRS) using Rest API (and Powershell)

 

I referred to API documentation(https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0#/), the syntax I am using is as below,

(Powershell) Syntax used:

 

$ReportUri = "http://pbirsxxx.xxxxxxx.local/reports/api/v2.0/PowerBIReports(xxxxxxxx-3343-4c90-b0d0-xxxxxxxxxxxx)/...

 

$pbiReports = Invoke-WebRequest -Uri $ReportUri -Method Get -UseDefaultCredentials
 
Output:
Invoke-WebRequest : { "error":{ "code":"0","message":"" } }
At line:17 char:15
+ ... biReports = Invoke-WebRequest -Uri $pbiReportsURI -Method Get -UseDef ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

 

Please help.

 

Thanks

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.