title: How to replace os disk with attached data disk on azure virtual machine
body: <p>I attached a new vhd file to my virtual machine but I could not find a way to boot that machine with this disk. How can I boot my virtual machine with newly attached data disk?</p>
  
  <p>Edit: I found the way of creating of vm from captured vm image. It is preformed on VM Images section. Now my problem is that when I transfer the captured page blobs from one azure account to another account they appear on storage account section but not on VM Images section. Hence I am not able to create VM from transferred images. How can I make this blobs appear on VM Image or is there a way to transfer VM Image disk directly to the section of VM Images of another azure account by using azure-cli?</p>
  
  <p>I would like to create OS Disk from a vhd file. In microsoft documents <a href="https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-classic-create-upload-vhd/" rel="nofollow">here</a> as it mentioned there is a command <code>azure vm image create</code> in my azure-cli there is no such command. I could not find a way to make an OS Disk from my stored vhd files.</p>
  
  <p><strong>Solved</strong>: Using <a href="https://manage.windowsazure.com" rel="nofollow">classic portal of Azure</a> it is easy to create vm images or os disks and creating vms from these images.</p>