2.8 KiB
2.8 KiB
Azure Storage Account Module
This module creates an Azure Storage Account with the specified name, resource group, and location. It also allows for the creation of storage containers within the account.
Variables
rg_name: The name of the resource group where the storage account will be created.location: The Azure region where the storage account will be created.base_name: Optional base name used to generate a unique storage account name whennameis not set.name: Optional explicit storage account name. If omitted, the module generates a deterministic name frombase_name.account_tier: Storage account performance tier.account_replication_type: Storage account replication strategy.allow_nested_items_to_be_public: Controls whether nested blobs/containers can be public.public_network_access_enabled: Enables or disables public network access.tags: Tags to apply to the storage account.containers: A map of storage containers to be created within the storage account. Each container is defined as an object with the following properties:name: The name of the storage container.container_access_type: The access level of the container (e.g., "private", "blob", "container").
Blob Data Protection Inputs
enable_blob_soft_delete(optional, defaultfalse): Enables blob soft delete (delete_retention_policy) to recover deleted blobs/snapshots within a retention window.blob_soft_delete_retention_days(optional, defaultnull): Retention days for blob soft delete. Whennull, provider default is used.enable_container_soft_delete(optional, defaultfalse): Enables container soft delete (container_delete_retention_policy) to recover deleted containers.container_soft_delete_retention_days(optional, defaultnull): Retention days for container soft delete. Whennull, provider default is used.enable_blob_versioning(optional, defaultfalse): Stores previous blob versions so changes can be rolled back.enable_blob_change_feed(optional, defaultfalse): Records ordered blob change events for audit, replay, and recovery workflows.enable_point_in_time_restore_for_containers(optional, defaultfalse): Enables point-in-time restore (restore_policy) for blob data to recover state from a chosen point in time.point_in_time_restore_days(optional, defaultnull): Restore window in days. Required only when point-in-time restore is enabled.
Point-in-time restore requires enable_blob_soft_delete = true, enable_blob_versioning = true, and enable_blob_change_feed = true.
Outputs
storage_account_id: The ID of the created storage account.storage_account_name: The name of the created storage account.container_names: A list of the names of the created storage containers.