Azure PowerShell

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.

image

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.

image

If you get the following Information you are Good!

image

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s