gpt4 book ai didi

azure-devops - Azure DevOps Services\Server 中部署组和环境之间的差异

转载 作者:行者123 更新时间:2023-12-04 04:16:47 24 4
gpt4 key购买 nike

在 Azure Pipelines 中,我们将部署组和环境作为单独的选项,但它们是否都不想将属于环境的服务器列表添加为一个组。
对此的澄清将不胜感激。

最佳答案

Difference between Deployment Groups and Environments in Azure DevOps Services\Server



简单来说, deployment groups就是它:

A deployment group is a logical set of deployment target machines that have agents installed on each one. Deployment groups represent the physical environments; for example, "Dev", "Test", "UAT", and "Production". In effect, a deployment group is just another grouping of agents, much like an agent pool.



environment就是它:

Environment represents a collection of resources such as namespaces within Kubernetes clusters, Azure Web Apps, virtual machines, databases, which can be targeted by deployments from a pipeline.



个人意见:

它们在实际部署中具有相同的理论。但是, 因为 YAML 尚不支持部署组作业。 在这种情况下,环境出现了。正如您可以从文档中获得以下状态:

While environment at its core is a grouping of resources, the resources themselves represent actual deployment targets. The Kubernetes resource and virtual machine resource types are currently supported.



此外,环境具有一系列优势:
  • 部署历史
  • 提交和工作项的可追溯性
  • 诊断资源健康
  • 权限

  • 希望这可以帮助。

    关于azure-devops - Azure DevOps Services\Server 中部署组和环境之间的差异,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59756891/

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