Open the Azure Powershell cmdlets and make sure that your default Azure Subscription and Storage accounts are configured as the accounts in which to deploy your VM.
- Get-AzurePublishSettingFile- Download Publish settings files to disk using browser
- Import-AzureSettingsFile "<path to file>\<filename>.publishSettings" - Import the publish settings to Windows PowerShell context
- Set-AzureSubscription "<Subscription Name>" - CurrentStorageAccountName "<StorageAccountName>" - Set default Subscription and Storage Accounts
Set-AzureSubscription "<Subscription Name>" - CurrentStorageAccountName "<StorageAccountName>"
TO upload each VHD to a blob Container:
Add-AzureVHD -Destination http://<StorageAccountName>.blob.core.windows.net/<ContainerName>/DestinationFileName>.vhd
-LocalFilePath C:\<PathToSourceImage>\<SourceFileName>.vhd