Added module code.

This commit is contained in:
2026-02-20 08:18:05 +01:00
parent cb7a745b19
commit ba7be7d8d9
5 changed files with 157 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# 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.
- `storage_account_base_name`: A base name for the storage account. If `storage_account_name` is not provided, the module will generate a unique name using this base name and a hash of the subscription ID, resource group name, and base name.
- `storage_account_name`: The name of the storage account. If not provided, it will be generated based on the `storage_account_base_name`.
- `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").
## 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.