Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 2.49 KB

README.md

File metadata and controls

52 lines (32 loc) · 2.49 KB

Secure Bot

This scenario demonstrates how to secure a Microsoft Teams channel bot's web app using Azure Private Link and Azure Private Endpoint. It also shows how to enable communication between Teams client channels and the bot via an IP exposed through an Azure Firewall instance.

Architecture

architecture

Deployed resources

deployed resources

References

The python bot code examples referenced in this doc do not work. The configs and code are not up to date, there are missing variables.

Code pulled from the following example

Networking

Debugging

Firewall

Notes

  • Had to add a firewall rule (application rule) to allow login.botframework.com

  • A valid certificate and custom domain is required to deploy the bot. The bot is deployed to an Azure App Service and the custom domain is used to secure the bot with a valid certificate.

    # get a cert from letsencrypt
    certbot certonly --manual --preferred-challenges=dns -d <bot.foo.net>
    
    # convert cert to format for azure app service
    openssl pkcs12 -inkey privkey.pem -in cert.pem -export -out bot.pfx