To install Azure PowerShell:
1.Install Microsoft Web Platform Installer. (Select “Free Download”) and run the application.
FROM -> http://www.microsoft.com/web/downloads/platform.aspx
2.Open Microsoft Web Platform Installer and search for Microsoft Azure PowerShell.
3.Click “Add” and select “Install”.
4. Run “Microsoft Azure PowerShell”
5. Run “Add-AzureAccount”
6. Logon to your Azure Account.
Use –> “Get-Command -Module Azure” <– for a list of Azure functions or “Show-Command” and search for name “Azure”.
**NOTE** These default values will be cached locally in the following file:
“%APPDATA%\Roaming\Windows Azure Powershell\AzureProfile.json”
The Following can provide additional functions to control the cached information.
Add-AzureAccount –> Makes your Azure account and its subscriptions available in Windows PowerShell. It’s like logging into your Azure account in Windows PowerShell.
Get-AzureAccount –> Gets the Azure accounts that are available to Windows PowerShell.
Remove-AzureAccount –> Removes the account information from the configuration file
Get-AzureSubscription –-> Gets the subscriptions in your Azure account. You can use this cmdlet to get information about the subscription and to pipe the subscription to other cmdlets.Get-AzureSubscription requires access to your Azure accounts. Before you run Get-AzureSubscription, you must run the Add-AzureAccount cmdlet or the cmdlets that download and install a publish settings file (Get-AzurePublishSettingsFile,Import-AzurePublishSettingsFile.
Select-AzureSubscription –-> Sets and clears the current and default Azure subscriptions. The “current subscription” is the subscription that is used by default in the current Windows PowerShell session. The “default subscription” is used by default in all Windows PowerShell sessions. The “current subscription” label lets you specify a different subscription to be used by default for the current session without changing the “default subscription” for all other sessions.
The “default” subscription designation is saved in your subscription data file.
The session-specific “current” designation is not saved.
Set-AzureSubscription –-> The Set-AzureSubscription cmdlet establishes and changes the properties of an Azure subscription. You can use this cmdlet to create a new subscription or change the properties of an existing subscription.
Remove-AzureSubscription –-> Removes the subscription information from the configuration file
Switch-AzureMode –-> The Switch-AzureMode cmdlet switches between the Azure and Azure Resource Manager modules. These modules are not designed to be used in the same session.
To determine which module is in your current
session, use the Get-Module cmdlet.NOTE: The AzureResourceManager module is currently in preview and may not provide the same management capabilities as the Azure module.