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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
po
Post Prodigy
Post Prodigy

streaming datasets powershell for tenant usage

Hi,

 

Getting error message at line 78 when have followed the steps in 

Assuming domain is just <companyname.com>?

 

Anyone knwo how to resolve this?

 

Thanks

 

https://www.proserveit.com/blog/power-bi-usage-metrics-across-all-workspaces

and used powershell

https://github.com/ssugar/Blog/blob/master/PowerBIUsage/Scripts/Get-PowerBIUsage.ps1

 

Invoke-RestMethod : The remote server returned an error: (404) Not Found.
At C:\pbi_pshell\Get-PowerBIUsage.ps1:78 char:21
+ ... $response = Invoke-RestMethod -Method Post -Uri "$powerBiEndpoint" -B ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

4 REPLIES 4
Jc007
New Member

I cannot seems to find the powerbi usages powershell. it is thouging a 404 when i try to get the powershell

lbendlin
Super User
Super User

check line 14 in your script to make sure you properly defined the endpoint.

Thanks for reply.

 

I copied the endpoint as suggested in the blog - when type the endpoint url itself in a browser get below but not sure if that usual with a streaming dataset.

 

What shoudl the endpoint url be?

 

<Error>
<Message>No HTTP resource was found that matches the request URI '

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Users online (2,203)