This article describes recommendations for Sitecore customers who are hosting Sitecore solutions in Azure and using Azure Blob Storage module for Sitecore media files.
Azure Blob Storage module uses Azure Storage account blob for Sitecore media files.
In order to avoid accidental deletes or overwrites of blob data, you can enable soft delete for blobs. When data is deleted, it is transitioned to a soft deleted state instead of being permanently erased. Object-level soft delete is available for all storage account types and all storage tiers. It does not protect against container or account deletions. Container soft delete does not protect against the deletion of a storage account, but only against the deletion of containers in that account.
In order to maintain visibility, you can enable diagnostic settings for your Azure storage account, and enforce these settings to retrieve the history of individual users’ actions and the history taken during a particular date range.
When a new storage account is created automatically for blobs and content, soft delete might be off by default as well as diagnostic settings.
Cost impact:
To enable soft delete for blobs in your storage account using the Azure portal, follow these steps:
To enable diagnostic settings: