Set up continuous deployment

APPLIES TO: SDK v4

This article describes how to configure continuous deployment for your bot. You can enable continuous deployment to automatically deploy code changes from your source repository to Azure.

This article covers setting up continuous deployment for GitHub. For information on setting up continuous deployment with other source control systems, see Additional resources.

Prerequisites

Prepare your repository

Make sure that your repository root has the correct files in your project. This will allow you to get automatic builds from the build provider.

Runtime Root directory files
ASP.NET Core .sln or .csproj
Node.js server.js, app.js, or package.json with a start script
Java pom.xml
Python app.py

Continuous deployment using GitHub

To enable continuous deployment with GitHub, navigate to the App Service page for your bot in the Azure portal.

  1. Select Deployment Center > GitHub > Authorize.

    Continuous deployment

    1. In the browser window that opens up, select Authorize AzureAppService.

      Azure GitHub permission

    2. After authorizing the AzureAppService, go back to Deployment Center in the Azure portal.

  2. Select Continue.

    Continue to build provider

  3. On the Build provider page, select the build provider you want to use and select Continue.

  4. On the Configure page, enter the required information and select Continue. The information required will depend on which source control service and build provider you chose.

  5. On the Summary page, review the settings and then select Finish.

At this point, continuous deployment with GitHub is set up. New commits in the selected repository and branch now deploy continuously into your App Service app. You can track the commits and deployments on the Deployment Center page.

Disable continuous deployment

While your bot is configured for continuous deployment, you may not use the online code editor to make changes to your bot. If you want to use the online code editor, you can temporarily disable continuous deployment.

To disable continuous deployment, do the following:

  1. In the Azure portal, go to your bot's All App Service settings blade and select Deployment Center.
  2. Select Disconnect to disable continuous deployment. To re-enable continuous deployment, repeat the steps from the appropriate sections above.

Additional resources