...-AzAccount cmdlet. A session context persists login information across Azure PowerShell modules and PowerShell instances. To view the context you are using in the current session, which contains the subscription and tenant, use the Get-AzContext cmdlet. To get the subscriptions in a tenant, use the Get-AzSubscription cmdlet. To change the subscription that you are using for your current context, use the Set-AzContext cmdlet.