azure::storage-account¶
Creates a storage account
Example¶
azure::storage-account file-storage-account-example
resource-group: $(azure::resource-group file-resource-group)
name: "storageaccount"
cors-rule
allowed-headers: ["*"]
allowed-methods: ["PUT"]
allowed-origins: ["*"]
exposed-headers: ["*"]
max-age: 6
type: "table"
end
lifecycle
rule
name: "rule1"
enabled: false
definition
action
base-blob
delete-days: 1
tier-to-archive-days: 1
tier-to-cool-days: 1
end
snapshot
delete-days: 1
end
end
filter
prefix-matches: [
container/box1
]
end
end
end
tags: {
Name: "storageaccount"
}
end
Attributes¶
| Attribute | Description |
|---|---|
| cors-rule set subresource | The cors rules associated with the Storage Account.
|
| resource-group | The Resource Group under which the Storage Account would reside. (Required) |
| name | The name of the Storage Account. (Required) |
| tags map | The tags for the Storage Account. |
| lifecycle subresource | The lifecycle associated with the Storage Account. Only supported when ‘upgrade-account-v2’ set to ``true.
|
| upgrade-account-v2 | Upgrade account to General Purpose Account Kind V2. Cannot be downgraded. |
| blob-public-access | When set to true, allows blob public access, configured by individual containers. |
Outputs¶
| Attribute | Description |
|---|---|
| id | The ID of the Storage Account. |