The 3 overview steps to creating (or restoring) an Azure virtual machine (VM) from a stored snapshot of another VMs Operating System (OS) virtual hard disks (vhd).

  1. Create a Snapshot (already created for this exercise)
  2. Create Managed disks from Operating System (OS) and Data Disk Snapshots
  3. Create a VM from the Managed OS Disk and add data disk

This post shows how to create a VM in a new resource group, from disk snapshots. We will be attaching the new managed OS Disk to the VM with PowerShell while the VM is created. The data disk will be attached after the VM is created. Note in the diagram below, that after creating the managed disks, we will also need to add 4 more Azure resources for the new VM to be accessible:

  • VNet
  • Subnet
  • PIP
  • Network Interface

#1. Login to Azure

#2. Declare Variables

#3. Create the Destination Resource Group and add a Virtual Network

#4. Create a Managed Disk (OS) from Snapshot

#5. Create a Managed Disk (Data) from Snapshot

#6. After creating the PIP & Network Interface for the VM, create a new VM from the Managed OS Disk:

#7 Start the VM

#8 Attach the new managed Data Disk & update the VM:

The Azure portal is showing both the os and data disks attached on the new VM: