dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.89k stars 387 forks source link

!connect kql does not work #2992

Open dgorti opened 1 year ago

dgorti commented 1 year ago

I am trying to connect to kusto and it throws an error about !connect

r "nuget:Microsoft.Dotnet.Interactive.Kql,,-"

r "nuget:Microsoft.Data.Analysis,-"

r "nuget:Microsoft.AspNetCore.Html.Abstractions,-"

!connect kql --kernel-name IntuneProd --cluster "..." --database "..."

Error: Required command was not provided. Unrecognized command or argument 'kql'. Unrecognized command or argument '--kernel-name'. Unrecognized command or argument 'IntuneProd'. Unrecognized command or argument '--cluster'. Unrecognized command or argument 'https://intune.kusto.windows.net'. Unrecognized command or argument '--database'. Unrecognized command or argument 'Intune'.

This notebook used to work. Nor sure what I am doing wrong here

jasonmcboyd commented 1 year ago

Could it be the second comma in #r "nuget:Microsoft.Dotnet.Interactive.Kql,,-"?

ftereso commented 1 year ago

The problem is the nugget statement. Since the code is not interpreted
try instead (csharp)

#r "nuget:Microsoft.DotNet.Interactive.Kql,*-*"
colombod commented 1 year ago

did @ftereso suggestion address you scenario?

shyamnamboodiripad commented 1 year ago

This seems like the same underlying problem as #3005