cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akandis
Responsive Resident
Responsive Resident

Error "AADSTS500011" while trying to create the connection to use a Custom Connector

Hi all,

 

I'm having a issue when I try to login to a custom connector.

 

Which components I use:

  • Azure Functions in Python
  • 1 App Registration to secure the Az Function
  • 1 App Registration to secure the Custom Connector using AAD
  • Custom connector to consume the Az Function.

 

Right now I can login if I browse the Azure Function URL. The login screen is presented and logged properly.

 

 

My problem come when I try to create the connection in the Power Apps portal. I click to create connection and the Popup to login is presented, and when login the following exception is presented.

 

Failure passed to redirect url. error=invalid_resource
error_description=AADSTS500011: The resource principal named
"AZ_FUNCTION:URL" was not found in the tenant
named TENANT_ID. 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. Trace ID:
RANDOM_GUID Correlation ID: RANDOM_GUID Timestamp: TIMESTAMP
error_uri=https://login.microsoftonline.com/error?code=500011

 

Guides followed:

https://docs.microsoft.com/en-us/connectors/custom-connectors/create-custom-connector-aad-protected-...

https://docs.microsoft.com/en-us/connectors/custom-connectors/azure-active-directory-authentication

 
1 ACCEPTED SOLUTION

Accepted Solutions
akandis
Responsive Resident
Responsive Resident

Hi @Robert94 

 

For me the way was set again the login configuration and this fix my issue. But also it can be related to a bad configuration of the App Registrations.

View solution in original post

2 REPLIES 2
Robert94
Post Patron
Post Patron

Hi, I have the same issue, how did you fix it?

akandis
Responsive Resident
Responsive Resident

Hi @Robert94 

 

For me the way was set again the login configuration and this fix my issue. But also it can be related to a bad configuration of the App Registrations.

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Top Solution Authors
Users online (2,746)