microsoft / microsoft/vscode-azureresourcegroups
Showing Azure Resources in VSCode is very slow
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 78
- Forks
- 55
- Avg merge
- 16h 49m
- Merged PRs (30d)
- 139
Description
There is some problem with showing Azure Resources in VSCode such that it is very slow. The progress indicator at the top of the Resources panel continues animating basically forever and never finishes loading. The Pay-As-You-Go node is shown, and if I click on a sub-node, like Azure Cosmos DB, then the sub-resources are shown, but this can sometimes take 30 seconds or more to show.
I don't know if it is related, but I did notice in the VSCode Output panel for Microsoft Authentication, that authentication log messages repeat continuously. By showing the Debug log level I can see that this happens because of refreshing the token. I don't know if this is intended, but since it happens ever second or so it seems excessive. Below is a example of the logs I'm seeing:
2025-11-18 11:49:42.719 [debug] [Tue, 18 Nov 2025 02:49:42 GMT] : [3ed36095-16ff-40af-a8ed-504a5b00e604] : @azure/msal-node@3.8.0 : Info - Building oauth client configuration with the following authority: https://login.microsoftonline.com/organizations/oauth2/v2.0/token.
2025-11-18 11:49:42.719 [debug] [Tue, 18 Nov 2025 02:49:42 GMT] : [aebc6443-996d-45c2-90f0-388ff96faa56] : @azure/msal-node@3.8.0 : Info - Overwriting in-memory cache with persistent cache
2025-11-18 11:49:42.724 [debug] [Tue, 18 Nov 2025 02:49:42 GMT] : [3ed36095-16ff-40af-a8ed-504a5b00e604] : @azure/msal-common@15.13.0 : Info - CacheManager:getAccessToken - Returning access token
2025-11-18 11:49:42.725 [debug] [Tue, 18 Nov 2025 02:49:42 GMT] : [3ed36095-16ff-40af-a8ed-504a5b00e604] : @azure/msal-common@15.13.0 : Info - Token refresh is required due to cache outcome: 3
2025-11-18 11:49:42.725 [debug] [Tue, 18 Nov 2025 02:49:42 GMT] : [aebc6443-996d-45c2-90f0-388ff96faa56] : @azure/msal-common@15.13.0 : Info - CacheManager:getRefreshToken - returning refresh token
2025-11-18 11:49:43.153 [debug] [acquireTokenSilent] [aebc6443-996d-45c2-90f0-388ff96faa56] [https://login.microsoftonline.com/organizations] [499b84ac-1321-427f-aa17-267ca6975798/.default offline_access] [<REDACTED>] got result
2025-11-18 11:49:43.153 [debug] [acquireTokenSilent] [aebc6443-996d-45c2-90f0-388ff96faa56] [https://login.microsoftonline.com/organizations] [499b84ac-1321-427f-aa17-267ca6975798/.default offline_access] [<REDACTED>] firing event due to change
The reason I think the Resources being slow may be related to authentication is because if I sign out of Microsoft and then sign back in then the Resources view quickly loads completely (without the progress animation continuing forever), and when I expand the sub-nodes the expand almost instantly without delayed loading. Similarly, the forever-repeating authentication log messages have stopped. The problem is that this problem returns later. I don't know what causes it to start happening again, it just does after a while.
If there is anything more I can do to help diagnose this, please let me know.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the slow Azure Resources view and compare behavior before and after signing out and back in. Inspect the Resources panel behavior alongside the Microsoft Authentication output, especially the repeated token-refresh messages. Done means resource and sub-resource loading completes normally without persistent progress or excessive repeated authentication refreshes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, typescript, vscode
- Domain
- cloud, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100