microsoft-teamsteams-toolkit

Does an MS Teams bot require an Azure AI Bot registration?


I am developing a notification bot for MS Teams (based on this tutorial). As in the tutorial, I used the Visual Studio Code "Teams Toolkit" to generate the base code for the application, and then modified the code according to my needs. I tested my app locally (using the Teams Toolkit debug function) and it works as intended. Now, I need to deploy the application somewhere. I know it can be hosted in Azure, which is what the linked tutorial suggests. My question is as follows:

If I decide not to host my app (bot) on Azure, do I still need to register my app with the Azure AI Bot service in order for it to work (i.e. still connect and send messages to Teams)? What I mean is the process described here.

Note: The first paragraph almost suggests I don't need to, but I have not found a single resource online that demonstrates setting up a Teams bot without at some point registering the bot on Azure as described.


I have tried looking at various documentation and sample apps to see if there is ever a time when a Teams bot was deployed without requiring an Azure AI Bot service registration. E.g. following the instructions in the README for this sample app (c.f. step 2 in the "Setup" section, asks for bot registration as I have linked): https://github.com/OfficeDev/Microsoft-Teams-Samples/blob/main/samples/bot-proactive-messaging/csharp/README.md


Solution

  • Currently, we don't have any way (Except Migration mode) for posting messages with application permissions. Only option to send a message to channel using Graph API would be using delegated permission.

    Please use Bot / Connectors to send messages.