gpt4 book ai didi

azure - 使用 azure devops 的 ADF 部署是否会影响环境中的现有管道/作业

转载 作者:行者123 更新时间:2023-12-02 23:03:17 26 4
gpt4 key购买 nike

我正在 Azure 数据工厂中实现 azure devOps。

我的开发环境 ADF 已集成到 git 存储库。

我创建了一个构建管道,用于在 adf_publish 分支发生更改时构建工件。

我的下一步是将 ARM 模板工件部署到 PROD 环境。

假设当 DEV 更改部署到 PROD 时,PROD 环境中有许多触发的管道,而 PROD 环境中运行的管道很少。

我的问题是:

  1. 如何将变更从 DevOps 部署到 PROD 环境?它会删除并替换 DevOps 中的所有管道和触发器,还是只会选择更改并更新 PROD 环境,而不触及未更改的管道?
  2. 假设部署时管道正在 PROD env 中运行,该管道运行会发生什么情况?
  3. 假设有一个在 3:00 触发的管道,部署于 2:55 开始并于 3:05 结束。原定在 3:00 运行的触发管道会发生什么情况?

有没有人对以上问题有清楚的了解或者有没有任何文档可以引用来获得这些问题的答案?

我在 ARM 模板部署时经历了将部署模式保持为增量而不是保持为完整。该选项可以完成我上面要求的所有任务吗?

最佳答案

How the changes are deployed from DevOps to PROD environment? Will it delete and replace all the pipelines and triggers from DevOps or It will pick only the changes and update the PROD env without touching the unchanged pipelines?

这取决于您选择的部署模式。

enter image description here

  • Deployment Mode: This specifies the deployment mode in which the Azure resources specified in the template have to be deployed.
    Incremental mode handles deployments as incremental updates to the
    resource group .
    It leaves unchanged resources that exist in the
    resource group but are not specified in the template. Complete mode
    deletes resources that are not in your template.
    Validate mode
    enables you to find syntactical problems with the template before
    creating actual resources. By default, incremental mode is used.

Suppose a pipeline is running in PROD env at the time of deployment,what will happen to that pipeline run?

您的部署将失败,并且您可能会收到 409 冲突错误消息。你可以查看文档Best practices for CI/CD :

Pre- and post-deployment script. Before the Resource Managerdeployment step in CI/CD, you need to complete certain tasks, likestopping and restarting triggers and performing cleanup. We recommendthat you use PowerShell scripts before and after the deployment task.For more information, see Update active triggers. The data factoryteam has provided a script to use located at the bottom of this page.

Suppose there is a triggered pipeline at 3:00 O clock and deploymentstarts at 2:55 and ends at 3:05. What will happen to that triggeredpipeline which was supposed to run at 3:00?

与您的第二个问题类似,管道不应被触发(或处于待处理状态),但我仍然没有实例来测试这种情况。

关于azure - 使用 azure devops 的 ADF 部署是否会影响环境中的现有管道/作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64531318/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com