Azure DevOps发布管道Azure订阅字段被禁用。

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

Azure DevOps Release pipeline Azure subscription field is disabled

问题

我正在尝试在我的Azure DevOps帐户中创建一个发布管道,以将我的网站部署到开发/测试/生产环境。我已经设置了服务连接,并且正常工作。当我创建管道并使用例如“部署Azure App Service”模板时,“Azure Subscription”任务选项被禁用,我无法选择已经配置的连接。

Azure DevOps发布管道Azure订阅字段被禁用。

我知道一切都正常,因为我已经使用任务“AzureRMWebAppDeployment@4”在构建yaml管道中测试了连接,并且使用连接的部署过程成功。

Azure DevOps发布管道Azure订阅字段被禁用。

是否有办法使这个选项变得可用,以便我可以在发布管道中使用它?

英文:

I'm trying to create a release pipeline in my Azure DevOps account to deploy my site to a dev/test/prod environment. I Already set up the service connection and is working ok. When I am creating the pipeline and use for example the "Deploy Azure App Service" template the task option for "Azure Subscription" is disabled and I can't select my already configured connection.

Azure DevOps发布管道Azure订阅字段被禁用。

I know everything is ok because I already tested the connection using a build yaml pipeline with the task "AzureRMWebAppDeployment@4" and the deploy process using the connection was successful.

Azure DevOps发布管道Azure订阅字段被禁用。

Is there a way the option become available so I can use it in a release pipeline?

答案1

得分: 1

在任务中启用 Azure 订阅,请导航至阶段部分,然后在参数选项中点击 "取消所有链接",如下图所示:
Azure DevOps发布管道Azure订阅字段被禁用。

Azure DevOps发布管道Azure订阅字段被禁用。

接下来,前往 Azure 应用服务部署任务,并确认 Azure 订阅现在已启用。

Azure DevOps发布管道Azure订阅字段被禁用。

英文:

To enable the Azure subscription in the tasks, navigate to the Stage section and click on "Unlink All" in the Parameters option as shown below:
Azure DevOps发布管道Azure订阅字段被禁用。

Azure DevOps发布管道Azure订阅字段被禁用。

Next, proceed to the Azure App Service Deploy task and verify that the Azure subscription is now enabled.

Azure DevOps发布管道Azure订阅字段被禁用。

huangapple
  • 本文由 发表于 2023年7月10日 11:37:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76650550.html
匿名

发表评论

匿名网友

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

确定