I have created a build pipeline in Azure DevOps to build a .NET 8.0 application. The code resides in my Azure DevOps repository. I have selecteed the .NET Core template in classic editor to build the pipeline. My Pipeline stops at the 'Restore' task with an error :
error NU1301: Unable to load the service index for source
https://pkgs.dev.azure.com/myprojectname/_packaging/1199d650-e459-4ff6-85b8-91354ce28542/nuget/v3/index.json.
I have created an artifact feed in Azure DevOps which has all necessary NuGet packages installed. The build agent is a Microsoft hosted agent (windows OS) that tries to hit the URL and gets the error.
Can anyone help me fix this? Thank you
Tried adding other NuGet tasks like NuGet authentication, tool installer and NuGet restore but still facing the same error.

