Using Azure Resource Manager in PowerShell

Share this:

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

Solution


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.

image

The result will be the subscriptions associated to you account.

image

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

Switch-AzureMode –Name AzureResourceManager

image

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.

image

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

How to configure Azure Logic Apps Usually for social media automation I used for a long time IFTTT, although with Azure Logic Apps I decide to give a try. I started to use Azure Logic ...
How to remove the several Organization Units that ... In some situation an entire structure of Organization Units must be deleted, and by default new OUs are automatic defined to protect them against dele...
Article: Step-by-step Guide – Exploring thre... Hello folks, In this article, we will explore several methods to deploy our well-known friend JSON files to deploy ARM Templates into Microsoft Azu...
Software-Defined Networking with Windows Server an... Free online event with live QA with the WAP team: http://aka.ms/WAPIaaS Two half-days – Wednesday July 16th & Thursday July 17th – 9am-1pm PST ...