The following are the required steps to get Azure PowerShell installed:
- Open PowerShell in an elevated mode.
- To install the Azure PowerShell module for the current portal run the following cmdlet Install-Module AzureRM. If your PowerShell requires a NuGet provider you will be asked to agree to install it, and you will have to agree for the installation policy modification, as the repository is not available on your environment, as shown in the following screenshot:
Figure 1.14 Installing the AzureRM PowerShell module