Manage Azure using PowerShell commands

Edit Last time when I tried to use PowerShell to manger Azure account there were multiple problems but Azure is getting robust and it seems to be simple and straight forward now.

• Install: You can install Azure Command-line interface for windows at http://go.microsoft.com/?linkid=9828653&clcid=0x409 (http://azure.microsoft.com/en-us/downloads/ -> Azure command-line interface -> Windows Install)
• Open Microsoft Azure Powershell
• Provide credentials
o Add-AzureAccount is the commands which will accept credentials and you can use it
• You can connect to different subscription if your account has access to multiple subscriptions
o You may use following commands to check the account, view and connect to different subscriptions
 Get-AzureAccount: To see the credentials used to connect
 Get-AzureSubscription: To see the subscriptions you have access to
 Select-AzureSubscription: To connect to a different Subscription
• You can also view and manger SQL Servers and Databases using PowerShell command lets, you may use Get-Help Azure to see all commands available

FYI:
Azure_Powershell_01

Reference: http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/#Connect

Edit 2/12/2016:

If Powershell is opened directly, Azure module can be loaded using Import-Module Azure/

 Import-Module Azure 

 

Advertisements
This entry was posted in Azure, Powershell, Productivity and tagged , , . Bookmark the permalink.

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