Search code examples
botframeworkmicrosoft-teams

Self hosting microsoft bot for teams channels


I saw answers of this on microsoft but seems nothing is well documented around this so still not sure what permissions and services I need to use from Azure and how to do this

What I need is to create a microsoft bot in C# [for teams channels] and self host it on my OWN machines

I saw I'll need ngrok to expose its endpoint and use that on an Azure Bot service. But still, I don't know what exactly I do need and how to do so for a production environment.

Can someone please explain a step by step [like for a 5 years old boy] how can I deploy the bot on teams channels but have it self hosted?

Regards


Solution

  • Yes this is totally possible, just not super well documented. I've got an answer to a similar question at Host bot on-premise? Bot needs to communicate with another program, so please review that first. Basically, in simple terms though, you need a "registration" of your bot in Azure, but not necessarily to host it there. However, I'd be careful about hosting it locally when there are great cloud options that provide good failover and recovery, perhaps better than we might be able to offer.