AzureTracks

Practical Azure and Microsoft 365 security walkthroughs

· · ·

Harden Azure Backup Against Ransomware with Immutable Vaults and Resource Guard

The goal of this article is to harden Azure Backup against destructive operations by validating soft delete, enabling vault immutability, protecting critical actions with Resource Guard multi-user authorization (MUA), and proving recoverability with a restore test.

Why build this

Use this pattern when Azure Backup protects critical VMs, databases, file shares, or other supported workloads and the organization needs stronger resistance to accidental deletion, compromised credentials, or ransomware. The most consequential decision is whether the vault should remain in the reversible Enabled immutability state or be locked permanently after validation.

Locked immutability is irreversible and blocks destructive operations until recovery points expire according to policy. Microsoft recommends reviewing protected items and retention settings before lock. Soft delete and Resource Guard add separate recovery and authorization layers rather than replacing immutability.

Fun fact: This type of storage used to be called WORM storage….write once – read many.

Security outcome

  • Deleted backup data remains recoverable during the configured soft-delete retention window, subject to the current secure-by-default behavior for the vault and region.
  • Immutability blocks operations that can delete recovery points or reduce retention, while Resource Guard MUA makes protected administrative actions require separate authorization.
  • A restore test proves that hardened recovery points are actually usable and gives the team evidence for ransomware recovery planning.

What you will deploy or configure

  • Soft delete state and retention reviewed. Azure Backup supports a configurable 14-180 day soft-delete retention window; secure-by-default rollout means the setting can be enforced and non-disableable in supported regions.
  • Immutable vault enabled in the reversible state for validation, followed by a documented production decision on whether to lock it permanently.
  • Resource Guard MUA associated with the vault. The Resource Guard must be in the same Azure region and should be placed in a separate subscription or tenant for stronger isolation.
  • A backup and restore test with evidence showing that recovery points remain usable after the controls are applied.
Microsoft baseline: Enable immutability first, validate current policies and restore behavior, and lock only after stakeholders accept that the setting is irreversible. For production, pair immutability with MUA rather than relying on a single backup administrator identity.
Special Highlight: Place Resource Guard in the same Azure region as the vault but preferably in a different subscription or tenant controlled by a security team. The backup administrator should not hold Contributor, Backup MUA Admin, or standing Backup MUA Operator access on the Resource Guard.

Prerequisites

  • A Recovery Services vault or Backup vault with a supported workload. Immutability applies to vaulted backup data; it does not apply to operational backups for resources such as blobs, files, and disks.
  • A representative non-production protected item and a restore target that can be used without affecting production.
  • A backup administrator with appropriate vault permissions and a separate security administrator who controls Resource Guard. The backup administrator needs Reader access on the Resource Guard to enable MUA.
  • Resource Guard planned in the same Azure region as the vault, with required resource providers registered in the participating subscription or tenant.

Before-state checklist

Capture the current backup security state before changing it so the article has a clean before/after comparison and the production change has a defensible approval record.

  • Record soft-delete state and retention, including whether secure-by-default behavior prevents the setting from being disabled in the vault region.
  • Record Immutable vault state: Disabled, Enabled, or Enabled and locked. If it is already locked, do not treat the exercise as reversible.
  • Record the current Resource Guard association, protected operations, and who can obtain Backup MUA Operator access.
  • Capture backup policies, current recovery points, recent backup jobs, and a known-good restore target before making changes.

Lab build

Use a non-production vault and representative protected item first. The pilot should validate soft-delete behavior, reversible immutability, MUA authorization, and an actual restore before the pattern is applied to production.

  1. Create or select a lab Recovery Services vault or Backup vault and configure a representative backup policy. Confirm the workload uses vaulted backup data that is covered by the immutability feature.
  2. Review soft delete under the vault security settings. Document the current secure-by-default or always-on state and choose an appropriate retention period between 14 and 180 days. Do not assume the setting can be disabled in every region or vault type.
  3. Open Properties > Immutable vault and enable vault immutability without locking it. In the Enabled state, destructive operations such as deleting backup data or reducing policy retention are blocked, but immutability can still be disabled by an authorized administrator.
  4. Run an on-demand backup and perform a restore validation. Do not lock immutability until backup policy behavior, restore procedures, and retention costs have been reviewed.
  5. Create or select a Resource Guard in the same Azure region as the vault. For stronger isolation, place it in a different subscription or tenant and keep Contributor, Backup MUA Admin, and standing Backup MUA Operator rights away from the day-to-day backup administrator.
  6. Enable MUA on the vault and test a protected operation. If you use Microsoft Entra PIM for just-in-time Backup MUA Operator access, explicitly configure Require approval to activate and named approvers; an eligible assignment without an approval requirement can auto-approve.
  7. After production validation and change approval, decide whether to lock immutability. Once locked, the setting cannot be disabled. If WORM compliance is required, verify current WORM storage availability for the vault type and Azure region before relying on it as a compliance control.

Change-window notes

  • Review every protected item and backup policy before a production immutability lock. Retention reductions and early deletion of recovery points will be blocked after lock.
  • Validate the Resource Guard access path before the change window, including cross-tenant authentication and the PIM approver workflow if used.
  • Keep the first production rollout narrow enough that the team can validate backup, restore, alerting, and approval behavior before expanding to additional vaults.
  • Treat immutability lock as the irreversible control point. Capture approval, expected retention cost, recovery objectives, and the tested restore procedure before applying it.

Reader copy/paste block

Use this as a change-ticket or pilot validation record. Replace the vault names and scope with values from your environment.

# Azure Backup ransomware-resilience validation

# 1. Soft delete state and 14-180 day retention documented.

# 2. Immutability enabled but not locked during pilot; backup and restore succeeded.

# 3. Resource Guard is in the same region and controlled from a separate trust boundary.

# 4. PIM/JIT Backup MUA Operator activation requires approval and a protected operation was tested.

# 5. Production immutability lock and retention-cost decision approved by service owner and security.

Production hardening

For production, combine soft delete, immutability, MUA, least privilege, monitoring, and repeatable restore testing. Store the lock approval and restore-test evidence with the ransomware recovery or business continuity runbook.

  • Review all protected items and policies before locking immutability. The setting applies at the vault level, and after lock no administrator can disable it or reduce retention to delete recovery points early.
  • Use Resource Guard as a separate trust boundary. Keep it in the same region as the vault but preferably in a separate subscription or tenant, and use Microsoft Entra PIM or another just-in-time process for Backup MUA Operator access.
  • If you use PIM, require approval to activate the protected role, name the approvers, and require MFA or ticket information as appropriate. Separation of duties is weakened if activation is automatically approved or the backup administrator controls both sides.
  • Review soft-delete retention against ransomware detection time and backup policy retention. Microsoft recommends more than 35 days or alignment with policy retention where appropriate; retention beyond the default 14 days can add backup charges.
  • Send backup security alerts, protected-operation evidence, and role changes into the existing SOC or platform workflow. Do not rely on a vault configuration that no team actively monitors.
  • Schedule periodic restore drills and record measured recovery time and recovery point objectives. A configuration is not a ransomware recovery strategy until recovery is exercised.

Operational handoff

  • Review vault security state, Resource Guard association, protected operations, and standing privileges on a recurring cadence.
  • Validate the PIM approver list and test the JIT authorization path periodically so emergency operations do not fail during an incident.
  • Store the restore procedure, expected RTO/RPO, retention settings, screenshot checklist, and irreversible lock approval with the service runbook.
  • Re-run a restore test after material backup-policy, identity, network, encryption, or workload changes.

Finished-state validation

Figure 2. Finished-state validation checklist after Azure Backup hardening.

ControlExpected resultEvidence to capture
Soft deleteState and 14-180 day retention documentedVault properties
ImmutabilityEnabled; production lock decision recordedImmutable vault settings
MUAResource Guard associated in the same regionVault + Resource Guard
PIM / accessMUA Operator activation requires approvalPIM role settings / audit
BackupRecent recovery point existsBackup job
RestoreTest restore succeeds; RTO/RPO notedRestore job
MonitoringSecurity alert ownership is documentedAzure Monitor / runbook

Cost and licensing notes

Azure Backup cost is driven by protected instances, storage, redundancy, retention, and any archive use. Immutability can keep recovery points until policy expiry because retention reductions and early deletion are blocked, so retention decisions should be approved before the vault is locked.

Soft delete uses a default 14-day retention window at no additional retention cost for vaulted backups; extending soft-delete retention beyond 14 days can incur regular backup charges. Recheck the Azure Backup pricing page before publication because rates and billing rules can change.

Known limitations and edge cases

  • Immutability lock is irreversible. Enabled-but-unlocked immutability is reversible, but the locked state cannot be disabled and prevents destructive operations until recovery points expire.
  • Feature scope differs by vault type and region. Secure-by-default soft-delete rollout is still region/vault dependent, and WORM storage availability for locked immutability does not have identical availability across Recovery Services vaults and Backup vaults.
  • Immutability applies to vaulted backup data and does not cover operational backups for blobs, files, and disks. Resource Guard must be in the same region as the vault, and MUA only provides strong separation when the backup administrator cannot control the Resource Guard or its approval path.

Troubleshooting

  • Retention cannot be reduced or backup data cannot be deleted: check Immutable vault state first. These operations are intentionally blocked when immutability is enabled; if the vault is locked, there is no rollback.
  • MUA association or a protected operation fails: confirm the Resource Guard is in the same region, the backup administrator has Reader access for association, required resource providers are registered, and cross-tenant authentication is working when applicable.
  • A PIM-protected operation is approved too easily: open the Resource Guard role settings in Microsoft Entra PIM and confirm Require approval to activate is enabled with named approvers. Eligible access alone does not guarantee human approval.
  • Soft-delete controls are not editable or a restored item does not resume backup: secure-by-default can make soft delete non-disableable, and undeleting an item restores access to recovery points but does not automatically resume scheduled backups.

Rollback or cleanup

  • In a lab, immutability can be disabled only while it remains Enabled and not locked. If MUA protects the operation, obtain the required Resource Guard authorization before attempting the change.
  • Removing the Resource Guard association is itself a protected operation. Use the approved Backup MUA Operator access path, preserve audit evidence, and remove any temporary role activation after the change.
  • Locked immutability has no rollback. Secure-by-default or always-on soft-delete states can also be non-disableable. Treat these decisions as approval gates rather than settings to be undone later.

I hope this post about Azure Backup and Backup resiliency was helpful and informative! There are many different items that can help us build better backup and restore configurations in Azure, this is an important step towards digital protection. See you next time here in the cloud!

About AzureTracks

AzureTracks publishes practical Azure and Microsoft 365 security guidance with deployment, validation, operational, and rollback considerations.

Learn more about Andrew and the site’s technical approach →