The Azure PowerShell AzureRM module is used for management and automation of Azure resources like VMs, VNets, etc.
If you try to connect to Azure without having the module installed you’ll encounter the following error message:
To fix this you must install the AzureRm PowerShell module.
There are several pre-requisites that must be met before you can successfully install the AzureRm PowerShell module:
- The AzureRm module is built on the .Net Framework so this must be present. Make sure you have version 4.7.2 or later. Install it from here if needed.
- You must have PowerShell version 5.1 or later. Check your version using the following command:
- If PowerShell version 5.1 is not available you can install it from here.
- You must have the NuGet package provider installed on your system. Check if it’s present using the following command:
- If NuGet is not present you can install it using the following command:
- Install-PackageProvider -Name NuGet -MinimumVersion 126.96.36.199 -Force
Installing the Azure PowerShell AzureRM Module
If all pre-requisites are met you can install the AzureRm PowerShell module using the following command:
- Install-Module AzureRm
Once the installation completes you should be able to connect successfully using the AzureRm module:
Hopefully this post was able to get you going with the AzureRm PowerShell module.
If you’re looking for an easy and simple way to manage your Office 365 users, mailboxes and licenses, have a look at Easy365Manager.
With Easy365Manager you can do all daily management inside the AD Users & Computers tool without having to constantly switch between the Office 365 portal, the Exchange Admin Center and PowerShell.
Easy365Manager is available as a fully functional 30 day trial.