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
bschnurr
Microsoft Employee
Microsoft Employee

powershell post to push/streaming dataset Unauthorized

Just started happening since sat april 23.

 

using the dataset' s generated powershell code example (user data replaced with XXX), no fails.

 

Invoke-RestMethod : The remote server returned an error: (401) Unauthorized.

 

 

$endpoint = "https://api.powerbi.com/beta/XXX/datasets/XXX/rows?key=XXX"
$payload = @{
"foo" =98.6
}
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))

 

 

not using auth, but the docs say its not needed.

Real-time streaming in Power BI - Power BI | Microsoft Docs

1 ACCEPTED SOLUTION
bschnurr
Microsoft Employee
Microsoft Employee

I see its working again now magically.... 

View solution in original post

4 REPLIES 4
bschnurr
Microsoft Employee
Microsoft Employee

I see its working again now magically.... 

Anonymous
Not applicable

Hi @bschnurr ,

Does that make sense? If so, kindly mark your answer as the solution to close the case please. Thanks in advance

 

Best Regards

Community Support Team _ Polly

 

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

epopova
Microsoft Employee
Microsoft Employee

I have the same problem! Connection worked earlier and now it doesn't

bschnurr
Microsoft Employee
Microsoft Employee

any new streaming dataset I create has the same issue with both the sample "curl" or "powershell" push example

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.