英文:
Azure DevOps Release pipeline Azure subscription field is disabled
问题
我正在尝试在我的Azure DevOps帐户中创建一个发布管道,以将我的网站部署到开发/测试/生产环境。我已经设置了服务连接,并且正常工作。当我创建管道并使用例如“部署Azure App Service”模板时,“Azure Subscription”任务选项被禁用,我无法选择已经配置的连接。
我知道一切都正常,因为我已经使用任务“AzureRMWebAppDeployment@4”在构建yaml管道中测试了连接,并且使用连接的部署过程成功。
是否有办法使这个选项变得可用,以便我可以在发布管道中使用它?
英文:
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.
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.
Is there a way the option become available so I can use it in a release pipeline?
答案1
得分: 1
在任务中启用 Azure 订阅,请导航至阶段部分,然后在参数选项中点击 "取消所有链接",如下图所示:
接下来,前往 Azure 应用服务部署任务,并确认 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:
Next, proceed to the Azure App Service Deploy task and verify that the Azure subscription is now enabled.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论