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

3 REPLIES 3
Robert94
Responsive Resident
Responsive Resident

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.

Hello, thanks for answering. Where did you set again login config, powerapps or app service?

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,940)