Issues cloning a vm

Trevor Lewandowski 1 Reputation point

I am having issues cloning a VM in Azure, I have created a snapshot of the current VM(both the OS and the Data Disks) i want to clone, then I created a managed disk of that snapshot, (both again) when I go into the OS managed disk the Create a VM link is not selectable.

I am using this as a refence to create the Clone

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

2 answers

Sort by: Most helpful
  1. ChristopherW-MSFT 1,596 Reputation points

    Hi @Trevor Lewandowski ,

    When creating a Disk from a Snapshot for an OS, make sure the Disk Size is the same as the OS Volume - You may also want to make sure the VM is turned off so it doesn't have any issues with the Snapshot creation.

    After the OS Disk is created, you can find the Disk resource in the Resource Group and '+ Create VM' as long as it the Disk creation detected an OS.

    If the '+Create VM' is not selectable, the Disk/Snapshot may be missing the 'Operating System' Property, or your user account might not have appropriate VM Creation Privileges for the Resource Group or Subscription.

    If the Operating System is still missing after re-creation, you can force it through

    $update = New-AzureRmDiskUpdateConfig -OsType <OSType>
    Update-AzureRmDisk -DiskName <diskname> -DiskUpdate $update -ResourceGroupName <rgname>

    Or by copying the existing Disk to a new Managed Disk and setting the OS Type on creation.

  2. Prashant Chirde 1 Reputation point