Get-AzureRmContext

Gets the metadata used to authenticate Resource Manager requests.

Syntax

Get-AzureRmContext [<CommonParameters>]

Description

The Get-AzureRmContext 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. By default, Resource Manager cmdlets use these settings when it makes Resource Manager requests.

Examples

1:

Outputs

This cmdlet returns the account, tenant, and subscription used by Resource Manager cmdlets.