简体   繁体   中英

How to replace os disk with attached data disk on azure virtual machine

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?

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?

I would like to create OS Disk from a vhd file. In microsoft documents here as it mentioned there is a command azure vm image create 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.

Solved : Using classic portal of Azure it is easy to create vm images or os disks and creating vms from these images.

Here is a link to get disk up and running, check the section 'Initialize the disk' .

Source : https://azure.microsoft.com/en-gb/documentation/articles/virtual-machines-windows-classic-attach-disk/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM