Skip to content

## Azure Resources extension fails to load subscriptions for Azure China Cloud (世纪互联) #1425

@zsj8937

Description

@zsj8937

Environment

  • OS: macOS (ARM64), tested on multiple Macs
  • VS Code: latest stable
  • Azure Resources Extension: latest
  • microsoft-sovereign-cloud.environment: "ChinaCloud"
  • microsoft-authentication.implementation: tested both "msal" and "msal-no-broker", same result

What works

  • Azure CLI (az login) signs in to China Cloud successfully
  • VS Code Accounts panel shows the account as signed in (via Microsoft Sovereign Cloud provider)
  • Azure Global Cloud works perfectly with the same VS Code/extension version

What doesn't work

  • Azure Resources sidebar panel does not load any subscriptions for China Cloud
  • Clicking the refresh button completes in ~1 second with no loading indicator
  • Developer Tools Network tab shows NO requests (compared to Azure Global which shows a 200 response)
  • Azure Resources Output channel is completely empty (no logs at all)
  • Console shows: User did not consent to login (even though the consent prompt was clicked "Allow")
    If you have a Mac and an Azure China Subscription you shall repro this, and find 'Azure Resources' latest extension not functioning/loading resources at all.

Steps to reproduce

  1. Set "microsoft-sovereign-cloud.environment": "ChinaCloud" in settings.json
  2. Sign in to Azure China Cloud via Azure Resources panel
  3. Browser authentication completes successfully
  4. Click "Allow" on the VS Code consent notification
  5. VS Code Accounts shows the account as signed in
  6. Azure Resources panel remains empty, refresh produces no network/output activity

Key observation

The extension appears to short-circuit before making any ARM API calls.
No network requests, no output logs - it exits the refresh flow immediately.

This is reproducible across multiple Macs and multiple Azure China Cloud tenants.

Related

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions