Member-only story
How to Resolve the Error: “Service Connection Could Not Be Found” in Azure DevOps YAML Pipeline
When working with Azure DevOps pipelines, it’s common to reference service connections to connect your pipeline with external services like Azure. However, errors can arise if the pipeline is unable to locate or access these service connections. The specific error you mentioned reads:
Job Job: Step input azureResourceManagerConnection references service connection <your-azure-connection-name> which could not be found. The service connection does not exist, has been disabled or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
Job Job: Step input azureSubscription references service connection <your-azure-connection-name> which could not be found. The service connection does not exist, has been disabled or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz.
This error indicates that there is an issue with the service connection referenced in the YAML pipeline, either because the connection is missing, disabled, or lacking proper authorization. Let’s break down how to troubleshoot and resolve this issue step by step.