Hello, @Rajan Gahlout !
How do I automatically take disk snapshots of a VM for backup?
This functionality is not included by default in Azure, but you can set this up using Azure Automation Runbooks. Here are 3 guides you can reference that will walk you through the process. The Yst@IT
blog on top is the most recent with a lot of screenshots and PowerShell scripts that are easy to follow along:
- Yst@IT blog: Azure Use Automation to Snapshot and Create Disk Periodically
- StarWind blog by Nicolas Prigent: Automating Disk Snapshots using Azure Runbook
- Blog by Abhimanyu Garg: Automate Disk Snapshots in Azure !
The process includes creating a Runbook (PowerShell), adding a PowerShell script that takes a snapshot with something like New-AzSnapshot and create a disk using New-AzDisk, and creating a schedule for when you want the automation to be run.