microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.05k stars 28.8k forks source link

Not able to connect to Azure account from VS Code #228105

Open GnyanendraPRay opened 3 weeks ago

GnyanendraPRay commented 3 weeks ago

2024-09-10_8-30-43 Type: Bug

I have the latest Visual Studio Code version, I need to connect to Azure to publish my changes which is an Azure function developed 2 months ago. I had no issues connecting to Azure from VS code. Since last month I am facing problem when I try to authenticate my Azure to Visual Studio Code, it keeps doing nothing after my logging is completed.

Azure: Sign out from the command palette. Not able to connect. Restart PC: Not able to connect. Use different browsers to start the session. Not able to connect. Start visual studio code in admin mode. Not able to connect. Check the latest version. It's the latest version.

It throws "Network Failure" error at the end. FYI, our org has implemented MFA, but authentication doesn't ask MFA token.

This is the below VS code version Version: 1.93.0 (user setup) Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:02:38.431Z Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.19045

I am using the lates Azure Resources and Azure Account extension.

VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (16 x 2496)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.73GB (11.33GB free)| |Process Argv|--crash-reporter-id bd9846fe-fc50-4039-84a4-4c14e1a908b7| |Screen Reader|no| |VM|0%|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- network-proxy-test|chr|0.0.12 remotehub|Git|0.64.0 azure-dev|ms-|0.8.3 vscode-azureappservice|ms-|0.25.3 vscode-azurecontainerapps|ms-|0.7.1 vscode-azurefunctions|ms-|1.15.3 vscode-azureresourcegroups|ms-|0.9.4 vscode-azurestaticwebapps|ms-|0.12.2 vscode-azurestorage|ms-|0.16.1 vscode-cosmosdb|ms-|0.22.0 azure-repos|ms-|0.40.0 remote-repositories|ms-|0.42.0 vscode-node-azure-pack|ms-|1.2.0 vscode-yaml|red|1.15.0 ms-teams-vscode-extension|Tea|5.8.1
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 724cj586:31013169 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flightc:31119335 wkspc-onlycs-t:31132770 wkspc-ranged-t:31125599 ei213698:31121563 ```
GnyanendraPRay commented 2 weeks ago

FYI @TylerLeonhardt - VSCode authentication with MFA works fine with other techs in our organization. We tried to compare side by side, but don't see much difference.

chrmarti commented 2 weeks ago

@GnyanendraPRay Are you behind a network proxy? Could you install the Network Proxy Test extension (https://marketplace.visualstudio.com/items?itemName=chrmarti.network-proxy-test) and check the output of F1 > Network Proxy Test: Test Connection in VS Code?

If you cannot install the extension through the Extensions viewlet in VS Code, you can use the Download Extension link on the above linked page and then install the downloaded VSIX with F1 > Extensions: Install VSIX....

GnyanendraPRay commented 2 weeks ago

@chrmarti - below is the result

VS Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3) Network Proxy Test 0.0.12 win32 10.0.19045 x64

Settings:

Environment variables:

Sending GET request to https://login.microsoftonline.com/organizations/oauth2/v2.0/token... vscode-proxy-agent: DIRECT Received response:

chrmarti commented 2 weeks ago

Proxy support is off. If you are behind a proxy try setting it to override in the user settings: Image

GnyanendraPRay commented 2 weeks ago

still no success

2024-09-18_8-39-39

GnyanendraPRay commented 11 hours ago

Hello @chrmarti -

Am I missing something or wrong in some configuration?