You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Microsoft and Terraform have released a azurerm_storage_container_immutability_policy resource. This workaround can now be replaced by that:
# Workaround until azurerm_storage_container supports setting the version level immutability option.# See https://github.com/hashicorp/terraform-provider-azurerm/issues/21512 # and https://github.com/hashicorp/terraform-provider-azurerm/issues/3722 for more details.resource"azapi_resource""cc_container" {
type="Microsoft.Storage/storageAccounts/blobServices/containers@2022-09-01"name=var.cluster_name# We append '/blobServices/default' to the storage_account.id see desc. aboveparent_id="${azurerm_storage_account.cc_storage_account.id}/blobServices/default"body=jsonencode({
properties = {
immutableStorageWithVersioning = {
enabled ="${var.enableImmutability}"
}
publicAccess ="None"
}
})
}
Looking at this new resource, it requires setting the immutability_period_in_days. That may cause a conflict with CCES and needs to be tested. In theory, if the immutability_period_in_days is set to a low value (like 3 days) CCES can extend the lock afterward.
It also requires version 4.2.0 of the Azure provider. The minimum AzureRM provider version will need to be updated as well.
Is your feature request related to a problem? Please describe.
Microsoft and Terraform have released a
azurerm_storage_container_immutability_policy
resource. This workaround can now be replaced by that:Describe the solution you'd like
Replace
azapi_resource
workaround with:Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: