Describe the bug
VsCode credential is reading in the token value of 'Azure' account from the VSCode iDE cache. This value is never purged, so cannot be relied upon. This results in following issues:
- VSCode credential reads token even if no user logged in the IDE.
- VSCode credential reads in expired tokens, if the user hasn't logged in the VSCode IDE in weeks/months.
- Azure CLI can never be reached in DAC flow.

To Reproduce
- Login to VS Code IDE against public cloud.
- Logout of VSCode IDE.
- VsCode credential will continue to work.
- Let the token expire.
- VsCode credential will read expired token and break the DAC flow.
- Azure CLI is never reached in DAC credential.
Expected behavior
VSCode credential should throw Credential Unavailable Exception when no user logged into VS code IDE.
How to Fix
- Update Identity SDK VSCode Cred public cloud env mapping to AzureCloud from Azure.
- Use AzureCloud as default env instead of Azure in the Identity SDK code for VSCode credential.
Describe the bug
VsCode credential is reading in the token value of 'Azure' account from the VSCode iDE cache. This value is never purged, so cannot be relied upon. This results in following issues:
To Reproduce
Expected behavior
VSCode credential should throw Credential Unavailable Exception when no user logged into VS code IDE.
How to Fix