简体   繁体   中英

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.

  2. Now my colleague created new service connection (with service principal) with new name.

  3. I went to edit yaml in new branch. I gave new name for 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.

在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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