How do I configure long-term retention for Azure VM backups?

Priyadarshini 60 Reputation points
2026-07-01T17:38:13.18+00:00

How do I configure long-term retention for Azure VM backups?

Azure Backup
Azure Backup

An Azure backup service that provides built-in management at scale.


1 answer

Sort by: Most helpful
  1. AI answer

    2026-07-01T17:38:41.9066667+00:00

    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:

    1. Open the Recovery Services vault
      • In the Azure portal, go to the Recovery Services vault that protects the VM.
      • Under Backup, select Backup policies.
    2. 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.
    3. Configure backup schedule
      • Under Backup schedule, choose Daily or Weekly backups for the VM.
      • This schedule defines how often recovery points are created.
    4. 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.
    5. 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.
    6. Save and apply the policy
      • Select OK or Create to save the policy.
      • Associate the policy with the VM (if not already) via BackupEnable 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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.