Skip to main content

Remediation

From Azure Portal​

  1. Go to Storage accounts.
  2. Click the name of a storage account with blob storage.
  3. In the Overview page, on the Properties tab, under Blob service, click Disabled next to Versioning.
  4. Under Tracking, check the box next to Enable versioning for blobs.
  5. Select the radio button next to Keep all versions or Delete versions after (in days).
  6. If selecting to delete versions, enter a number of in the box after which to delete blob versions.
  7. Click Save.
  8. Repeat steps 1-7 for each storage account with blob storage.

From Azure CLI​

For each storage account requiring remediation, run the following command to enable blob versioning:

az storage account blob-service-properties update --account-name <storage-account> --enable-versioning true

From PowerShell​

For each storage account requiring remediation, run the following command to enable blob versioning:

Update-AzStorageBlobServiceProperty -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -IsVersioningEnabled $true