Kevin
Kevin

Reputation: 463

Azure Devops - Pipeline does not have permissions to use the referenced service connection

In my yaml pipeline I get the following error when I try to deploy to an App Service using a Service Connection.

##[error]Pipeline does not have permissions to use the referenced service connection(s) MyServiceConnectionName. For authorization details, refer to https://aka.ms/yamlauthz.

In the past when I got similar auth errors (during initial pipeline setup), there was a button to authorize the pipeline to use the Service Connection. This button seems to have been removed.

Upvotes: 5

Views: 8736

Answers (1)

Kevin
Kevin

Reputation: 463

Pipeline permission to a Service Connection can now be configured through the using the service connection security page. https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml#secure-a-service-connection

enter image description here

Upvotes: 5

Related Questions