Connecting to Azure with Powershell

You'll need to download and install the Azure Powershell Module.

This command will import the Azure module into a regular powershell session
Import-Module Azure

This command will prompt you to signin with an Azure Account.

Method 1 (Preferred):

This command directs you to the Publishing Settings web page where you can download an encoded management certificate, which contains secure credentials and additional information about subscriptions that can be used in various ways including a development environment. Once you've received the file, the encoded credentials can be imported over and over to access your environment.

Anyone with access to this file can access your environment and make changes that portal administrators can

Method 2 :


Imports a publish settings file. Once imported you'll be able to manage your Azure accounts in Windows PowerShell.