An Azure backup service that provides built-in management at scale.
To configure long-term retention for Azure VM backups, define and apply an Azure Backup policy that includes long-term (weekly/monthly/yearly) retention for VM recovery points. This is done through a Recovery Services vault and its backup policies.
Use these steps in the Azure portal (classic/custom policy) for Azure VMs:
- Open the Recovery Services vault
- In the Azure portal, go to the Recovery Services vault that protects the VM.
- Under Backup, select Backup policies.
- Create or edit a backup policy
- To create a new policy, select + Add (or Create a custom policy depending on the experience).
- Policy type: choose Azure Virtual Machine.
- Set Policy name to something meaningful.
- Configure backup schedule
- Under Backup schedule, choose Daily or Weekly backups for the VM.
- This schedule defines how often recovery points are created.
- Configure Instant Restore (short-term snapshot retention)
- In Instant Restore, specify how long to retain snapshots locally for instant restore.
- For standard/custom VM backup policies, snapshots can typically be retained from 1 to 5 days (default 2 days).
- For Enhanced policies, snapshot retention can be from 1 to 30 days, with a default of 7 days, but it cannot exceed the vault retention duration.
- Configure long-term retention (LTR)
- In Retention range, configure how long to keep:
- Daily or Weekly backup points (short-term retention).
- Retention of monthly backup point – enable and set how many months to retain selected monthly points.
- Retention of yearly backup point – enable and set how many years to retain selected yearly points.
- These monthly and yearly retention settings are the long-term retention for VM backups.
- For Enhanced policies, default retention values are:
- Daily: 180 days
- Weekly: 12 weeks
- Monthly: 60 months
- Yearly: 10 years and can be customized as required.
- In Retention range, configure how long to keep:
- Save and apply the policy
- Select OK or Create to save the policy.
- Associate the policy with the VM (if not already) via Backup → Enable backup on the VM or via the vault’s Backup items / Backup workflow.
- When backup is enabled, the policy is deployed to the vault and the VM, and the backup extension is installed on the VM agent. Backups then run according to the schedule and retention settings, creating recovery points that are kept for the configured long-term periods.
Key considerations for long-term retention
- Use weekly/monthly/yearly retention options for compliance-driven long-term retention.
- Ensure vault retention (daily/weekly/monthly/yearly) is at least as long as any Instant Restore snapshot retention configured.
- Plan retention based on RTO/RPO and regulatory requirements; long-term retention is typically for planned compliance scenarios.
References:
- Back up an Azure virtual machine in Azure Extended Zones
- Back up an Azure VM by using the Enhanced policy
- Back up Azure VMs in a Recovery Services vault
- Quickstart: Back up a virtual machine in Azure
- Get improved backup and restore performance with the Azure Backup Instant Restore capability
- Backup cloud and on-premises workloads to cloud