azure - 如何在 azure devops 中交换插槽

标签 azure azure-devops azure-functions devops

我有两个插槽 Prod 和 PreProd。如何交换 azure devops 发布管道中的插槽? 第一个是成功后部署到预生产,然后将获得批准(如果获得批准),然后部署到生产。但我需要在 preprod 和 prod 之间交换插槽。

enter image description here

最佳答案

您需要定义两个步骤:

  • 部署到部署槽
  • 和交换槽

enter image description here

要部署到部署槽,您需要对其进行标记并提供槽名称:

enter image description here

接下来在交换步骤中定义操作,即交换插槽以及将交换哪个插槽:

enter image description here

请阅读此blog entry如果您要在 preprod 和 prod 环境之间进行交换。他不建议这种做法。我完全同意他的观点。

关于azure - 如何在 azure devops 中交换插槽,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62583607/

相关文章:

azure - Azure DevOps 需要哪些权限才能发布 NPM 包

Azure 逻辑应用请求触发器授权

powershell - Azure 自动化中的 ADAL : Type not loading intermittantly

Azure Pipelines - 将内部版本号应用到应用程序设置中

azure - 通过 Azure CLI 推送通用发布工件(az 工件通用发布)

java - 如何在 Azure DevOps 管道中安装 Java?

git - Azure cli 存储库导入失败,操作返回 400 状态代码

azure - 如何在不使用 Azure API Gateway 的情况下在 Azure 函数应用程序 Http 触发器中控制消费者在给定时间段内对 API 的使用(节流)

c# - Azure函数队列触发器

c# - Azure函数: How to manage Durable Functions with Blob Triggers?