How to consume a Nuget package in Azure Synapse notebooks (C#) from Azure DevOps NugetFeed

Samrudhi Madre 11 Reputation points
2021-06-08T07:46:34.31+00:00

We have created a dll in Visual Studio and published it to nuget feed in Azure Devops.
We are able to consume it in Visual Studio since it is in the same machine with the config file.
However we were unable to consume it in Synapse Spark C# notebooks. We tried the following commands to use it in our notebook but it gives us authentication error.

i URL to json path

r Nuget Name

error : Unable to load the service index for source "Json Path for Nuget Feed". [/tmp/nuget/5730--f405c3cb-1015-48fa-ac09-a29344c71270/Project.fsproj]
/usr/share/dotnet/sdk/3.1.409/NuGet.targets(128,5): error : Response status code does not indicate success: 401 (Unauthorized). [/tmp/nuget/5730--f405c3cb-1015-48fa-ac09-a29344c71270/Project.fsproj]</pre>

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,346 questions
{count} vote