Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Check Logged-In Azure Account Using PowerShell



To check the logged-in Azure user account in the console using PowerShell, you can check the context of the Azure and for that Get-AZContext command is used.

Example

Get-AzContext

Output

If you are already logged in with multiple user accounts then there may be chances that there are multiple contexts available, to list all the available context, use the below command,

Example

Get-AzContext -ListAvailable

Output

You can choose the context using the Select-AZContext command.

Updated on: 2021-01-04T09:58:54+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements