Omer Shliva
Omer Shliva

Reputation: 303

Is there a support for Data protection - storage account on Azure using Terraform?

Is there a resource I can use in order to enable Azure's blob data protection objects: soft delete && versioning?

Upvotes: 1

Views: 3965

Answers (1)

Charles Xu
Charles Xu

Reputation: 31454

You just need to set the property delete_retention_policy of the Azure Storage account in blob_properties like this example:

blob_properties {
    delete_retention_policy {
      days = 7
    }
  }

Then it works for the Blob like this:

enter image description here

Upvotes: 2

Related Questions