
Set-AzContext (Az.Accounts) | Microsoft Learn
The Set-AzContext cmdlet sets authentication information for cmdlets that you run in the current session. The context includes tenant, subscription, and environment information.
Azure contexts and sign-in credentials | Microsoft Learn
Oct 14, 2025 · The Set-AzContext cmdlet is used to create and set new Azure contexts as the active context. The easiest way to create a new Azure context is to use existing subscription …
Az.Accounts Module | Microsoft Learn
With Azure contexts, Azure PowerShell doesn't need to reauthenticate your account each time you switch subscriptions. For more information, see Azure PowerShell context objects. This …
Manage Azure subscriptions with Azure PowerShell | Microsoft Learn
Oct 14, 2025 · In order to change subscriptions, you use the Set-AzContext cmdlet to change the current context. The following example shows how to change the context in your current Azure …
Connect-AzAccount (Az.Accounts) | Microsoft Learn
The Connect-AzAccount cmdlet connects to Azure with an authenticated account for use with cmdlets from the Az PowerShell modules. You can use this authenticated account only with …