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
lily99
Regular Visitor

Anonymous Authentication Failed when using Bearer Token in Power Query for REST API

Hello,

I'm trying to query Log Analytics workspace via REST API with anonymous authentication using Bearer Token. I was able to generate the token using tenant ID, client ID, resource, etc. But I kept getting error "We couldn't authenticate with credential provided" at the Log Analytics request step.  

Can you please provide me any suggestion or idea to fix this issue?

Thanks.

  

lily99_0-1617746973715.pnglily99_1-1617746982005.png

 

lily99_2-1617746993952.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@lily99 

I am not familiar with the code using bearer token, you should not get this credential account if the token is invoked successfully.

 

And It is very difficult to troubleshoot such error, you may go to Issues forum:
https://community.powerbi.com/t5/Issues/idb-p/Issues

 

Paul Zheng _ Community Support Team

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@lily99 

I am not familiar with the code using bearer token, you should not get this credential account if the token is invoked successfully.

 

And It is very difficult to troubleshoot such error, you may go to Issues forum:
https://community.powerbi.com/t5/Issues/idb-p/Issues

 

Paul Zheng _ Community Support Team

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.