Azure Vs AzureRM PowerShell Module

I have been asked many times what’s the difference between Microsoft Azure PowerShell module and Microsoft AzureRM PowerShell module today I’ll explain.

Microsoft Azure PowerShell Module:

  • This Is the first release of the Azure PowerShell Module Which Is based on the old portal and Azure Service Manager (ASM) technology.
  • Was available In Azure PowerShell release 0.8 and 0.9.
  • To Install the module run Install-module azure

If you run the cmdlet below you will see all the available cmdlets In the module:

Get-command -module azure

The module contains 703 cmdlets

Microsoft AzureRM PowerShell Module:

  • Based on the Azure Resource Manager (ARM) technology
  • Known as version 2 and started to appear In Microsoft Azure PowerShell 1.0 and above
  • To Install the module use Install-module AzureRM
  • The AzureRm Modules comes with 37 modules as seen below
AzureRM.ApiManagement
AzureRM.Automation
AzureRM.Backup
AzureRM.Batch
AzureRM.Cdn
AzureRM.CognitiveServices
AzureRM.Compute
AzureRM.DataFactories
AzureRM.DataLakeAnalytics
AzureRM.DataLakeStore
AzureRM.DevTestLabs
AzureRM.Dns
AzureRM.HDInsight
AzureRM.Insights
AzureRM.KeyVault
AzureRM.LogicApp
AzureRM.MachineLearning
AzureRM.Media
AzureRM.Network
AzureRM.NotificationHubs
AzureRM.OperationalInsights
AzureRM.PowerBIEmbedded
AzureRM.Profile
AzureRM.RecoveryServices
AzureRM.RecoveryServices.Backup
AzureRM.RedisCache
AzureRM.Resources
AzureRM.Scheduler
AzureRM.ServerManagement
AzureRM.SiteRecovery
AzureRM.Sql
AzureRM.Storage
AzureRM.StreamAnalytics
AzureRM.Tags
AzureRM.TrafficManager
AzureRM.UsageAggregates
AzureRM.Websites

The AzureRM contains 1262 cmdlets across 37 modules

2 Replies to “Azure Vs AzureRM PowerShell Module”

  1. I did all of the above and ensured that its got all the things required for azurerm commands but still it won’t run the basic commands like New-AzureRmResourceGroup and comes with same error always

    New-AzureRmResourceGroup : Run Login-AzureRmAccount to login.
    At line:1 char:1
    + New-AzureRmResourceGroup -Name TestRG1 -Location centralus
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [New-AzureRmResourceGroup], PSInvalidOperationException
    + FullyQualifiedErrorId : InvalidOperation,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureReso
    urceGroupCmdlet

    did restarted my server i.e. 2016 DC with the PS version 5.1.14393.953

Leave a Reply