Successfully added
...see more
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
...see more
There is a very good description on how to login using PowerShell at Different ways to login to Azure automation using PowerShell (sqlshack.com)
...see more
To select the correct subscription use
Get-AzSubscription -SubscriptionName "{name}" | Select-AzSubscription
Referenced in:
Comments