Open DamaniN opened 1 year ago
+1
you need to use the azapi. In 2024 this is still not working?
resource "azapi_resource" "container" { type = "Microsoft.Storage/storageAccounts/blobServices/containers@2022-09-01" name = var.container_name parent_id = "${azurerm_storage_account.sa.id}/blobServices/default"
body = jsonencode({ properties = { immutableStorageWithVersioning = { enabled = var.container_versioning_enabled } } }) }
Is there an existing issue for this?
Community Note
Description
Please add support for enabling Immutable Storage With Versioning on a container when it's created with
azurerm_storage_container
. This request was forked from this comment in #3722.More details about this feature flag can be found here: https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-policy-configure-version-scope?tabs=azure-portal#enable-version-level-immutability-for-a-new-container
New or Affected Resource(s)/Data Source(s)
azurerm_storage_container
Potential Terraform Configuration
References
https://github.com/hashicorp/terraform-provider-azurerm/issues/3722
https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-policy-configure-version-scope?tabs=azure-portal#enable-version-level-immutability-for-a-new-container