Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KQL Connection throws error when rerunning connetc command #2731

Closed
dgorti opened this issue Feb 14, 2023 · 0 comments · Fixed by #2745
Closed

KQL Connection throws error when rerunning connetc command #2731

dgorti opened this issue Feb 14, 2023 · 0 comments · Fixed by #2745

Comments

@dgorti
Copy link

dgorti commented Feb 14, 2023

When you have the magic connect command to connect to Kusto and you have connected to a kusto cluster/db.
You rerun the connect command. It throws an exception
Error: System.ArgumentException: Alias '#!kql-Prod' is already in use.

I understand the exception. There are 2 issues.
a). After you leave the notebook idle for some time, and come back, the underlying connection to kusto is dropped it look like.
There is no way to "rerun" this connect command. It thinks the alias exists and refuses to connect again. Th e only way to recover is to close and reopen the notebook.
b) RunAll after making changes elsewhere also gets into this exception.

ASK:
If the alias already exists - close the underlying connection, replace the alias
or may be have an option to the connect command to change the default behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants