top of page

Create Azure VM from Snapshot — PowerShell

  • Writer: Arlan Nugara
    Arlan Nugara
  • Apr 17, 2023
  • 1 min read

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



Comments


 

© 2025 by Alvarnet Azure Blog.

 

Arlan's Azure Blog

bottom of page