1. Packages
  2. Azure Native v2
  3. API Docs
  4. storage
  5. BlobContainerLegalHold
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.storage.BlobContainerLegalHold

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storage:BlobContainerLegalHold myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/legalHold 
Copy

Create BlobContainerLegalHold Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BlobContainerLegalHold(name: string, args: BlobContainerLegalHoldArgs, opts?: CustomResourceOptions);
@overload
def BlobContainerLegalHold(resource_name: str,
                           args: BlobContainerLegalHoldArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def BlobContainerLegalHold(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           account_name: Optional[str] = None,
                           container_name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           tags: Optional[Sequence[str]] = None,
                           allow_protected_append_writes_all: Optional[bool] = None)
func NewBlobContainerLegalHold(ctx *Context, name string, args BlobContainerLegalHoldArgs, opts ...ResourceOption) (*BlobContainerLegalHold, error)
public BlobContainerLegalHold(string name, BlobContainerLegalHoldArgs args, CustomResourceOptions? opts = null)
public BlobContainerLegalHold(String name, BlobContainerLegalHoldArgs args)
public BlobContainerLegalHold(String name, BlobContainerLegalHoldArgs args, CustomResourceOptions options)
type: azure-native:storage:BlobContainerLegalHold
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BlobContainerLegalHoldArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BlobContainerLegalHoldArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BlobContainerLegalHoldArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BlobContainerLegalHoldArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BlobContainerLegalHoldArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var blobContainerLegalHoldResource = new AzureNative.Storage.BlobContainerLegalHold("blobContainerLegalHoldResource", new()
{
    AccountName = "string",
    ContainerName = "string",
    ResourceGroupName = "string",
    Tags = new[]
    {
        "string",
    },
    AllowProtectedAppendWritesAll = false,
});
Copy
example, err := storage.NewBlobContainerLegalHold(ctx, "blobContainerLegalHoldResource", &storage.BlobContainerLegalHoldArgs{
	AccountName:       "string",
	ContainerName:     "string",
	ResourceGroupName: "string",
	Tags: []string{
		"string",
	},
	AllowProtectedAppendWritesAll: false,
})
Copy
var blobContainerLegalHoldResource = new BlobContainerLegalHold("blobContainerLegalHoldResource", BlobContainerLegalHoldArgs.builder()
    .accountName("string")
    .containerName("string")
    .resourceGroupName("string")
    .tags("string")
    .allowProtectedAppendWritesAll(false)
    .build());
Copy
blob_container_legal_hold_resource = azure_native.storage.BlobContainerLegalHold("blobContainerLegalHoldResource",
    account_name=string,
    container_name=string,
    resource_group_name=string,
    tags=[string],
    allow_protected_append_writes_all=False)
Copy
const blobContainerLegalHoldResource = new azure_native.storage.BlobContainerLegalHold("blobContainerLegalHoldResource", {
    accountName: "string",
    containerName: "string",
    resourceGroupName: "string",
    tags: ["string"],
    allowProtectedAppendWritesAll: false,
});
Copy
type: azure-native:storage:BlobContainerLegalHold
properties:
    accountName: string
    allowProtectedAppendWritesAll: false
    containerName: string
    resourceGroupName: string
    tags:
        - string
Copy

BlobContainerLegalHold Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BlobContainerLegalHold resource accepts the following input properties:

AccountName This property is required. string
Name of the Storage Account.
ContainerName This property is required. string
Name of the Blob Container.
ResourceGroupName This property is required. string
Name of the resource group that contains the storage account.
Tags This property is required. List<string>
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
AllowProtectedAppendWritesAll bool
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
AccountName This property is required. string
Name of the Storage Account.
ContainerName This property is required. string
Name of the Blob Container.
ResourceGroupName This property is required. string
Name of the resource group that contains the storage account.
Tags This property is required. []string
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
AllowProtectedAppendWritesAll bool
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
accountName This property is required. String
Name of the Storage Account.
containerName This property is required. String
Name of the Blob Container.
resourceGroupName This property is required. String
Name of the resource group that contains the storage account.
tags This property is required. List<String>
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
allowProtectedAppendWritesAll Boolean
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
accountName This property is required. string
Name of the Storage Account.
containerName This property is required. string
Name of the Blob Container.
resourceGroupName This property is required. string
Name of the resource group that contains the storage account.
tags This property is required. string[]
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
allowProtectedAppendWritesAll boolean
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
account_name This property is required. str
Name of the Storage Account.
container_name This property is required. str
Name of the Blob Container.
resource_group_name This property is required. str
Name of the resource group that contains the storage account.
tags This property is required. Sequence[str]
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
allow_protected_append_writes_all bool
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.
accountName This property is required. String
Name of the Storage Account.
containerName This property is required. String
Name of the Blob Container.
resourceGroupName This property is required. String
Name of the resource group that contains the storage account.
tags This property is required. List<String>
List of legal hold tags. Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case at SRP.
allowProtectedAppendWritesAll Boolean
When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining legal hold protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted.

Outputs

All input properties are implicitly available as output properties. Additionally, the BlobContainerLegalHold resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi