MicrosoftDocs/azure-docs-powershell

Simpler way to switch between subscriptions than provided by documentation

Closed this issue · 1 comments

This page provides this method for changing between subscriptions:
$context = Get-AzSubscription -SubscriptionId ...
Set-AzContext $context

I'm not sure if this capability was added since the documentation was created, but this operation can be done simply with
Set-AzContext -Subscription ...

This method skips an unnecessary call to the API, and would likely be easier for new users to understand and work with.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

thanks for bringing this to our attention. I have assigned the issue to the content author to evaluate and update as appropriate