Search code examples
azurebotframeworkngrok

Is there a way to connect Azure Bot Services to locally-hosted bot using Ngrok?


We are developing a Microsoft Bot Framework bot. Eventually this will be hosted on a site different from Azure but, as I understand it, the channel will pass through Azure to the remote host. I'd like to test this topology using a locally hosted bot and Ngrok.

I'm able to provide a public URL for the bot using Ngrok, of the form

http://ee384838.ngrok.io -> http://localhost:3000

and I'm also able to get a public URL for the Azure of the form

https://something.azurewebsites.net/api/messages

How do I configure the Azure bot services to direct the messages from the Azure URL to the Ngrok URL? I can't find anything on the many control panels in Azure Bot Services. I thought "Channels", but that doesn't seem to be it.

Thanks for any clues!


Solution

  • Go to your Azure Bot Service, under Bot management click on Settings you will find Messaging Endpoint under configuration

    enter image description here