If you have more than one Azure subscription in your account and try to upload a vhd using the instruction:
Get-AzurePublishSettingsFile
Import-AzurePublishSettingsFile d:credentials.publishsettings
Add-AzureVhd
-LocalFilePath d:my.vhd -
Destination
http://example.com/blob/container
You may get an error saying that selected account doesn’t have given blob.
That’s because the first subscription is selected by default and the target blob is in the another one.
To select the proper subscription use the following command:
Get-AzureSubscription | Select -Last 1 | Select-AzureSubscription
(For instance, the last one).