microsoft / vscode-azureresourcegroups

VS Code extension for managing Azure resources.
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups
MIT License
47 stars 29 forks source link

Azure resources show the wrong subscriptions #837

Closed johan-burman closed 2 months ago

johan-burman commented 2 months ago

Type: Bug

In my "Resources" tab, I can only see two subscriptions, both are associated with an account that I've signed out of everywhere that I can think of, and which are not in any way associated with the account that I signed on with in VS code.

In settings.json, I have a one subscription listed in azure.resourceFilter, which is not one of the two shown. azure.tenant is empty.

How can I get rid of those two subscriptions shown, and instead display a subscription associated with the account I'm signed is as?

Extension version: 0.8.4 VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:40:56.878Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-1245U (12 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| |Load (avg)|undefined| |Memory (System)|15.64GB (4.71GB free)| |Process Argv|--folder-uri file:///c%3A/Users/jburman/OneDrive%20-%20Capgemini/Documents/Repos/non-integration/sbstats --crash-reporter-id 6ce58c41-e047-470a-8d43-4f7291e28b8e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 g1icg217:30999571 9c06g630:31013171 ```
johan-burman commented 2 months ago

Clicking on the user icon in the sidebar showed a different account than the one shown in the status bar. When I used the Sign Out feature in the sidebar, I got the correct list of subscription under the Resources tab.