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.

Connect-AzureRMAccount

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

Syntax

Below is the syntax of the Connect-AzureRMAccount 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 PowerShell

After successful login, I got the expected output below

PS C:\WINDOWS\system32> Connect-AzureRMAccount

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

You can see the same output below

Connect-AzureRMAccount

Check out the below Video tutorial on the Connect-AzureRMAccount PowerShell Command.

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 with an example of how to use the Connect-AzureRMAccount command.