I tried to create a new VM with Public IP. The only way I found was using PowerShell.
This was the commands I used.
$vm = New-AzureVMConfig -Name "mu0035" -InstanceSize Small
-ImageName "b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_1-LTS-amd64-server-20140924-en-us-30GB"|
Add-AzureProvisioningConfig -Linux -LinuxUser $username -Password $password|
Set-AzurePublicIP -PublicIPName "mu0035PIP"
It returns `BadRequest: The location or affinity group East Asia of the storage account where the source image b39f27a8b8c64d52b05eac6a62ebad85 resides is not in the same location as the specified cloud service ,"Southeast Asia"`.
It seems the image locate in East Asia, and I want to create VM in 'Southeast Asia'.
Interest thing is, I have already set the subscription's currentstorageaccount to a `Southeast Asia` storage account.
Get-AzureSubscription -Current
SubscriptionId : $subscription_id
SubscriptionName : BizSpark
Environment : AzureCloud
SupportedModes : AzureServiceManagement,AzureResourceManager
DefaultAccount : $account_name
Accounts : {$account_name}
IsDefault : True
IsCurrent : True
CurrentStorageAccountName : sourtheast
Get-AzureStorageAccount -StorageAccountName sourtheast
StorageAccountDescription :
AffinityGroup :
Location : Southeast Asia
GeoReplicationEnabled : True
GeoPrimaryLocation : Southeast Asia
GeoSecondaryLocation : East Asia
Label : sourtheast
StorageAccountStatus : Created
StatusOfPrimary : Available
StatusOfSecondary : Available
Endpoints : {https://sourtheast.blob.core.windows.net/, https://sourtheast.queue.core.windows.net/, https://sourtheast.table.core.windows.net/}
AccountType : Standard_GRS
StorageAccountName : sourtheast
OperationDescription : Get-AzureStorageAccount
OperationId : f1326e6e-951d-1c9c-bb4d-4a65900025bb
OperationStatus : Succeeded
I can't figure out what happened. Why the powershell command not fetching the image from a wrong location?
Please, Help!