Get-AzContext cmdlet

Gets the metadata used to authenticate Azure Resource Manager requests.

The Get-AzContext cmdlet gets the current metadata used to authenticate Azure Resource Manager requests. This cmdlet gets the Active Directory account, Active Directory tenant, Azure subscription, and the targeted Azure environment.

Get-AzContext
   [-DefaultProfile <IAzureContextContainer>]
   [[-Name] <String>]
   [<CommonParameters>]

Example for getting the context of the current session by calling Get-AzContext.

PS C:\> Get-AzContext

Comments