Create a snapshot of VM using the portal or Powershell
Use the Azure portal
To create a snapshot, complete the following steps:
On the Azure portal, select Create a resource.
Search for and select Snapshot.
In the Snapshot window, select Create. The Create snapshot window appears.
Enter a Name for the snapshot.
Select an existing Resource group or enter the name of a new one.
Select an Azure datacenter Location.
For Source disk, select the managed disk to snapshot.
Select the Account type to use to store the snapshot. Select Standard_HDD, unless you need the snapshot to be stored on a high-performing disk.
Select Create.
Use Powershell
Set some parameters:
Get the VM:
Create the snapshot configuration. For this example, the snapshot is of the OS disk:
Take the snapshot:
Spin up a new VM for investigation
Select Create a Resource and search for ‘Managed Disks’.
When creating your Managed Disk, fill out the standard information. However, under ‘Source type’ make sure this is set to ‘Snapshot’ and then select your Snapshot that you have created.
From the Managed Disk screen you should see an option to ‘Create VM’, click this option.
Fill out the required information on the Create VM page
Create snapshot
name your snapshot and allocate it to a resource group