Profile Applicability:
- Level 1
Description:
Soft Delete protects blobs and containers in Azure Storage by retaining deleted data for a configurable retention period. This feature allows recovery of deleted blobs or containers within the retention window, safeguarding against accidental or malicious deletions.
Rationale:
Enabling Soft Delete minimizes data loss risks by providing a recovery option for deleted storage objects. It supports business continuity and compliance with data retention policies.
Impact:
Pros:
Prevents permanent loss of data due to accidental or malicious deletions.
Enhances recovery capabilities and data protection.
Supports regulatory compliance.
Cons:
May increase storage costs due to retained deleted data.
Requires management of retention settings.
Default Value:
Soft Delete is disabled by default and requires explicit activation.
Pre-requisites:
Azure Storage Account with Blob service enabled.
Permissions to configure blob service properties.
Remediation
Test Plan:
Using Azure Portal:
Sign in to https://portal.azure.com.
Navigate to the Storage Account.
Under Data Protection, verify that Soft Delete for blobs and containers is enabled and retention days are set.
Using Azure CLI:
Check soft delete settings:
# az storage blob service-properties show --account-name --query deleteRetentionPolicy
Confirm enabled is true and retention days are configured.
Implementation Plan
Using Azure Portal:
Enable Soft Delete for blobs and containers in the Storage Account’s Data Protection settings.
Set an appropriate retention period (e.g., 7 days).
Save and validate the configuration.
Using Azure CLI:
Enable soft delete with retention days:
# az storage blob service-properties update --account-name --enable-delete-retention true --delete-retention-days
Verify the setting.
Backout Plan
Using Azure Portal:
Disable Soft Delete if necessary.
Understand risk of permanent deletion without recovery option.
Using Azure CLI:
Disable soft delete:
# az storage blob service-properties update --account-name --enable-delete-retention false
References: