gpt4 book ai didi

azure-pipelines - 为什么 Azure Pipelines 说 "The environment does not exist or has not been authorized for use"?

转载 作者:行者123 更新时间:2023-12-05 03:36:49 28 4
gpt4 key购买 nike

在 Azure Pipelines YAML 中,您可以指定作业运行的环境。

  jobs:
- deployment: Deploy
displayName: Deploy
environment: $(environment)

将新值传递给管道应该会自动在 DevOps 中创建环境。

Automatically created environment

但是,我最近在尝试部署到新环境时遇到此错误:

Job Deploy: Environment [environment-name] could not be found. The environment does not exist or has not been authorized for use.

我手动创建环境后,管道部署成功。

是否有任何配置或我遗漏的东西允许自动创建环境?

最佳答案

我有同样的问题,根据文档,不可能以这种方式创建环境。

If you are using runtime parameters for creating the environment, it will fail as these parameters are expanded at run time. Environment creation happens at compile time, so we have to use variables to create the environment.

更多信息请查看here .

关于azure-pipelines - 为什么 Azure Pipelines 说 "The environment does not exist or has not been authorized for use"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69546506/

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