How to clone a Azure VM

If you ever need to duplicate or clone your Azure VMs or perhaps even migrate your Azure VMs from Azure Service Manager (ASM) to Azure Resource Manager (ARM) you can use one of our Azure Management Tools, Azure VM Cloner (AVMC) to quickly and easily do this for you. (You can download a fully functioning trial here)

In the last blog post I showed you how you could schedule the deployment of Azure VMs. Using those same VMs and Azure Subscription I will now show you how we can clone your Azure VMs.

  1. Start up the Azure VM Cloner tool then click on Clone Virtual Machine in the home window.
    Clone Azure VM


  2. Next we are presented with a list of the Azure VMs you have in your subscription. Highlight one of the Virtual Machines and then click on Next.
    Clone Azure VM selection
    Note if the VM is running you will get the following error. Best to shutdown any virtual machines within Azure that you need to clone.

    Clone Azure VM running VM



  3. We are next presented on some destination settings we need to migrate the cloned Azure VM to.Choose your Azure Target Subscription (you can clone your Azure VMs across subscriptions only if you have access)
    Select a target Azure Resource Group and then finally the Azure Location for the VM to reside in.
    Clone Azure VM Destination
    Click on NEXT to continue with the cloning process.


  4. Now we need to choose which Azure storage account to place the cloned Azure VM in.
    Clone Azure VM Storage AccountHighlight the correct storage account then click on NEXT.



  5. The next selection window we are presented with is the Azure Virtual Network that you would like the cloned virtual machine in.
    Clone Azure VM vNetHighlight the correct Azure vNet and again click on NEXT.  The Azure VM Cloner will read the vnet configuration before continuing.


  6. The last configuration window before the cloning of the Azure VM kicks off is the VM sizing window. Choose an Azure VM size and give the server a name.
    Clone Azure VM SizingYou can also select whether to shutdown the cloned VM on completion, Send an email to let you know once done and even convert the disks to Azure Managed Disks if they were in an Azure Storage Account before.
    Click on START CLONE to continue.


  7. You are now ready to proceed with the cloning process. The Cloning Warning screen informs you that may have two servers with the same SIDs and computers names after the server has been cloned, this is of course not something you want to have happen in a Production environment.
    Clone Azure VM WarningJPGRead the warning and when you are ready to do so, check the Understood and Accepted then click on START.


  8. In the Console Output you can see the tasks and status of your Azure VM cloning and as seen in the Azure Portal you can see that the VM has now cloned successfully

    Clone Azure VM Azure Portal


  9. Now the last things you will need to do if it is a Microsoft Windows virtual machine that you cloned, is to login with its local Administrator account and password and possibly run a Sysprep to change the server name and SSID before you rejoin it to the domain.

Download a trial of the Azure VM Cloner here and see all of our Azure Management Tools.

Leave a Reply