Share via

Issue with Azure BOT communication with Teams

Biswarup Dutta 0 Reputation points
2026-02-12T16:17:08.5+00:00

Hi Team,

Sharing following communication details about a Azure BOT, which is deployed in Teams. But there are some issues in communication, please help.

  1. Azure Bot created in Tenant A(TenantID REMOVED). APP Id of the BOT is TenantID REMOVED.
  2. Bot Type- Single Tenant (this is only supported by Azure now)
  3. Supported account types - Multiple organizations (app registration - Authentication - Settings), did this because of requirement of cross tenant communication.
  4. BOT channel - Teams
  5. BOT deployed in teams (in Tenant B - tenant id -[TenantID REMOVED]
  6. Admin consent granted on Tenant B using the url - [https://login.microsoftonline.com/ [TOKEN HIDDEN]/adminconsent?client_id=TOKEN HIDDEN]&redirect_uri=https://token.botframework.com/.auth/web/redirect](https://login.microsoftonline.com/86dd60b0-86b8-4604-be2a-6d607879e676/adminconsent?client_id=fc60af25-4922-4ab2-85b1-03810b7e6ea7&redirect_uri=https://token.botframework.com/.auth/web/redirect)
  7. In BOT code using new SDK (4.17.1)
  8. Getting Unauthorized error in turn_context.send_activity (received the message successfully in on_message_activity)
  9. Sharing the Teams-BOT-Teams communication log. Please help me in resolving the issue.Communication_Log_sample.txt
Azure AI Bot Service
Azure AI Bot Service

An Azure service that provides an integrated environment for bot development.

0 comments No comments
{count} votes

Answer recommended by moderator
  1. Biswarup Dutta 0 Reputation points
    2026-02-25T10:54:49.0366667+00:00

    Thanks **Nivedipa-MSFT...
    **The issues was fixed. This was because of wrong initialization of Adapter for cross tenant communication using new SDK (cloudAdapter), this has been fixed now.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Yevhen Marynchak 0 Reputation points
    2026-02-13T13:09:21.31+00:00

    Try enabling the Microsoft Teams channel in your Azure Bot Service and make sure its status shows healthy, confirm the bot’s messaging endpoint is correct and publicly reachable, check the app registration in Entra ID so the Microsoft App ID and secret or certificate are valid and admin consent is granted, verify the Teams app manifest contains the right botId and scopes, look at Bot Framework and Azure diagnostic logs and use the Bot Framework Emulator and the portal’s Open in Teams to reproduce errors, check for network, TLS or CORS issues that could block the endpoint, ensure the bot has the necessary roles and permissions in the target tenant, and if the problem continues gather request IDs, timestamps and example error messages and open a support case or post those details to Microsoft Q&A so the issue can be investigated.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.