microsoft / vscode-azureresourcegroups

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

Prompt users to sign in to a directory #756

Closed alexweininger closed 11 months ago

alexweininger commented 11 months ago

Sometimes users might be signed in, but all their subscriptions exist under a tenant that isn't authenticated yet. In this case, they need to use the Sign In to Directory command.

This change makes it so that if these conditions are both true: A. User has no subscriptions under the currently authenticated tenants B. User has unauthenticated tenants

Then we show the "Sign In to Directory..." command in the tree instead of the "Select subscriptions..." command.