title: 'Role size' error when provisioning Azure VM via Azure PowerShell
body: <p>I'm trying to provision an Azure VM via the Azure PowerShell, like so: <code>New-AzureVMConfig -Name $vmName -InstanceSize "Medium" -ImageName $imageName | Add-AzureProvisioningConfig -Linux -LinuxUser $username -Password $password | New-AzureVM -ServiceName $serviceName -ReservedIPName $reservedIP -Location $location</code></p>
  
  <p>Naturally, all values for the variables have been set. When I execute the above command, I get the error: <strong>New-AzureVM : BadRequest: Role size: Medium is not supported in a provisioned storage account.</strong> </p>
  
  <p>Alternatives I've used are Medium instead of "Medium", Small, Large and Standard_D1. Nothing works! What am I missing?</p>
  
  <hr>
  
  <p>Note that the storage account I've set in my subscription (<code>Set-AzureSubscription</code>) uses premium storage. It was created via the command of sort <code>New-AzureStorageAccount -StorageAccountName "yourpremiumaccount" -Location "West US" -Type "Premium_LRS"</code> (documentation <a href="https://azure.microsoft.com/en-us/documentation/articles/storage-premium-storage-preview-portal/" rel="nofollow">here</a>).</p>
  
  <p>Needless to say, if I set it to an account using non-premium storage, the aforementioned <code>New-AzureVMConfig</code> command works.</p>