PowerTip: Set Default Storage Account for PowerShell Cmdlets in Azure
Summary: Learn how to define the default storage account to be used with the Azure PowerShell cmdlets.
How do I tell Azure which media or storage account I'd like to use when I create a virtual machine?
Use Get-AzureStorageAccount to access the names of your storage accounts, and
then use Set-AzureSubscription to define your current default for the cmdlets.
The following example sets the first account as the default in the subscription called 'HSG Azure Subscription':
Set-AzureSubscription –SubscriptionName 'HSG Azure Subscription'