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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
___Johan___
Frequent Visitor

AADSTS500011: The resource principal named http://analysis.windows.net/powerbi/api/ not found

Hi,

 

I have probably missed something when trying to get my acccess token. It is a server side application and I would like to use a service principal.

I tried to follow the example here, it seems easy https://community.powerbi.com/t5/Developer/How-To-Get-embed-token-using-Get-Post-only/m-p/294475#M86... and if I construct a curl command out of it it I get my resource principal error.

curl -v -X POST --url 'https://login.microsoftonline.com/common/oauth2/token' -H "Content-Type:application/x-from-urlencoded" -d 'grant_type=password&scope=openid&client_id=[client id]&client_secret=[client secret]&resource=https%3A%2F%2Fanalysis.windows.net%2Fpowerbi%2Fapi%2F&username=[ pbi user]&password=[password]'

The answer from the server is cryptic to me.

{"error":"invalid_resource","error_description":"AADSTS500011: The resource principal named https://analysis.windows.net/powerbi/api/ was not found in the tenant named [tenante name]. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.\r\nTrace ID: 111949e2-4379-42e0-a703-7bed59b82800\r\nCorrelation ID: 689604f3-573c-4329-8a88-5957e1a39397\r\nTimestamp: 2020-09-02 14:09:29Z","error_codes":[500011],"timestamp":"2020-09-02 14:09:29Z","trace_id":"111949e2-4379-42e0-a703-7bed59b82800","correlation_id":"689604f3-573c-4329-8a88-5957e1a39397","error_uri":"https://login.microsoftonline.com/error?code=500011"}

 

What can be wrong and how can it be corrected?

1 ACCEPTED SOLUTION
___Johan___
Frequent Visitor

It was a simple misstake. I had a '/' too much at the end in http://analysis.windows.net/powerbi/api/.

 

 

View solution in original post

2 REPLIES 2
Maarnu
New Member

I ran into this problem when trying to connect Project for the Web to Power BI via the Github Template. And it was a similar 'simple' mistake. I forgot to put https:// in front of the Common Data Service/Dataverse URL.

___Johan___
Frequent Visitor

It was a simple misstake. I had a '/' too much at the end in http://analysis.windows.net/powerbi/api/.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.