5

I have a build pipeline already configured using a .yml file. I transferred the repository over to a different organization on GitHub, added all of the necessary Azure Pipelines integrations and permissions in GitHub, and added the service connection to Azure Devops.

Now, when I go to run my pipeline I get the error: Service connection {id} not found in the project {projectId}

This is true. I don't want it to use the old service connection. I want to tell Azure DevOps to use the new one. How do I change this?

The only workaround I can find is to create a new pipeline. Fortunately, this links right up with GitHub and I don't have to rewrite the yaml. Unfortunately, I'd have to plugin all the pipeline variables again.

1

3 Answers 3

0

You can click on Edit. The UI will give the notification that the connection is not available and only classic editor is available. The connection can be changed to a different one in the classic editor.

0

You can change out the service connections for your DevOps project by navigating to the Project Settings

enter image description here

and then selecting Service Connections

enter image description here

0

I am assuming this is also a new organization/project in Azure DevOps.

In that case, you will have to create that service connection in Azure DevOps.

If you do not want to edit the yaml, you will need to find the name of the service connection being used in the pipeline and create the service connection with that exact same name.

If you don't check the box to 'Grant access permission to all pipelines' when creating the service connection, then you will also get a pop-up on the first pipeline run to 'Authorize Resources' before the pipeline will actually run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.