I am not sure if you know, but the Azure Cloud Shell now runs PowerShell Core. This means that the old
Features of the module.
- Runs on both PowerShell 5.1 and PowerShell Core.
- Is always up to date with the latest Azure tooling.
- Already in the Cloud Shell.
- Makes commands shorter.
- Data plane and management plane cmdlets will use the same Az module.
- Comes with cmdlet to enable script compatibility with AzureRM (Enable/Disable-AzureRMAlias).
Where can I run it?
- PowerShell 5.1 – Windows 7 or greater as long as .Net 4.7.2 or greater is installed.
- PowerShell Core 6.0 or greater – Windows, Mac OS, Linux
Enough chat lets Install.
|
1 |
Install-Module Az -AllowClobber |

Yup that’s it! It’s not hard at all.
Warning
You should not install Az side-by-side with AzureRM. Remove all AzureRM modules before installing Az. This can be done using this link https://docs.microsoft.com/en-us/powershell/azure/uninstall-azurerm-ps?view=azurermps-6.10.0
Compatibility with AzureRM
So now all of my scripts are broken. Not to worry. the next command will fix this.
|
1 |
Enable-AzureRmAlias -Scope LocalMachine |
To remove the AzureRM cmdlet aliases just use the following.
|
1 |
Disable-AzureRmAlias -Scope LocalMachine |
Let’s look at the difference.
| AzureRM Module Name | Az Module Name |
|---|---|
| AzureRM | Az |
| Azure.AnalysisServices | Az.AnalysisServices |
| Azure.Storage | Az.Storage |
| AzureRM.Aks | Az.Aks |
| AzureRM.AnalysisServices | Az.AnalysisServices |
| AzureRM.ApiManagement | Az.ApiManagement |
| AzureRM.ApplicationInsights | Az.ApplicationInsights* |
| AzureRM.Automation | Az.Automation |
| AzureRM.Backup | Az.Backup*** |
| AzureRM.Batch | Az.Batch |
| AzureRM.Billing | Az.Billing |
| AzureRM.Cdn | Az.Cdn |
| AzureRM.CognitiveServices | Az.CognitiveServices |
| AzureRM.Compute | Az.Compute |
| AzureRM.Compute.ManagedService | Az.Compute.ManagedService*** |
| AzureRM.Consumption | Az.Consumption* |
| AzureRM.ContainerInstance | Az.ContainerInstance* |
| AzureRM.ContainerRegistry | Az.ContainerRegistry* |
| AzureRM.DataFactories | Az.DataFactory |
| AzureRM.DataFactoryV2 | Az.DataFactory |
| AzureRM.DataLakeAnalytics | Az.DataLakeAnalytics |
| AzureRM.DataLakeStore | Az.DataLakeStore |
| AzureRM.DataMigration | Az.DataMigration |
| AzureRM.DeviceProvisioningServices | Az.DeviceProvisioningServices* |
| AzureRM.DevSpaces | Az.DevSpaces |
| AzureRM.DevTestLabs | Az.DevTestLabs |
| AzureRM.Dns | Az.Dns |
| AzureRM.EventGrid | Az.EventGrid |
| AzureRM.EventHub | Az.EventHub |
| AzureRM.HDInsight | Az.HDInsight** |
| AzureRM.Insights | Az.Insights* |
| AzureRM.IotHub | Az.IoTHub |
| AzureRM.KeyVault | Az.KeyVault |
| AzureRM.LogicApp | Az.LogicApp*** |
| AzureRM.MachineLearning | Az.MachineLearning |
| AzureRM.MachineLearningCompute | Az.MachineLearningCompute* |
| AzureRM.ManagedServiceIdentity | Az.ManagedServiceIdentity* |
| AzureRM.ManagementPartner | Az.ManagementPartner* |
| AzureRM.Maps | Az.Maps |
| AzureRM.MarketplaceOrdering | Az.MarketplaceOrdering* |
| AzureRM.Media | Az.Media |
| AzureRM.Network | Az.Network* |
| AzureRM.NotificationHubs | Az.NotificationHubs* |
| AzureRM.OperationalInsights | Az.OperationalIsights |
| AzureRM.PolicyInsights | Az.PolicyInsights* |
| AzureRM.PowerBIEmbedded | Az.PowerBIEmbedded* |
| AzureRM.Profile | Az.Profile* |
| AzureRM.RecoveryServices | Az.RecoveryServices** |
| AzureRM.RecoveryServices.Backup | Az.RecoveryServices** |
| AzureRM.RecoveryServices.SiteRecovery | Az.RecoveryServices** |
| AzureRM.RedisCache | Az.RedisCache** |
| AzureRM.Relay | Az.Relay* |
| AzureRM.Reservations | Az.Reservations* |
| AzureRM.Resources | Az. Resources |
| AzureRM.Scheduler | Az.Scheduler*** |
| AzureRM.Search | Az.Search |
| AzureRM.Security | Az.Security* |
| AzureRM.ServiceBus | Az.ServiceBus |
| AzureRM.ServiceFabric | Az.ServiceFabric** |
| AzureRM.SignalR | Az.SignalR |
| AzureRM.Sql | Az.Sql |
| AzureRM.Storage | Az.Storage |
| AzureRM.StorageSync | Az.StorageSync |
| AzureRM.StreamAnalytics | Az.StreamAnalytics |
| AzureRM.Subscription | Az.Subscription* |
| AzureRM.Tags | Az.Tags* |
| AzureRM.TrafficManager | Az.TrafficManager* |
| AzureRM.UsageAggregates | Az.UsageAggregates |
| AzureRM.Websites | Az.Websites |
* Module name may change for 1.0
** Module not yet available
*** Module may not appear in 1.0
Time to try one out.

As you can see the new commands are the same but with Az and not AzureRM.
<strong>Critical Note</strong>
At the time of writing this article this is still in preview. It should be fully GA end of 2018.
I hope you found this article helpful. If you have any questions
0 Comments