An Azure service that provides an integrated environment for bot development.
AADSTS700016: Application with identifier 'fefd4924-a8bc-44d8-9d9c-xxxxxxxx' was not found in the directory 'Bot Framework'. You may have sent your authentication request to the wrong tenant.
This typically occurs when the Azure Bot resource is not properly linked to the App Registration in your own tenant, and the token request is falling back to the default Bot Framework tenant instead.
This error happens because the bot’s AppId is not correctly resolved within your tenant, causing it to try authenticating against the Bot Framework tenant instead. Double-check your App Registration, Bot resource configuration, and App Service environment variables to ensure all IDs and secrets align with your tenant.
For reference: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=userassigned%2Caadv2%2Ccsharp https://learn.microsoft.com/en-us/azure/bot-service/bot-service-manage-overview?view=azure-bot-service-4.0&tabs=userassigned
Threads with similar issue and resolved: https://learn.microsoft.com/en-us/answers/questions/5491634/aadsts700016-application-with-identifier-x-was-not https://learn.microsoft.com/en-us/answers/questions/2046326/aadsts700016-application-with-identifier-(id)-was
https://stackoverflow.com/questions/57324634/aadsts700016-application-with-identifier-some-id-was-not-found-in-the-directo
Do let me know if you have any further queries.
Thank you!