-
Notifications
You must be signed in to change notification settings - Fork 9
Deployment
This article will walk you through the deployment process to deploy your bot to Azure.
- For C#, follow this doc to create a bot using the VSIX template.
- For JavaScript/TypeScript, follow this doc to create a bot using yeoman generator.
-
Navigate to https://portal.azure.com
-
Click on the green
+ Create a resourcesign -
Navigate to
Webcategory and create a newWeb App.
-
Fill all the fields - App name, Subscription, Resource Group, OS, Publish (Code), etc.

- On the Azure Portal, click on the green
+ Create a resourcesign - In the search bar type
Bot Channels Registationand create a new service.
- Fill in all the details, make sure to create a new Microsoft App Id and Password. Make sure to save the App Id and Password in your
.botor.envorappsettings.jsonfiles.

Create a git repository using your favourite git source control provider.
Now, you need to connect your git repository with Azure App Services. Follow this doc to setup Continuous Deployment for your bot. Note that it is recommended to build using App Service Kudu build server.
-
Navigate to the new Web App from
2. Azure - Create a new Web Appthat you created earlier. -
Click on
App Settingsand update all your app settings with your credentials. Note that if you're using.botfile then you will have to add/update thebotFilePathandbotFileSecret.
-
Navigate to your Bot Channels Registation service from
3. Azure - Create a new Bot Channels Registation Servicethat you created earlier. -
Click on
Settingsand update theMessaging endpointwithhttps://<your-web-app-name>.azurewebsites.net/api/messages.
Wait for a few seconds after a succesful deployment and optionally restart your Web App to clear any cache. Go back to your Bot Channels Registation service blade and test using the Web Chat provided in the Azure portal or using the emulator on your machine.