title: Trying to clone Azure pipeline but getting "references service connection ... not found" error
body: <p>I want to clone an Azure pipeline that builds from a Git repo.  Following the instructions here -- <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started/clone-import-pipeline?view=azure-devops&amp;tabs=classic#clone-a-pipeline" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/get-started/clone-import-pipeline?view=azure-devops&amp;tabs=classic#clone-a-pipeline</a> , I clicked &quot;Clone&quot; when clicking &quot;Edit&quot; on the pipeline ...</p>
  <p><a href="https://i.stack.imgur.com/eY2q3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eY2q3.png" alt="enter image description here" /></a></p>
  <p>and then on the following screen changed the branch from where the repository builds and clicked &quot;Save&quot;.  After entering my comment and saving, I got this error ...</p>
  <pre><code>The pipeline is not valid. Job Job_2: Step input connectedServiceNameARM references service connection 2b45...959e8d3d which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz. Job Job_1: Step input connectedServiceNameARM references service connection 2b45...959e8d3d which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
  </code></pre>
  <p>I &quot;think&quot; the error message is referring to the &quot;Agent Job&quot; part of the pipeline, which looks like the below</p>
  <p><a href="https://i.stack.imgur.com/7nmjx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7nmjx.png" alt="enter image description here" /></a></p>
  <p>I'm clueless about what the error message is referring to and am curious about if there is a way to clone my pipeline.</p>
  <p><b>Edit:</b> In response to the answer given, turns out I don't have any service connections defined in my project at all.  When I click on the &quot;service connections&quot; link in the project settings, all I see is this ...</p>
  <p><a href="https://i.stack.imgur.com/a6Y9D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a6Y9D.png" alt="enter image description here" /></a></p>