Other Articles

Storage Account – Enable Blob Versioning

Secure Configuration Checks > Azure

This check ensures that blob versioning is enabled for Azure Storage Accounts. When versioning is enabled, Azure automatically keeps the previous version of a blob each time it is modified or deleted, so earlier versions can be restored if data is overwritten or removed by mistake or by a malicious actor.

Check Details

  • Resource: Storage Account
  • Check: Enable Blob Versioning
  • Risk: If blob versioning is disabled, a blob that is overwritten or corrupted cannot be rolled back to an earlier state, increasing the risk of permanent data loss and loss of data integrity.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal dashboard
  2. Navigate to Storage accounts and select the affected storage account. Azure Storage Accounts list
  3. In the left menu, click on Data protection under Data management.
  4. In the Tracking section, select Enable versioning for blobs. Blob versioning enabled
  5. Click Save to apply the changes.

Remediation via Azure CLI

  1. Open Azure Cloud Shell from the Azure Portal or use a local terminal with Azure CLI installed. Azure Cloud Shell
  2. Run the following command to enable blob versioning:
    az storage account blob-service-properties update \
    --account-name <storage-account-name> \
    --resource-group <resource-group-name> \
    --enable-versioning true
    

    Replace <storage-account-name> and <resource-group-name> with your actual values.

Updated on 03 November, 2026