BlobContainer
A resource of the Azure provider, version 0.3.0, in its Storage group. Import it with:
import BlobContainer from "azure/storage"Example
resource BlobContainer example {
name = "example-value"
storageAccountName = "example-value"
resourceGroup = "example-value"
publicAccess = "None"
metadata = "..."
immutableStorageWithVersioning = true
defaultEncryptionScope = "example-value"
denyEncryptionScopeOverride = true
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the blob container. Must be 3-63 characters, lowercase letters, numbers, and hyphens |
storageAccountName | string | — | No | The name of the storage account |
resourceGroup | string | — | No | The resource group name |
publicAccess | string | "None" | No | The level of public access to the container. None: No public access, Blob: Public read access for blobs only, Container: Public read access for container and blobs Allowed: "None", "Blob", "Container" |
metadata | object | — | No | Container metadata as key-value pairs |
immutableStorageWithVersioning | boolean | — | No | Enable immutable storage with versioning. Once enabled, cannot be disabled |
defaultEncryptionScope | string | — | No | Default encryption scope for the container |
denyEncryptionScopeOverride | boolean | — | No | Deny encryption scope override. When true, blobs must use the container's default encryption scope |
Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The resource ID of the container |
etag | string | No | The ETag of the container |
lastModifiedTime | string | No | The last modified time |
leaseStatus | string | No | The lease status |
leaseState | string | No | The lease state |
hasImmutabilityPolicy | boolean | No | Whether the container has immutability policy |
hasLegalHold | boolean | No | Whether the container has legal hold |