Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

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:


Guides followed:


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,391)