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

[BUG] Can't connect to my workspace using Azure CLI method #1468

Open
mahmoth opened this issue Nov 22, 2024 · 2 comments
Open

[BUG] Can't connect to my workspace using Azure CLI method #1468

mahmoth opened this issue Nov 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mahmoth
Copy link

mahmoth commented Nov 22, 2024

Describe the bug
In order to create a new project, the first thing I'm asked to do is configuring my Databricks Workspace, step 2 of which is choosing an authentication method (see screenshot 1).
If I choose the "Azure CLI" method I get a popup saying Azure CLI is not installed (see screenshot 2).
But it is installed. I am able to use it both from a command window as well as the terminal within VS Code (see screenshot 3).
I have tried every combination of reinstalling/rebooting to no avail.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Databricks extension
  2. Click on 'Create a new Databricks Project'
  3. Fill in the prompt for your workspace URL,
  4. Choose the "Azure CLI" authentication method in the second prompt
  5. Enter a name for your connection profile in the third prompt
  6. See error

Screenshots
image
image
image

System information:

  1. Paste the output ot the Help: About command (CMD-Shift-P).

Version: 1.95.3 (system setup)
Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
Date: 2024-11-13T14:50:04.152Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631

  1. Databricks Extension Version: v2.4.8

Databricks Extension Logs

2024-11-21 21:07:49.595 [info] {
  logger: 'Extension',
  operationId: 'undefined',
  operationName: 'undefined',
  loggingFunction: 'undefined',
  timestamp: '11/21/2024, 9:07:49 PM',
  type: 'next',
  next: 'installCli',
  level: 'info',
  message: 'Auth check: findCli'
}
2024-11-21 21:14:56.704 [error] {
  logger: 'Extension',
  operationId: undefined,
  operationName: undefined,
  loggingFunction: undefined,
  timestamp: 1732220096703,
  error: {
    stack: 'Error: OrchestrationLoopError\n' +
      '\tat orchestrate (c:\\Users\\[redacted]\\.vscode\\extensions\\databricks.databricks-2.4.8-win32-x64\\out\\extension.js:108123:13)\n' +
      '\tat async AzureCliCheck.check (c:\\Users\\[redacted]\\.vscode\\extensions\\databricks.databricks-2.4.8-win32-x64\\out\\extension.js:108260:16)\n' +
      '\tat async AzureCliAuthProvider._check (c:\\Users\\[redacted]\\.vscode\\extensions\\databricks.databricks-2.4.8-win32-x64\\out\\extension.js:108856:20)\n' +
      '\tat async checkFn (c:\\Users\\[redacted]\\.vscode\\extensions\\databricks.databricks-2.4.8-win32-x64\\out\\extension.js:108575:22)',
    message: 'OrchestrationLoopError'
  },
  level: 'error',
  message: "Can't login using Azure CLI"
}

Additional context
Add any other context about the problem here.

@mahmoth mahmoth added the bug Something isn't working label Nov 22, 2024
@cicorias
Copy link

this repros on Linux as well. Essentailly the matching for the stdout doesn't handle the newer output of the az cli during login

@nilskk-t
Copy link

nilskk-t commented Dec 2, 2024

I have the same problem on Windows. I tried both 32 bit and 64bit Azure CLI and it does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants