An Azure service that provides an integrated environment for bot development.
Hello Abhilash !
Thank you for posting on Microsoft Learn Q&A.
Your bot is configured as MultiTenant but the runtime is still acting SingleTenant typically because MicrosoftAppTenantId is set (or the authority is hard-coded to your home tenant). In that case the SDK requests a token that isn’t valid outside your tenant, so replies to the Bot Connector get a 401.
Your app settings should look like this:
MicrosoftAppType=MultiTenant
MicrosoftAppId=<your app id>
MicrosoftAppPassword=<your client secret>
# IMPORTANT for MultiTenant: DO NOT set MicrosoftAppTenantId
# Also do not override ChannelService / OAuth Authority for public Azure
Microsoft own guidance for a multitenant bot: leave MicrosoftAppTenantId blank. https://learn.microsoft.com/en-us/azure/bot-service/bot-service-quickstart-registration?view=azure-bot-service-4.0
Don’t force tokens from https://login.microsoftonline.com/<yourTenantId>/.... For bot-to-connector calls the SDK handles the correct authority and scopes (audience https://api.botframework.com).
https://moimhossain.com/2025/05/22/azure-bot-service-microsoft-teams-architecture-and-message-flow/