While executing Azure DevOps build pipeline - got the message: This pipeline needs permission to access resources before this continue

Viewed 3279

While executing the Azure DevOps Pipeline receive the Permission needed message

This pipeline needs permission to access a resource before this run can continue to ......

How do I resolve this?

2 Answers

I also went through the same issue. In my case, I have added the Service connection for deployment to Azure resources through yaml pipeline. We need to allow the pipeline permission for our yaml pipeline under Security section of the Service connection. After providing the permission for my yaml pipeline, while running the pipeline, it didn't ask me for the permission message - 'This pipeline needs permission to access resources before this continue'.

Reference Link - https://docs.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&tabs=yaml

Related