As Azure provides a perfect Azure Backup Solution for Virtual Machines. There is another alternate way where you can create your own customized Backup Solution for Virtual machines using Blob Snapshots.
Azure Storage provides the capability to take snapshots of blobs.
You might me wondering what is a Snapshots ?
In Hyper-V Environment the configuration, memory, and supporting process information is saved and a differencing disk is created to store future disk changes. When you delete a VM, all the snapshots are deleted. However, the virtual hard disk (VHD) is not deleted, which means all content stored in the differencing disks associated with the snapshots must be merged with the original VHD, as the following diagram shows.
In Azure it’s similar where Azure capture the blob state at that point in time. Lets dig down the scenario of how we can maintain backups of virtual machine disks using snapshots.
Steps for Implementing a full snapshot copy:
- First, take a snapshot of the base blob using the Snapshot Blob operation.
- Then, copy the snapshot to a target storage account using Copy Blob.
- Repeat this process to maintain backup copies of your base blob.
To read more on the implementation please navigate to: http://raghu.space/azure-arm-vm-snapshot/
Official Azure Documentation link: https://docs.microsoft.com/en-us/azure/storage/storage-incremental-snapshots
Happy Reading 🙂