Unable to find premium storage account via Azure Powershell RRS feed

  • Question

  • Greetings,

    I'm trying to move my virtual machines to premium storage. I've created a premium storage account and have used AZcopy to move my vhds over to it.

    Now I'm trying to create the os disk using the add-azuredisk command specifying the medialocation parameter to the location of my vhd in the premium storage account and get the following:

    add-azuredisk: bad request: the storage account with the name <storageaccountname> as specified in the URI <storageaccountlocation> does not exist in the current subscription <subscriptionid>.

    I've verified in the new azure portal that the storage account does exist and that the vhd is in the correct container in the storage account.

    Friday, June 24, 2016 10:26 PM

All replies

  • Hi,

    Thank you for posting here!

    When you plan to use Azure VMs running on Premium Storage, you need to use the DS-series, DSv2-series or GS-series VMs. You can use both Standard and Premium Storage disks with DS-series, DSv2-series and GS-series VMs.

    In ARM portal you can view both classic storage account and ARM storage account (check the screenshot)

    Have you uploaded your VHD to classic storage account or ARM storage account?

    If you uploaded VHD to ARM storage account, please follow the below PowerShell script to deploy VM with existing VHD:

    ## Setup local VM object

    $cred = Get-Credential

    $vm = New-AzureRmVMConfig -VMName $vmName -VMSize $vmSize


    $vm = Add-AzureRmVMNetworkInterface -VM $vm -Id $nic.Id


    $osDiskUri = "https://test.blob.core.windows.net/vhds/osdiskforlinuxsimple.vhd"

    $vm = Set-AzureRmVMOSDisk -VM $vm -Name $osDiskName -VhdUri $osDiskUri -CreateOption attach -Linux


    ## Create the VM in Azure

    New-AzureRmVM -ResourceGroupName $rgName -Location $location -VM $vm -Verbose -Debug

    To Create a VM from a specialized VHD disk you can use “Deploy to azure” button in the below link to deploy VM:


    Please remember to click "Mark as Answer" on the post that helps you, this can be beneficial to other community members reading the thread. And Vote as Helpful

    Saturday, June 25, 2016 10:40 AM
  • Hello,

    Thank you for posting your question on Microsoft TechNet.

    Here you find Migrating to Azure Premium Storage :


    Here you find the Microsoft Azure Storage Explorer : http://storageexplorer.com/

    Hope this information is helpful for you.

    Best Regards,

    (Ps. If this information is helpful, please mark your question as answered for the community.)

    Monday, June 27, 2016 11:23 PM
  • Hi oneknarlydude,

    Does your VM use the classic deployment model or the ARM deployment model, and does your storage account use the same deployment model?

    If your storage account is ARM and your VM is classic, the VM won't be able to see the storage account. I mention this because Add-AzureDisk is one of the classic cmdlets, not an ARM cmdlet, which leads me to think your VM is a classic VM.

    Add-AzureDisk was used to add a new disk to the Azure disk repository -- those disks are displayed in the classic portal (http://manage.windowsazure.com) under Disks & Images. That feature is not available with the ARM model.


    Sr. Content Developer at Microsoft

    Thursday, June 30, 2016 6:41 PM