What is soft delete in storage account or delta lake ?
Soft Delete in storage account
Enabling this configuration for azure storage ensures that even if blobs/data were deleted from the storage account, Blobs/data objects remain recoverable for a particular time which set in the 'Retention policies' [Retention policies can be 7 days to 365 days].
Solution
From Azure Console:
Go to Storage Account
For each Storage Account, navigate to Data Protection
Select set soft delete enabled and enter a number of days you want to retain soft deleted data.
Using Azure Command-Line Interface 2.0:
Update retention days in below command
az storage blob service-properties delete-policy update --days-retained <RetentionDaysValue> --account-name <StorageAccountName> --enable true
Default Value:
When new storage account is created, soft delete is by default disabled.
Comments
Post a Comment