Expand description
Manages an Immutability Policy for a Container within an Azure Storage Account.
§Example Usage
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: examplestoraccount
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: LRS
tags:
environment: staging
exampleContainer:
type: azure:storage:Container
name: example
properties:
name: example
storageAccountName: ${exampleAccount.name}
containerAccessType: private
exampleContainerImmutabilityPolicy:
type: azure:storage:ContainerImmutabilityPolicy
name: example
properties:
storageContainerResourceManagerId: ${exampleContainer.resourceManagerId}
immutabilityPeriodInDays: 14
protectedAppendWritesAllEnabled: false
protectedAppendWritesEnabled: true
§Import
Storage Container Immutability Policies can be imported using the resource id
, e.g.
$ pulumi import azure:storage/containerImmutabilityPolicy:ContainerImmutabilityPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount/blobServices/default/containers/mycontainer/immutabilityPolicies/default
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments