简体   繁体   English

Azure DevOps Pipeline 中如何编辑服务连接、授权和运行?

[英]How to edit service connection, authorize and run in Azure DevOps Pipeline?

  1. I have Azure DevOps pipeline where one of service principals got expired.我有 Azure DevOps 管道,其中一个服务主体已过期。

  2. Now my colleague created new service connection (with service principal) with new name.现在,我的同事使用新名称创建了新服务连接(使用服务主体)。

  3. I went to edit yaml in new branch.我去新分支编辑 yaml。 I gave new name for azureSubscription.我给 azureSubscription 起了新名字。

  4. Then "run"然后“跑”

  5. Got error "The service connection does not exist or has not been authorized for use"出现错误“服务连接不存在或未被授权使用”

  6. I press "Authorize resources" and getting successful message.我按“授权资源”并获得成功消息。

  7. "Run new" “运行新”

  8. Getting back to 5.point and never get pipeline executed correctly.回到 5.point 并且永远不会正确执行管道。

在此处输入图像描述

Make sure you use the correct service connection name.确保使用正确的服务连接名称。 You can also navigate and enable the box grant access to all pipelines on the service connection settings.您还可以导航并启用该框以授予对服务连接设置上所有管道的访问权限

在此处输入图像描述

If the problem is not resolved, I would follow the below steps:如果问题没有解决,我会按照以下步骤操作:

  • remove the service connection删除服务连接
  • Add it again重新添加
  • Logout登出
  • Login and run the pipeline登录并运行管道

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM