Connect To Azure Using Powershell

Microsoft Azure PowerShell: What is it?

Microsoft Azure PowerShell can be considered as a PowerShell extension that contains cmdlets which lets you connect to Azure to carry out tasks like solution deployment and management. We usually use the Azure Management Portal to carry out the administration tasks for our Azure subscription. Using PowerShell we can do these tasks remotely which means we can create a new Virtual network and add a VM to the Virtual network remotely using Azure PowerShell .

Let’s see how to install Azure PowerShell and get it up and running.

Go to the URL to download Azure Web Installer Files. This will download the below exe.

download

Run the installer file.

run

Once the installer files are downloaded it will open up the Installation window.

window

  • Click on Install. This will install all the dependencies required for Azure PowerShell.

    Install

  • Click on I Accept and proceed to the next step.

    step

  • The dependencies are almost of 20 MB in size. Wait for the download and installation to complete.

    finish

  • Click on Finish to complete the installation.

    Now let’s connect to Azure from PowerShell using the command:

    Add-AzureAccount

     Add-AzureAccount

    Add the user name and password and click on sign in. It will add the user account and get the specific account details.

    details  

    Thus we have authenticated ourselves to the Azure Subscription. We can use the available cmdlets to perform all the administration and solution deployments using the available cmdlets.

    Get-help command can be used to get the list of available cmdlets as shown below:

    command

Read more articles on PowerShell: