azurebotframeworkmicrosoft-teamsteams-toolkit

Azure Bot Not Forwarding Messages From Teams Channel to Messages Endpoint


I have created a Teams Bot using bot framework and have deployed all the resources in the clients environment. The Web App running the Bot Framework SDK is working and Tested, but when trying to hit the bot through the Teams Channel Link (or through a Teams App) no responses is received and the Web App never logs a hit to the message route.

I have confirmed all the settings are the same in both the clients Bot configuration (and accompanying app registration) as is in our development environment. The Web App works correctly when using the Test in Web Chat provided in the Azure portal and works when testing using a Azure Bot deployed in our dev environment pointed at the Web App in the client's environment. Any tips on how to proceed and get messages flowing from the Teams channel?

I have noticed that there are errors logged in the client's Azure bot "The tenant admin has disabled this bot" that do not appear in our dev environment. I have looked at the logs in web-based Teams and get an 403 error with a response body containing a 209 error indicating "Write Blocked on this Thread". I am hoping someone here knows why this is occurring. I assume it may be an Entra configuration that is blocking the bot? Again, the Web App running the bot is working as expected the only issue is that Teams message will not go through the Bot service only in the Clients environment.


Solution

  • For anyone who comes across this, the issue was resolved by having a tenant admin create a new Azure Bot service and setup the Teams channel on their end. I'm not sure what was happening, but creating the resource from scratch fixed the error.