Skip to content

Commit e39a9ec

Browse files
authored
Fix "az login" when user doesn't have a subscription (#400)
1 parent 7633281 commit e39a9ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/databricks-vscode/src/configuration/AzureCliCheck.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ export class AzureCliCheck implements Disposable {
254254
const useDeviceCode = this.isCodeSpaces ? "--use-device-code" : "";
255255

256256
terminal.sendText(
257-
`${this.azBinPath} login ${useDeviceCode} ${
257+
`${
258+
this.azBinPath
259+
} login --allow-no-subscriptions ${useDeviceCode} ${
258260
tenant ? "-t " + tenant : ""
259261
}; echo "Press any key to close the terminal and continue ..."; read; exit`
260262
);

0 commit comments

Comments
 (0)