1. Packages
  2. Azure Native
  3. API Docs
  4. storage
  5. BlobContainerImmutabilityPolicy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.storage.BlobContainerImmutabilityPolicy

Explore with Pulumi AI

The ImmutabilityPolicy property of a blob container, including Id, resource name, resource type, Etag.

Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01.

Other available API versions: 2022-09-01, 2023-01-01, 2023-04-01, 2023-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storage [ApiVersion]. See the version guide for details.

Example Usage

CreateOrUpdateImmutabilityPolicy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var blobContainerImmutabilityPolicy = new AzureNative.Storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", new()
    {
        AccountName = "sto7069",
        AllowProtectedAppendWrites = true,
        ContainerName = "container6397",
        ImmutabilityPeriodSinceCreationInDays = 3,
        ImmutabilityPolicyName = "default",
        ResourceGroupName = "res1782",
    });

});
Copy
package main

import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBlobContainerImmutabilityPolicy(ctx, "blobContainerImmutabilityPolicy", &storage.BlobContainerImmutabilityPolicyArgs{
			AccountName:                           pulumi.String("sto7069"),
			AllowProtectedAppendWrites:            pulumi.Bool(true),
			ContainerName:                         pulumi.String("container6397"),
			ImmutabilityPeriodSinceCreationInDays: pulumi.Int(3),
			ImmutabilityPolicyName:                pulumi.String("default"),
			ResourceGroupName:                     pulumi.String("res1782"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.BlobContainerImmutabilityPolicy;
import com.pulumi.azurenative.storage.BlobContainerImmutabilityPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var blobContainerImmutabilityPolicy = new BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", BlobContainerImmutabilityPolicyArgs.builder()
            .accountName("sto7069")
            .allowProtectedAppendWrites(true)
            .containerName("container6397")
            .immutabilityPeriodSinceCreationInDays(3)
            .immutabilityPolicyName("default")
            .resourceGroupName("res1782")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const blobContainerImmutabilityPolicy = new azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", {
    accountName: "sto7069",
    allowProtectedAppendWrites: true,
    containerName: "container6397",
    immutabilityPeriodSinceCreationInDays: 3,
    immutabilityPolicyName: "default",
    resourceGroupName: "res1782",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

blob_container_immutability_policy = azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy",
    account_name="sto7069",
    allow_protected_append_writes=True,
    container_name="container6397",
    immutability_period_since_creation_in_days=3,
    immutability_policy_name="default",
    resource_group_name="res1782")
Copy
resources:
  blobContainerImmutabilityPolicy:
    type: azure-native:storage:BlobContainerImmutabilityPolicy
    properties:
      accountName: sto7069
      allowProtectedAppendWrites: true
      containerName: container6397
      immutabilityPeriodSinceCreationInDays: 3
      immutabilityPolicyName: default
      resourceGroupName: res1782
Copy

CreateOrUpdateImmutabilityPolicyWithAllowProtectedAppendWritesAll

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var blobContainerImmutabilityPolicy = new AzureNative.Storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", new()
    {
        AccountName = "sto7069",
        AllowProtectedAppendWritesAll = true,
        ContainerName = "container6397",
        ImmutabilityPeriodSinceCreationInDays = 3,
        ImmutabilityPolicyName = "default",
        ResourceGroupName = "res1782",
    });

});
Copy
package main

import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBlobContainerImmutabilityPolicy(ctx, "blobContainerImmutabilityPolicy", &storage.BlobContainerImmutabilityPolicyArgs{
			AccountName:                           pulumi.String("sto7069"),
			AllowProtectedAppendWritesAll:         pulumi.Bool(true),
			ContainerName:                         pulumi.String("container6397"),
			ImmutabilityPeriodSinceCreationInDays: pulumi.Int(3),
			ImmutabilityPolicyName:                pulumi.String("default"),
			ResourceGroupName:                     pulumi.String("res1782"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.BlobContainerImmutabilityPolicy;
import com.pulumi.azurenative.storage.BlobContainerImmutabilityPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var blobContainerImmutabilityPolicy = new BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", BlobContainerImmutabilityPolicyArgs.builder()
            .accountName("sto7069")
            .allowProtectedAppendWritesAll(true)
            .containerName("container6397")
            .immutabilityPeriodSinceCreationInDays(3)
            .immutabilityPolicyName("default")
            .resourceGroupName("res1782")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const blobContainerImmutabilityPolicy = new azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy", {
    accountName: "sto7069",
    allowProtectedAppendWritesAll: true,
    containerName: "container6397",
    immutabilityPeriodSinceCreationInDays: 3,
    immutabilityPolicyName: "default",
    resourceGroupName: "res1782",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

blob_container_immutability_policy = azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicy",
    account_name="sto7069",
    allow_protected_append_writes_all=True,
    container_name="container6397",
    immutability_period_since_creation_in_days=3,
    immutability_policy_name="default",
    resource_group_name="res1782")
Copy
resources:
  blobContainerImmutabilityPolicy:
    type: azure-native:storage:BlobContainerImmutabilityPolicy
    properties:
      accountName: sto7069
      allowProtectedAppendWritesAll: true
      containerName: container6397
      immutabilityPeriodSinceCreationInDays: 3
      immutabilityPolicyName: default
      resourceGroupName: res1782
Copy

Create BlobContainerImmutabilityPolicy Resource

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

Constructor syntax

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

@overload
def BlobContainerImmutabilityPolicy(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    account_name: Optional[str] = None,
                                    container_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    allow_protected_append_writes: Optional[bool] = None,
                                    allow_protected_append_writes_all: Optional[bool] = None,
                                    immutability_period_since_creation_in_days: Optional[int] = None,
                                    immutability_policy_name: Optional[str] = None)
func NewBlobContainerImmutabilityPolicy(ctx *Context, name string, args BlobContainerImmutabilityPolicyArgs, opts ...ResourceOption) (*BlobContainerImmutabilityPolicy, error)
public BlobContainerImmutabilityPolicy(string name, BlobContainerImmutabilityPolicyArgs args, CustomResourceOptions? opts = null)
public BlobContainerImmutabilityPolicy(String name, BlobContainerImmutabilityPolicyArgs args)
public BlobContainerImmutabilityPolicy(String name, BlobContainerImmutabilityPolicyArgs args, CustomResourceOptions options)
type: azure-native:storage:BlobContainerImmutabilityPolicy
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. BlobContainerImmutabilityPolicyArgs
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. BlobContainerImmutabilityPolicyArgs
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. BlobContainerImmutabilityPolicyArgs
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. BlobContainerImmutabilityPolicyArgs
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. BlobContainerImmutabilityPolicyArgs
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 blobContainerImmutabilityPolicyResource = new AzureNative.Storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicyResource", new()
{
    AccountName = "string",
    ContainerName = "string",
    ResourceGroupName = "string",
    AllowProtectedAppendWrites = false,
    AllowProtectedAppendWritesAll = false,
    ImmutabilityPeriodSinceCreationInDays = 0,
    ImmutabilityPolicyName = "string",
});
Copy
example, err := storage.NewBlobContainerImmutabilityPolicy(ctx, "blobContainerImmutabilityPolicyResource", &storage.BlobContainerImmutabilityPolicyArgs{
	AccountName:                           pulumi.String("string"),
	ContainerName:                         pulumi.String("string"),
	ResourceGroupName:                     pulumi.String("string"),
	AllowProtectedAppendWrites:            pulumi.Bool(false),
	AllowProtectedAppendWritesAll:         pulumi.Bool(false),
	ImmutabilityPeriodSinceCreationInDays: pulumi.Int(0),
	ImmutabilityPolicyName:                pulumi.String("string"),
})
Copy
var blobContainerImmutabilityPolicyResource = new BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicyResource", BlobContainerImmutabilityPolicyArgs.builder()
    .accountName("string")
    .containerName("string")
    .resourceGroupName("string")
    .allowProtectedAppendWrites(false)
    .allowProtectedAppendWritesAll(false)
    .immutabilityPeriodSinceCreationInDays(0)
    .immutabilityPolicyName("string")
    .build());
Copy
blob_container_immutability_policy_resource = azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicyResource",
    account_name="string",
    container_name="string",
    resource_group_name="string",
    allow_protected_append_writes=False,
    allow_protected_append_writes_all=False,
    immutability_period_since_creation_in_days=0,
    immutability_policy_name="string")
Copy
const blobContainerImmutabilityPolicyResource = new azure_native.storage.BlobContainerImmutabilityPolicy("blobContainerImmutabilityPolicyResource", {
    accountName: "string",
    containerName: "string",
    resourceGroupName: "string",
    allowProtectedAppendWrites: false,
    allowProtectedAppendWritesAll: false,
    immutabilityPeriodSinceCreationInDays: 0,
    immutabilityPolicyName: "string",
});
Copy
type: azure-native:storage:BlobContainerImmutabilityPolicy
properties:
    accountName: string
    allowProtectedAppendWrites: false
    allowProtectedAppendWritesAll: false
    containerName: string
    immutabilityPeriodSinceCreationInDays: 0
    immutabilityPolicyName: string
    resourceGroupName: string
Copy

BlobContainerImmutabilityPolicy 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 BlobContainerImmutabilityPolicy resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ContainerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
AllowProtectedAppendWrites bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
AllowProtectedAppendWritesAll bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
ImmutabilityPeriodSinceCreationInDays int
The immutability period for the blobs in the container since the policy creation, in days.
ImmutabilityPolicyName Changes to this property will trigger replacement. string
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
ContainerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
AllowProtectedAppendWrites bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
AllowProtectedAppendWritesAll bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
ImmutabilityPeriodSinceCreationInDays int
The immutability period for the blobs in the container since the policy creation, in days.
ImmutabilityPolicyName Changes to this property will trigger replacement. string
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
allowProtectedAppendWrites Boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
allowProtectedAppendWritesAll Boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
immutabilityPeriodSinceCreationInDays Integer
The immutability period for the blobs in the container since the policy creation, in days.
immutabilityPolicyName Changes to this property will trigger replacement. String
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
allowProtectedAppendWrites boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
allowProtectedAppendWritesAll boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
immutabilityPeriodSinceCreationInDays number
The immutability period for the blobs in the container since the policy creation, in days.
immutabilityPolicyName Changes to this property will trigger replacement. string
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
container_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the user's subscription. The name is case insensitive.
allow_protected_append_writes bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
allow_protected_append_writes_all bool
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
immutability_period_since_creation_in_days int
The immutability period for the blobs in the container since the policy creation, in days.
immutability_policy_name Changes to this property will trigger replacement. str
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
containerName
This property is required.
Changes to this property will trigger replacement.
String
The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
allowProtectedAppendWrites Boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API.
allowProtectedAppendWritesAll Boolean
This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive.
immutabilityPeriodSinceCreationInDays Number
The immutability period for the blobs in the container since the policy creation, in days.
immutabilityPolicyName Changes to this property will trigger replacement. String
The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default'

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Etag string
Resource Etag.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
State string
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Etag string
Resource Etag.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
State string
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
etag String
Resource Etag.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
state String
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
etag string
Resource Etag.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
state string
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
etag str
Resource Etag.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
state str
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
etag String
Resource Etag.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
state String
The ImmutabilityPolicy state of a blob container, possible values include: Locked and Unlocked.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Import

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

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

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0