添加 Azure 部署管道中暂存槽的启动和停止任务。

huangapple go评论59阅读模式
英文:

Add start and stop task for staging slot in Azure deployment pipelines

问题

  • 将任务添加到所有部署流水线,首先启动暂存槽
  • 将任务添加到所有部署流水线,在槽交换成功后停止暂存槽

尝试了这个解决方案(https://stackoverflow.com/questions/69721848/stop-deployment-slot-after-x-time-azure-yaml-pipelines),但它没有选择正确的槽。是否有其他解决方案来解决这个问题?

英文:
  • Add a task to all the deployment pipelines to first start the staging slot
  • Add task to all the deployment pipelines to stop the staging slot after the slot swap is successful

Tried this solution. ( https://stackoverflow.com/questions/69721848/stop-deployment-slot-after-x-time-azure-yaml-pipelines ) but it's not picking up right slot.
Any other solution for this problem?

答案1

得分: 1

以下是翻译好的部分:

在所有部署流水线中添加一个任务,首先启动暂存槽

Azure DevOps 中,打开你的项目并导航到你的流水线。

  • 在你的 流水线 中,点击编辑。

  • 右侧面板 中,在 任务 选项下选择 Azure App Service 管理

  • 提供 订阅 并授权。

  • 指定 操作启动应用服务 并选择你的应用服务。

  • 选择指定槽选项。

  • 选择槽位为部署。

  • 添加任务。

  • 添加任务到所有部署流水线,以在槽位切换成功后停止暂存槽

添加新任务,使用 停止应用服务

参考来源自 GitHub

英文:

> Add a task to all the deployment pipelines to first start the staging slot

In Azure Devops, open your Project and navigate to your pipeline.

  • In your Pipleline, click on Edit.

添加 Azure 部署管道中暂存槽的启动和停止任务。

  • In the Right pane, Under Tasks option select Azure App Service Manage.

添加 Azure 部署管道中暂存槽的启动和停止任务。

  • Provide the Subscription and Authorize.

  • Specify the Action as Start App Service and select your App Service.

  • Select the Specify Slot option.

  • Select the slot as Deployment.

添加 Azure 部署管道中暂存槽的启动和停止任务。

  • Add the task.

>- Add task to all the deployment pipelines to stop the staging slot after the slot swap is successful

  • Add new task with Stop App Service.

添加 Azure 部署管道中暂存槽的启动和停止任务。

References taken from GitHub

huangapple
  • 本文由 发表于 2023年2月6日 15:52:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/75358607.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定