Using Azure Resource Manager in PowerShell

Share this:

How to connect to Microsoft Azure PowerShell and use Azure Resource Manager deployment mode.


Microsoft Azure is a dynamic environment, and the process described here is going to be changed in a few weeks this method is going to be deprecated and the Azure Resource Manager will be a module in PowerShell, however until there this is the process to connect on Microsoft Azure and use ARM (Azure Resource Manager).

The first step is to open Microsoft Azure PowerShell, and run Add-AzureAccount , and that will pop-up the authentication page, fill out the credentials and complete the Sign in to Microsoft Azure PowerShell wizard.


The result will be the subscriptions associated to you account.


In order to use Azure Resource Manager, use the following cmdlet:

Switch-AzureMode –Name AzureResourceManager


After a lot of verbose lines, we can test if we are in the right deployment mode by running Get-AzureResourceGroup which is only available in Azure Resource Manager deployment mode, as shown in the image below.


Written by Anderson Patricio

Anderson Patricio is a Canadian Exchange Server MVP and MCSM (Solutions Master) and he contributes to the Microsoft Community with articles, tutorials, blog posts, forums and book reviews. He is a regular contributor at, and (Portuguese).