title: Create Azure VM with PowerShell from My Disks
body: <p>I am starting to think that i'm really stupid.
  Trying since 2 hours to create a vm from the section my discs with powershell. Everywhere in the internet i find information about creating a vm from existing vm images, but not from the my disks section. I mean this one:</p>
  
  <p><img src="https://i.stack.imgur.com/igedG.png" alt="My Disks in Management Portal"></p>
  
  <p>How can i achieve this by the powershell?
  I tried the following script, however i keep getting this error message and google seems useless, since there are tons of links relating how to create a vm image or how to upload it but not how to create a vm from an existing uploaded disk, nothing else.</p>
  
  <p>My script i tried:</p>
  
  <pre><code>New-AzureVMConfig -Name "kentico1" -InstanceSize Medium -VMImageName "kenticovm-kenticovm-0-201408210905260518" -MediaLocation "https://rivirtualmachines.blob.core.windows.net/vhds/kenticovm-kenticovm-2014-08-21.vhd" | Add-AzureProvisioningConfig -Windows -AdminUsername adminuser -Password "asldfj9283lj" | New-AzureVM -ServiceName "kentico" -ReservedIPName CMSIP -Location "West Europe"
  </code></pre>
  
  <p>And i keep getting this error</p>
  
  <blockquote>
    <p>New-AzureVM : BadRequest: OSImage kenticovm-kenticovm-0-201408210905260518.vhd not found. If you are using
    a VM image, it must be specified as VMImageName for the role, not as SourceImageName for OSVirtualHardDisk.</p>
  </blockquote>
  
  <p>Can anybody help me?
  Thank you in advance
  best
  laurin</p>