Setting up slots or multiple environments for Azure Bot Service

爱⌒轻易说出口 提交于 2019-12-04 16:12:57

You'll want to create separate bots, for each environment (i.e. one for Dev and one for Production).

The process to configure and work with a staging deployment looks generally like this:

  1. Create two bot apps in your subscription, one for the production code and one for staging.
  2. Create a deployment source, if you don't already have one. This example uses GitHub.
  3. For your production function app, complete the above steps in Set up continuous deployment and set the deployment branch to the master branch of your GitHub repo.
  4. Choose deployment branch
  5. Repeat this step for the staging function app, but choose the staging branch instead in your GitHub repo. If your deployment source doesn't support branching, use a different folder.
  6. Make updates to your code in the staging branch or folder, then verify that those changes are reflected in the staging deployment.
  7. After testing, merge changes from the staging branch into the master branch. This will trigger deployment to the production function app. If your deployment source doesn't support branches, overwrite the files in the production folder with the files from the staging folder.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!