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

Cannot activate the 'Azure Virtual Machines' extension because it depends on the 'Azure Account' extension, which is not loaded #257

Open
yelkarama opened this issue Feb 16, 2021 · 14 comments
Labels
bug Something isn't working
Milestone

Comments

@yelkarama
Copy link

After clickcing on Azure Icon in VSCode (WSL), I get this error:

Cannot activate the 'Azure Virtual Machines' extension because it depends on the 'Azure Account' extension, which is not loaded. Would you like to reload the window to load the extension?

All other tabs (App service, Functions, Resources Groups, Storage and Databases) show Azure resources as expected.

This error does not occur when using VSCode locally (without WSL).

Here is the detailled error message from the Developer Tools Window:

workbench.desktop.main.js:60 [Extension Host] Error: Get Token request returned http error: 400 and server response: {"error":"interaction_required","error_description":"AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '797f4846-ba00-4fd7-ba43-dac1f8f63013'.\r\nTrace ID: 05e18b24-d83e-4d1b-98e9-40bdfaec3d00\r\nCorrelation ID: e6d7718b-a2df-4490-9807-11f00ffc1da7\r\nTimestamp: 2021-02-16 00:27:44Z","error_codes":[50076],"timestamp":"2021-02-16 00:27:44Z","trace_id":"05e18b24-d83e-4d1b-98e9-40bdfaec3d00","correlation_id":"e6d7718b-a2df-4490-9807-11f00ffc1da7","error_uri":"https://login.microsoftonline.com/error?code=50076","suberror":"basic_action"} at s.createError (/home/younes/.vscode-server-insiders/extensions/ms-vscode.azure-account-0.9.6/dist/extension.js:16:58035) at B._callback (/home/younes/.vscode-server-insiders/extensions/ms-vscode.azure-account-0.9.6/dist/extension.js:16:228419) at B.t._callback.t.callback.t.callback (/home/younes/.vscode-server-insiders/extensions/ms-vscode.azure-account-0.9.6/dist/extension.js:202:5500) at B.emit (events.js:315:20) at B.EventEmitter.emit (domain.js:483:12) at B.<anonymous> (/home/younes/.vscode-server-insiders/extensions/ms-vscode.azure-account-0.9.6/dist/extension.js:202:18360) at B.emit (events.js:315:20) at B.EventEmitter.emit (domain.js:483:12) at IncomingMessage.<anonymous> (/home/younes/.vscode-server-insiders/extensions/ms-vscode.azure-account-0.9.6/dist/extension.js:202:17192) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) at IncomingMessage.EventEmitter.emit (domain.js:483:12) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) b @ workbench.desktop.main.js:60

@fle108
Copy link

fle108 commented Mar 5, 2021

same problem here. only with wsl

@neggles
Copy link

neggles commented Mar 19, 2021

Seeing this issue as well; the error points to something MFA-related, but I did sign in using MFA & it only seems to be VMs that are affected.

@garymm
Copy link

garymm commented Apr 16, 2021

The extension works on local workspaces but I see this same error message on a remote (SSH) workspace. Perhaps because the Azure Virtual Machines extension runs locally, while the Account extension runs on the remote host?

@nturinski nturinski transferred this issue from microsoft/vscode-azure-account Jun 16, 2021
@phalouvas
Copy link

same here

@nturinski nturinski added this to the 0.5.0 milestone Jul 21, 2021
@mtayler
Copy link

mtayler commented Jul 28, 2021

Also seeing in a Remote-SSH Linux (Ubuntu 18.04) environment with Azure Account v0.9.8 and Azure Virtual Machines v0.4.0

@ecm200
Copy link

ecm200 commented Aug 12, 2021

I am also encountering this issue when running on a remote development session

@nturinski nturinski added bug Something isn't working and removed investigate🔍 labels Sep 1, 2021
@fle108
Copy link

fle108 commented Sep 17, 2021

any update ? it seems to work with MFA disabled, however not an option for me : \

@snymanpaul
Copy link

Same here

@mszcool
Copy link

mszcool commented Dec 21, 2021

I have the same issue, but only with the Azure VM Extension in a remote WSL 2 target. Targeting the Windows host, it works fine. All other extensions do not have that problem and work in both, the host and remote WSL 2 target.

@phalouvas
Copy link

same here

@ebc-conscia
Copy link

Same experience. All other extensions work without issue. WSL 2 on latest Windows 10 and latest version of VSCode. Tried downgrading the extension and tried different combinations with Azure account extension version, but it did not resolve the issue, which seems to be with the Azure Virtual Machines extension.

@kirsie
Copy link

kirsie commented Mar 29, 2022

Same here, please fix :(

@willwur
Copy link

willwur commented Mar 29, 2022

Same problem

@sepsol
Copy link

sepsol commented Apr 20, 2022

Same here. I think the reason is that the Azure Virtual Machines extension depends on Azure Account extension but for some reason the first one only gets installed locally and the latter gets installed on WSL. Since most of the other Azure extensions are on WSL, it'd be great if Azure Virtual Machines extension could also be installed there for it to 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