To manage Azure infrastructure via PowerShell, we need to import the Azure RM extension in PowerShell. There are two ways:
Download from the Microsoft Download Link and run the Web Platform Installer.
Or, via command line:
1. Launch PowerShell as administrator and type in the following command: Install-Module AzureRM
2. Enter ‘Y’ to accept the prompt to download Nuget modules.
After the installation, launch PowerShell console and import the module: Import-Module AzureRM