Connect-AzureRMAccount

In this Azure PowerShell article, we will discuss the syntax and usage of the Connect-AzureRMAccount PowerShell command with examples of how to use this command.

You can use this command to connect to the authenticated account for using the Azure RM cmdlets.

Syntax

Below is the syntax of this PowerShell command.

Connect-AzureRMAccount

Example

You can execute the below PowerShell command to connect to an authenticated account for using the Azure RM cmdlets.

Connect-AzureRMAccount

After executing the above PowerShell command, enter your credentials in the below Pop-up.

connect-azurermaccount -identity

After successful login, I got the expected output below


Account                   SubscriptionName         TenantId                             Environment
-------                   ----------------         --------                             -----------
fewlines4biju@hotmail.com Visual Studio Enterprise 5d9d690a-0310-474d-ae8b-42df2d549228 AzureCloud 

You can see the same output in the below screenshot.

connect azurermaccount

Video Tutorial

You can also check out the below article if you are facing any issues executing this command.

Final Thoughts

In this Azure PowerShell article, we discussed the syntax and usage of the Connect-AzureRMAccount PowerShell command and provided an example of how to use it.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!