Azure PowerShell and Azure Command Line

In this blog post I want to talk about getting started with Azure Powershell and command line. Good news is that you can use Azure command lines from other platforms as well like MAC, Linux.

capture

To get started with Azure automation for Infrastructure Engineers, here are the steps:

Easy way to remember, just google Azure SDK :), 1st or 2nd link will point to the download link..

https://azure.microsoft.com/en-us/downloads/

Scroll down till you reach Command-line tools”

Download & install PowerShell and Command line interface.

After this is done just launch PowerShell & import-module Azure

capture

Type Get-Command *Azure* & you will notice plenty of Azure Powershell Cmdlets.

capture

Lets Login to Azure from Powershell:

Type Add-AzureAccount, a window will popup for login to Azure.

capture

After you finish login, session will get created.

capture

Now let’s do the similar exercise from command line interface.

To check command line interface you just need to type Azure..

capture

To login to azure from command line:

Type Azure Login  (note that all commands will start from Azure as keyword)

It will ask you to launch the web-browser, login to the url mentioned  & type the generated code capture

After typing the code it will ask you to login from your azure account.

capture1

When login is successful, you will be asked to close the browser & your command line will show that login is successful.

capture

For this blog post I am stopping here but will write more as soon as I get my hands dirty with Azure 🙂

Regards

Sukhija Vikas

http://msexchange.me

 

Advertisements

One thought on “Azure PowerShell and Azure Command Line

  1. Pingback: Setting STATIC IP – Azure VM | Microsoft Technologies Blog

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s