Is it possible to attach a generation 1 disk to generation 2 vm in azure

Elisha George 146 Reputation points
2022-01-14T14:53:55.427+00:00

Is it possible to attach a generation 1 disk to generation 2 windows server 2016 vm in azure?

please give a document related to that

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,305 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Kinane 16,796 Reputation points MVP
    2022-01-14T16:05:18.313+00:00

    You should be able to attach and read as data disks OK but you would not be able to replace the OS disk of a Gen2 VM with a Gen1 VM OS disk.

    Detach a managed disk:
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/detach-disk#detach-a-data-disk-using-the-portal

    Attach a managed disk: (Do not initialize and format for an existing disk)
    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/attach-managed-disk-portal#add-a-data-disk


  2. Prrudram-MSFT 22,581 Reputation points
    2022-01-17T18:17:59.427+00:00

    Hi @Elisha George ,

    Thank you for reaching out to Microsoft Q&A platform.
    In addition to what has been suggested already, you can check if the disk you are trying to attach an existing VM does exists in all disks and if there is any other VM it already is using it. To view that detail, you can search for "Disks" in the global search on azure portal and type the name of the disks in filters above all the disks listed, see the "Owner" column to check which VM is currently using it. Once you know the VM that is using it, you can detach it from that VM and attach to the one you would like to attach

    NOTE: Please note the disk you are going to attach to an existing VM should be in the same region as the VM. Though, the resource groups of the VM and the disk can be same or different.

    Look at the image below for the reference

    165821-image.png

    Please "Accept as Answer" if any of above helped so that, it can help others in community looking for remediation for the similar issues.

    0 comments No comments