question

SahaUpamanyu-8575 avatar image
0 Votes"
SahaUpamanyu-8575 asked MarileeTurscak-MSFT edited

Azure Active Directory Setting

I am using a bot in Multi-Tenant setting of Azure Active Directory. I want to switch to single-tenant setting for my client environment.
Each time I am switching the setting in authentication I am getting the following error:

Error: Get Token request returned http error: 400 and server response: {"error":"unauthorized_client","error_description":"AADSTS700016: Application with identifier 'Application Id' was not found in the directory 'botframework.com. 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 may have sent your authentication request to the wrong tenant.

azure-active-directoryazure-bot-service
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered MarileeTurscak-MSFT edited

The error typically means that you have the wrong Application ID/ClientID or Tenant ID in your code, and that it doesn't match what you have in your app registration. Please check that the app registration configuration in the portal matches what you have in the code.

You may need to also try the solution in this thread for receiving this error after creating a bot registration. (The user was able to resolve it by deleting the old client secret and creating a new one.)

This blog post also has some great troubleshooting steps for issues with the registration of a bot solution. As suggested in the blog, you can test with Postman if there are issues with the app ID, password, or app registration


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.