Has anyone experience a 401 nuget error when runni...
# dotnet
f
Has anyone experience a 401 nuget error when running Pulumi on Azure Pipelines when your NuGet.config has an internal/private nuget source?
n
How did you fix this? Can't seem to be able to do a pulumi up, works fine in local with the creds manager. but when on pipeline it can't seem to be able to authenicate.
f
If you are using private feeds, make sure you do NuGet Authenticate.
Copy code
- task: NuGetAuthenticate@0
  displayName: 'Authenticate'
n
annoying still not work, thanks
f
would you share the error?
We were able to set this up on ADO.
Let me know how I can help!
n
used your example yaml and made sure build service has permission to access azure artifacts
f
you are doing that before the restore right?
do the restore right after that
Copy code
steps:          
      - task: NuGetAuthenticate@0
        displayName: 'Authenticate'
        
      - task: DotNetCoreCLI@2
        displayName: 'Restore'
        inputs:
          command: restore
          projects: ${{ parameters.pathToSolution }}
          feedsToUse: config
          nugetConfigPath: ${{ parameters.directory }}/NuGet.config
          workingDirectory: ${{ parameters.directory }}
          
      - task: DotNetCoreCLI@2
        displayName: 'Build'
        inputs:
          projects: ${{ parameters.pathToSolution }}
          arguments: '--configuration ${{ parameters.buildConfiguration }}'
          workingDirectory: ${{ parameters.directory }}