-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select-AzSubscription is alias of Set-AzContext cmdlet #10848
Comments
@ram-msft thanks for opening the issue, the Let me know if this helps. |
@dcaro Thanks for your information. This helps, but can you please share your thoughts on Set-AzContext cmdlet documnet to update about the Select-AzSubscription. |
@ram-msft you can have as many contexts as you like against the same subscription. For example you can have a context for your user account connected to subscription A and another context for a service principal connected to subscription A and a context for your user account connected to subscription B. The context also has a reference to the token cache used to access the corresponding cloud making the context very useful when you need to use multiple environments, not just subscriptions.
|
@dcaro Ideally the docs would mention the fact that |
We have a feature request open to the docs team to expose the aliases in our reference documentation. |
Set-AzContext cmdlet documnet to update about the Select-AzSubscription.
https://docs.microsoft.com/en-us/powershell/module/az.accounts/set-azcontext?view=azps-3.2.0
Obsolete the following Select-AzureSubscription document.
https://docs.microsoft.com/en-us/powershell/module/servicemanagement/azure/select-azuresubscription?view=azuresmps-4.0.0
Proposed implementation details (optional)
The text was updated successfully, but these errors were encountered: