Install Azure Resource Manager modules
To install Azure RM module. The first command will install the AzureRM module from the PowerShell Gallery and the second command will install the component modules of Azure Resource Manager.
PS C:\> Install-Module AzureRM
PS C:\> Install-AzureRM
To import the AzureRM.* modules, please run the below command,
PS C:\> Import-AzureRM
To import a single AzureRM module, please execute below command with module name
PS C:\> Import-Module AzureRM.Compute
To list all Azure Resource Manager modules installed,
PS C:\> Get-Module –ListAvailable AzureRM*