Create Azure VM from Snapshot — PowerShell
- 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).
Create a Snapshot (already created for this exercise)
Create Managed disks from Operating System (OS) and Data Disk Snapshots
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