Azure PowerShell is derived from Windows PowerShell. It allows Rapid Automation of Azure Resource Management through Scripts.
Step 1: Open Windows PowerShell from your windows.
Step 2: Run Command to Install Azure PowerShell Module
Install-Module -Name Az -AllowClobber -Scope AllUsers
In the appearing prompt enter A for All.
Optionally, you can run following command.
Import-Module Az.Accounts
Step 3: Test Connectivity
Connect-AzAccount
If you get the following prompt enter your Azure Credentials.
If you get the following Information you are Good!
Common Errors
If you encounter common errors like below.
Import-Module : File c:\Az.Accounts\1.6.6\Az.Accounts.psm1 cannot be
loaded because running scripts is disabled on this system.
Solution Commands
Get-ExecutionPolicy
Set-ExecutionPolicy remoteSigned