Forum Discussion

Sreenath_Kalarickal's avatar
Sreenath_Kalarickal
Copper Contributor
Apr 26, 2023

Failing to connect to ACR

I am trying to create pipeline for building docker image, pushing it to ACR and to publish that image to AKS.

I am using YAML pipelines for the same. 
I created the build pipeline in which the goal is to build docker image and push to ACR.
I building a image of dotnetapp which is created on dotnet 6.


I tried to use docker@2 task but, Because the azure devops account and azure portal account are different I am unable to create docker registry service connection. So I tried to use Docker@1 task but, when using that task, I am getting the following error.

C:\Program Files\dotnet\sdk\6.0.408\NuGet.targets(132,5): error : Access to the path 'C:\app\obj\app_dotnet.csproj.nuget.g.props' is denied

Is there any other way to make it happen.

Resources