Teams App Publish Issue

Dhruv Agarwal 0 Reputation points
2024-05-07T06:25:53.6966667+00:00

I have created a Bot App and trying to make it live for my organisation, but facing issues:

  1. After successful publish and approval from Admin Panel, still the app is not visible in the Teams Store
  2. Also, I’m seeing an error “The tenant admin disabled this bot” in the bot-service, under Teams channel.

I have used VS Code tool kit to provision -> Deploy -> Publish.

Error in App Service:

 [onTurnError] unhandled error: ServerError: unauthorized_client: 700016 - 
[2024-05-07 09:21:13Z]: AADSTS700016: Application with identifier '************************' was not found in the directory 'Bot Framework'. 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. 
Trace ID: ********************** ServerError: unauthorized_client: 700016 - 
[2024-05-07 09:21:13Z]: AADSTS700016: Application with identifier '************************' was not found in the directory 'Bot Framework'. 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. 
Trace ID: ********************     at ServerError.AuthError [as constructor] (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:499:24)     at new ServerError (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:3407:28)     at ResponseHandler.validateTokenResponse (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:5442:19)     at ClientCredentialClient.<anonymous> (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:6803:41)     at step (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:79:23)     at Object.next (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:60:53)     at fulfilled (C:\home\site\wwwroot\node_modules\@azure\msal-common\dist\index.cjs.js:50:58)     at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {   errorCode: 'unauthorized_client',   errorMessage: "700016 - 
[2024-05-07 09:21:13Z]: AADSTS700016: Application with identifier '********************' was not found in the directory 'Bot Framework'. 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. 

I need some guidance to fix this

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,065 questions
{count} votes