azure-native.storage.ManagementPolicy
Explore with Pulumi AI
The Get Storage Account ManagementPolicies operation response. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-02-01.
Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01, 2024-01-01.
Example Usage
StorageAccountSetManagementPolicies
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobIndexMatch = new[]
                            {
                                new AzureNative.Storage.Inputs.TagFilterArgs
                                {
                                    Name = "tag1",
                                    Op = "==",
                                    Value = "val1",
                                },
                                new AzureNative.Storage.Inputs.TagFilterArgs
                                {
                                    Name = "tag2",
                                    Op = "==",
                                    Value = "val2",
                                },
                            },
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer2",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest2",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobIndexMatch: storage.TagFilterArray{
									&storage.TagFilterArgs{
										Name:  pulumi.String("tag1"),
										Op:    pulumi.String("=="),
										Value: pulumi.String("val1"),
									},
									&storage.TagFilterArgs{
										Name:  pulumi.String("tag2"),
										Op:    pulumi.String("=="),
										Value: pulumi.String("val2"),
									},
								},
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer2"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest2"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(                
                    ManagementPolicyRuleArgs.builder()
                        .definition(ManagementPolicyDefinitionArgs.builder()
                            .actions(ManagementPolicyActionArgs.builder()
                                .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                    .delete(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(1000)
                                        .build())
                                    .tierToArchive(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(90)
                                        .build())
                                    .tierToCool(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(30)
                                        .build())
                                    .build())
                                .snapshot(ManagementPolicySnapShotArgs.builder()
                                    .delete(DateAfterCreationArgs.builder()
                                        .daysAfterCreationGreaterThan(30)
                                        .build())
                                    .build())
                                .build())
                            .filters(ManagementPolicyFilterArgs.builder()
                                .blobTypes("blockBlob")
                                .prefixMatch("olcmtestcontainer1")
                                .build())
                            .build())
                        .enabled(true)
                        .name("olcmtest1")
                        .type("Lifecycle")
                        .build(),
                    ManagementPolicyRuleArgs.builder()
                        .definition(ManagementPolicyDefinitionArgs.builder()
                            .actions(ManagementPolicyActionArgs.builder()
                                .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                    .delete(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(1000)
                                        .build())
                                    .tierToArchive(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(90)
                                        .build())
                                    .tierToCool(DateAfterModificationArgs.builder()
                                        .daysAfterModificationGreaterThan(30)
                                        .build())
                                    .build())
                                .build())
                            .filters(ManagementPolicyFilterArgs.builder()
                                .blobIndexMatch(                                
                                    TagFilterArgs.builder()
                                        .name("tag1")
                                        .op("==")
                                        .value("val1")
                                        .build(),
                                    TagFilterArgs.builder()
                                        .name("tag2")
                                        .op("==")
                                        .value("val2")
                                        .build())
                                .blobTypes("blockBlob")
                                .prefixMatch("olcmtestcontainer2")
                                .build())
                            .build())
                        .enabled(true)
                        .name("olcmtest2")
                        .type("Lifecycle")
                        .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [
            {
                definition: {
                    actions: {
                        baseBlob: {
                            "delete": {
                                daysAfterModificationGreaterThan: 1000,
                            },
                            tierToArchive: {
                                daysAfterModificationGreaterThan: 90,
                            },
                            tierToCool: {
                                daysAfterModificationGreaterThan: 30,
                            },
                        },
                        snapshot: {
                            "delete": {
                                daysAfterCreationGreaterThan: 30,
                            },
                        },
                    },
                    filters: {
                        blobTypes: ["blockBlob"],
                        prefixMatch: ["olcmtestcontainer1"],
                    },
                },
                enabled: true,
                name: "olcmtest1",
                type: azure_native.storage.RuleType.Lifecycle,
            },
            {
                definition: {
                    actions: {
                        baseBlob: {
                            "delete": {
                                daysAfterModificationGreaterThan: 1000,
                            },
                            tierToArchive: {
                                daysAfterModificationGreaterThan: 90,
                            },
                            tierToCool: {
                                daysAfterModificationGreaterThan: 30,
                            },
                        },
                    },
                    filters: {
                        blobIndexMatch: [
                            {
                                name: "tag1",
                                op: "==",
                                value: "val1",
                            },
                            {
                                name: "tag2",
                                op: "==",
                                value: "val2",
                            },
                        ],
                        blobTypes: ["blockBlob"],
                        prefixMatch: ["olcmtestcontainer2"],
                    },
                },
                enabled: true,
                name: "olcmtest2",
                type: azure_native.storage.RuleType.Lifecycle,
            },
        ],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [
            {
                "definition": {
                    "actions": {
                        "base_blob": {
                            "delete": {
                                "days_after_modification_greater_than": 1000,
                            },
                            "tier_to_archive": {
                                "days_after_modification_greater_than": 90,
                            },
                            "tier_to_cool": {
                                "days_after_modification_greater_than": 30,
                            },
                        },
                        "snapshot": {
                            "delete": {
                                "days_after_creation_greater_than": 30,
                            },
                        },
                    },
                    "filters": {
                        "blob_types": ["blockBlob"],
                        "prefix_match": ["olcmtestcontainer1"],
                    },
                },
                "enabled": True,
                "name": "olcmtest1",
                "type": azure_native.storage.RuleType.LIFECYCLE,
            },
            {
                "definition": {
                    "actions": {
                        "base_blob": {
                            "delete": {
                                "days_after_modification_greater_than": 1000,
                            },
                            "tier_to_archive": {
                                "days_after_modification_greater_than": 90,
                            },
                            "tier_to_cool": {
                                "days_after_modification_greater_than": 30,
                            },
                        },
                    },
                    "filters": {
                        "blob_index_match": [
                            {
                                "name": "tag1",
                                "op": "==",
                                "value": "val1",
                            },
                            {
                                "name": "tag2",
                                "op": "==",
                                "value": "val2",
                            },
                        ],
                        "blob_types": ["blockBlob"],
                        "prefix_match": ["olcmtestcontainer2"],
                    },
                },
                "enabled": True,
                "name": "olcmtest2",
                "type": azure_native.storage.RuleType.LIFECYCLE,
            },
        ],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 1000
                  tierToArchive:
                    daysAfterModificationGreaterThan: 90
                  tierToCool:
                    daysAfterModificationGreaterThan: 30
                snapshot:
                  delete:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 1000
                  tierToArchive:
                    daysAfterModificationGreaterThan: 90
                  tierToCool:
                    daysAfterModificationGreaterThan: 30
              filters:
                blobIndexMatch:
                  - name: tag1
                    op: ==
                    value: val1
                  - name: tag2
                    op: ==
                    value: val2
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer2
            enabled: true
            name: olcmtest2
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicyColdTierActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 90,
                                },
                                TierToCold = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                                TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                            Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                                TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(90),
									},
									TierToCold: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
									TierToCold: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
								Version: &storage.ManagementPolicyVersionArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
									TierToCold: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(90)
                                    .build())
                                .tierToCold(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(30)
                                    .build())
                                .tierToCool(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(30)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .tierToCold(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .version(ManagementPolicyVersionArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .tierToCold(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer1")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest1")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterModificationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterModificationGreaterThan: 90,
                        },
                        tierToCold: {
                            daysAfterModificationGreaterThan: 30,
                        },
                        tierToCool: {
                            daysAfterModificationGreaterThan: 30,
                        },
                    },
                    snapshot: {
                        "delete": {
                            daysAfterCreationGreaterThan: 30,
                        },
                        tierToCold: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                    version: {
                        "delete": {
                            daysAfterCreationGreaterThan: 30,
                        },
                        tierToCold: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer1"],
                },
            },
            enabled: true,
            name: "olcmtest1",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_modification_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_modification_greater_than": 90,
                        },
                        "tier_to_cold": {
                            "days_after_modification_greater_than": 30,
                        },
                        "tier_to_cool": {
                            "days_after_modification_greater_than": 30,
                        },
                    },
                    "snapshot": {
                        "delete": {
                            "days_after_creation_greater_than": 30,
                        },
                        "tier_to_cold": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                    "version": {
                        "delete": {
                            "days_after_creation_greater_than": 30,
                        },
                        "tier_to_cold": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer1"],
                },
            },
            "enabled": True,
            "name": "olcmtest1",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 1000
                  tierToArchive:
                    daysAfterModificationGreaterThan: 90
                  tierToCold:
                    daysAfterModificationGreaterThan: 30
                  tierToCool:
                    daysAfterModificationGreaterThan: 30
                snapshot:
                  delete:
                    daysAfterCreationGreaterThan: 30
                  tierToCold:
                    daysAfterCreationGreaterThan: 30
                version:
                  delete:
                    daysAfterCreationGreaterThan: 30
                  tierToCold:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicyForBlockAndAppendBlobs
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 90,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 90,
                                },
                            },
                            Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 90,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                                "appendBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(90),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(90),
									},
								},
								Version: &storage.ManagementPolicyVersionArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(90),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
									pulumi.String("appendBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(90)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(90)
                                    .build())
                                .build())
                            .version(ManagementPolicyVersionArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(90)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes(                            
                                "blockBlob",
                                "appendBlob")
                            .prefixMatch("olcmtestcontainer1")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest1")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterModificationGreaterThan: 90,
                        },
                    },
                    snapshot: {
                        "delete": {
                            daysAfterCreationGreaterThan: 90,
                        },
                    },
                    version: {
                        "delete": {
                            daysAfterCreationGreaterThan: 90,
                        },
                    },
                },
                filters: {
                    blobTypes: [
                        "blockBlob",
                        "appendBlob",
                    ],
                    prefixMatch: ["olcmtestcontainer1"],
                },
            },
            enabled: true,
            name: "olcmtest1",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_modification_greater_than": 90,
                        },
                    },
                    "snapshot": {
                        "delete": {
                            "days_after_creation_greater_than": 90,
                        },
                    },
                    "version": {
                        "delete": {
                            "days_after_creation_greater_than": 90,
                        },
                    },
                },
                "filters": {
                    "blob_types": [
                        "blockBlob",
                        "appendBlob",
                    ],
                    "prefix_match": ["olcmtestcontainer1"],
                },
            },
            "enabled": True,
            "name": "olcmtest1",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 90
                snapshot:
                  delete:
                    daysAfterCreationGreaterThan: 90
                version:
                  delete:
                    daysAfterCreationGreaterThan: 90
              filters:
                blobTypes:
                  - blockBlob
                  - appendBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicyHotTierActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                TierToHot = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                            Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                            {
                                TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									TierToHot: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									TierToHot: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
								Version: &storage.ManagementPolicyVersionArgs{
									TierToHot: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .tierToHot(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(30)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .tierToHot(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .version(ManagementPolicyVersionArgs.builder()
                                .tierToHot(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer1")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest1")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        tierToHot: {
                            daysAfterModificationGreaterThan: 30,
                        },
                    },
                    snapshot: {
                        tierToHot: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                    version: {
                        tierToHot: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer1"],
                },
            },
            enabled: true,
            name: "olcmtest1",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "tier_to_hot": {
                            "days_after_modification_greater_than": 30,
                        },
                    },
                    "snapshot": {
                        "tier_to_hot": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                    "version": {
                        "tier_to_hot": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer1"],
                },
            },
            "enabled": True,
            "name": "olcmtest1",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  tierToHot:
                    daysAfterModificationGreaterThan: 30
                snapshot:
                  tierToHot:
                    daysAfterCreationGreaterThan: 30
                version:
                  tierToHot:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicyWithSnapshotAndVersion
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                            Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
								Version: &storage.ManagementPolicyVersionArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(30)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .version(ManagementPolicyVersionArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer1")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest1")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterModificationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterModificationGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterModificationGreaterThan: 30,
                        },
                    },
                    snapshot: {
                        "delete": {
                            daysAfterCreationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                    version: {
                        "delete": {
                            daysAfterCreationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer1"],
                },
            },
            enabled: true,
            name: "olcmtest1",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_modification_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_modification_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_modification_greater_than": 30,
                        },
                    },
                    "snapshot": {
                        "delete": {
                            "days_after_creation_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                    "version": {
                        "delete": {
                            "days_after_creation_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer1"],
                },
            },
            "enabled": True,
            "name": "olcmtest1",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 1000
                  tierToArchive:
                    daysAfterModificationGreaterThan: 90
                  tierToCool:
                    daysAfterModificationGreaterThan: 30
                snapshot:
                  delete:
                    daysAfterCreationGreaterThan: 1000
                  tierToArchive:
                    daysAfterCreationGreaterThan: 90
                  tierToCool:
                    daysAfterCreationGreaterThan: 30
                version:
                  delete:
                    daysAfterCreationGreaterThan: 1000
                  tierToArchive:
                    daysAfterCreationGreaterThan: 90
                  tierToCool:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicy_BaseBlobDaysAfterCreationActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterCreationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterCreationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer1",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest1",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer1"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest1"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterCreationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterModificationArgs.builder()
                                    .daysAfterCreationGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterModificationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer1")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest1")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterCreationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer1"],
                },
            },
            enabled: true,
            name: "olcmtest1",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_creation_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer1"],
                },
            },
            "enabled": True,
            "name": "olcmtest1",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterCreationGreaterThan: 1000
                  tierToArchive:
                    daysAfterCreationGreaterThan: 90
                  tierToCool:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer1
            enabled: true
            name: olcmtest1
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicy_LastAccessTimeBasedBlobActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterLastAccessTimeGreaterThan = 1000,
                                },
                                EnableAutoTierToHotFromCool = true,
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterLastAccessTimeGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterLastAccessTimeGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(1000),
									},
									EnableAutoTierToHotFromCool: pulumi.Bool(true),
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									Delete: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan: pulumi.Float64(30),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterLastAccessTimeGreaterThan(1000)
                                    .build())
                                .enableAutoTierToHotFromCool(true)
                                .tierToArchive(DateAfterModificationArgs.builder()
                                    .daysAfterLastAccessTimeGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterModificationArgs.builder()
                                    .daysAfterLastAccessTimeGreaterThan(30)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .delete(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterLastAccessTimeGreaterThan: 1000,
                        },
                        enableAutoTierToHotFromCool: true,
                        tierToArchive: {
                            daysAfterLastAccessTimeGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterLastAccessTimeGreaterThan: 30,
                        },
                    },
                    snapshot: {
                        "delete": {
                            daysAfterCreationGreaterThan: 30,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer"],
                },
            },
            enabled: true,
            name: "olcmtest",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_last_access_time_greater_than": 1000,
                        },
                        "enable_auto_tier_to_hot_from_cool": True,
                        "tier_to_archive": {
                            "days_after_last_access_time_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_last_access_time_greater_than": 30,
                        },
                    },
                    "snapshot": {
                        "delete": {
                            "days_after_creation_greater_than": 30,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer"],
                },
            },
            "enabled": True,
            "name": "olcmtest",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterLastAccessTimeGreaterThan: 1000
                  enableAutoTierToHotFromCool: true
                  tierToArchive:
                    daysAfterLastAccessTimeGreaterThan: 90
                  tierToCool:
                    daysAfterLastAccessTimeGreaterThan: 30
                snapshot:
                  delete:
                    daysAfterCreationGreaterThan: 30
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer
            enabled: true
            name: olcmtest
            type: Lifecycle
      resourceGroupName: res7687
StorageAccountSetManagementPolicy_LastTierChangeTimeActions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var managementPolicy = new AzureNative.Storage.ManagementPolicy("managementPolicy", new()
    {
        AccountName = "sto9699",
        ManagementPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
        {
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                    {
                        Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                        {
                            BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                            {
                                Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 1000,
                                },
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterLastTierChangeGreaterThan = 120,
                                    DaysAfterModificationGreaterThan = 90,
                                },
                                TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                                {
                                    DaysAfterModificationGreaterThan = 30,
                                },
                            },
                            Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                            {
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                    DaysAfterLastTierChangeGreaterThan = 90,
                                },
                            },
                            Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                            {
                                TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                                {
                                    DaysAfterCreationGreaterThan = 30,
                                    DaysAfterLastTierChangeGreaterThan = 90,
                                },
                            },
                        },
                        Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                            },
                            PrefixMatch = new[]
                            {
                                "olcmtestcontainer",
                            },
                        },
                    },
                    Enabled = true,
                    Name = "olcmtest",
                    Type = AzureNative.Storage.RuleType.Lifecycle,
                },
            },
        },
        ResourceGroupName = "res7687",
    });
});
package main
import (
	storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewManagementPolicy(ctx, "managementPolicy", &storage.ManagementPolicyArgs{
			AccountName:          pulumi.String("sto9699"),
			ManagementPolicyName: pulumi.String("default"),
			Policy: &storage.ManagementPolicySchemaArgs{
				Rules: storage.ManagementPolicyRuleArray{
					&storage.ManagementPolicyRuleArgs{
						Definition: &storage.ManagementPolicyDefinitionArgs{
							Actions: &storage.ManagementPolicyActionArgs{
								BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
									Delete: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(1000),
									},
									TierToArchive: &storage.DateAfterModificationArgs{
										DaysAfterLastTierChangeGreaterThan: pulumi.Float64(120),
										DaysAfterModificationGreaterThan:   pulumi.Float64(90),
									},
									TierToCool: &storage.DateAfterModificationArgs{
										DaysAfterModificationGreaterThan: pulumi.Float64(30),
									},
								},
								Snapshot: &storage.ManagementPolicySnapShotArgs{
									TierToArchive: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan:       pulumi.Float64(30),
										DaysAfterLastTierChangeGreaterThan: pulumi.Float64(90),
									},
								},
								Version: &storage.ManagementPolicyVersionArgs{
									TierToArchive: &storage.DateAfterCreationArgs{
										DaysAfterCreationGreaterThan:       pulumi.Float64(30),
										DaysAfterLastTierChangeGreaterThan: pulumi.Float64(90),
									},
								},
							},
							Filters: &storage.ManagementPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
								},
								PrefixMatch: pulumi.StringArray{
									pulumi.String("olcmtestcontainer"),
								},
							},
						},
						Enabled: pulumi.Bool(true),
						Name:    pulumi.String("olcmtest"),
						Type:    pulumi.String(storage.RuleTypeLifecycle),
					},
				},
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.ManagementPolicy;
import com.pulumi.azurenative.storage.ManagementPolicyArgs;
import com.pulumi.azurenative.storage.inputs.ManagementPolicySchemaArgs;
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 managementPolicy = new ManagementPolicy("managementPolicy", ManagementPolicyArgs.builder()
            .accountName("sto9699")
            .managementPolicyName("default")
            .policy(ManagementPolicySchemaArgs.builder()
                .rules(ManagementPolicyRuleArgs.builder()
                    .definition(ManagementPolicyDefinitionArgs.builder()
                        .actions(ManagementPolicyActionArgs.builder()
                            .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                                .delete(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(1000)
                                    .build())
                                .tierToArchive(DateAfterModificationArgs.builder()
                                    .daysAfterLastTierChangeGreaterThan(120)
                                    .daysAfterModificationGreaterThan(90)
                                    .build())
                                .tierToCool(DateAfterModificationArgs.builder()
                                    .daysAfterModificationGreaterThan(30)
                                    .build())
                                .build())
                            .snapshot(ManagementPolicySnapShotArgs.builder()
                                .tierToArchive(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .daysAfterLastTierChangeGreaterThan(90)
                                    .build())
                                .build())
                            .version(ManagementPolicyVersionArgs.builder()
                                .tierToArchive(DateAfterCreationArgs.builder()
                                    .daysAfterCreationGreaterThan(30)
                                    .daysAfterLastTierChangeGreaterThan(90)
                                    .build())
                                .build())
                            .build())
                        .filters(ManagementPolicyFilterArgs.builder()
                            .blobTypes("blockBlob")
                            .prefixMatch("olcmtestcontainer")
                            .build())
                        .build())
                    .enabled(true)
                    .name("olcmtest")
                    .type("Lifecycle")
                    .build())
                .build())
            .resourceGroupName("res7687")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const managementPolicy = new azure_native.storage.ManagementPolicy("managementPolicy", {
    accountName: "sto9699",
    managementPolicyName: "default",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterModificationGreaterThan: 1000,
                        },
                        tierToArchive: {
                            daysAfterLastTierChangeGreaterThan: 120,
                            daysAfterModificationGreaterThan: 90,
                        },
                        tierToCool: {
                            daysAfterModificationGreaterThan: 30,
                        },
                    },
                    snapshot: {
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 30,
                            daysAfterLastTierChangeGreaterThan: 90,
                        },
                    },
                    version: {
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 30,
                            daysAfterLastTierChangeGreaterThan: 90,
                        },
                    },
                },
                filters: {
                    blobTypes: ["blockBlob"],
                    prefixMatch: ["olcmtestcontainer"],
                },
            },
            enabled: true,
            name: "olcmtest",
            type: azure_native.storage.RuleType.Lifecycle,
        }],
    },
    resourceGroupName: "res7687",
});
import pulumi
import pulumi_azure_native as azure_native
management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
    account_name="sto9699",
    management_policy_name="default",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_modification_greater_than": 1000,
                        },
                        "tier_to_archive": {
                            "days_after_last_tier_change_greater_than": 120,
                            "days_after_modification_greater_than": 90,
                        },
                        "tier_to_cool": {
                            "days_after_modification_greater_than": 30,
                        },
                    },
                    "snapshot": {
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 30,
                            "days_after_last_tier_change_greater_than": 90,
                        },
                    },
                    "version": {
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 30,
                            "days_after_last_tier_change_greater_than": 90,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["blockBlob"],
                    "prefix_match": ["olcmtestcontainer"],
                },
            },
            "enabled": True,
            "name": "olcmtest",
            "type": azure_native.storage.RuleType.LIFECYCLE,
        }],
    },
    resource_group_name="res7687")
resources:
  managementPolicy:
    type: azure-native:storage:ManagementPolicy
    properties:
      accountName: sto9699
      managementPolicyName: default
      policy:
        rules:
          - definition:
              actions:
                baseBlob:
                  delete:
                    daysAfterModificationGreaterThan: 1000
                  tierToArchive:
                    daysAfterLastTierChangeGreaterThan: 120
                    daysAfterModificationGreaterThan: 90
                  tierToCool:
                    daysAfterModificationGreaterThan: 30
                snapshot:
                  tierToArchive:
                    daysAfterCreationGreaterThan: 30
                    daysAfterLastTierChangeGreaterThan: 90
                version:
                  tierToArchive:
                    daysAfterCreationGreaterThan: 30
                    daysAfterLastTierChangeGreaterThan: 90
              filters:
                blobTypes:
                  - blockBlob
                prefixMatch:
                  - olcmtestcontainer
            enabled: true
            name: olcmtest
            type: Lifecycle
      resourceGroupName: res7687
Create ManagementPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementPolicy(name: string, args: ManagementPolicyArgs, opts?: CustomResourceOptions);@overload
def ManagementPolicy(resource_name: str,
                     args: ManagementPolicyArgs,
                     opts: Optional[ResourceOptions] = None)
@overload
def ManagementPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     account_name: Optional[str] = None,
                     policy: Optional[ManagementPolicySchemaArgs] = None,
                     resource_group_name: Optional[str] = None,
                     management_policy_name: Optional[str] = None)func NewManagementPolicy(ctx *Context, name string, args ManagementPolicyArgs, opts ...ResourceOption) (*ManagementPolicy, error)public ManagementPolicy(string name, ManagementPolicyArgs args, CustomResourceOptions? opts = null)
public ManagementPolicy(String name, ManagementPolicyArgs args)
public ManagementPolicy(String name, ManagementPolicyArgs args, CustomResourceOptions options)
type: azure-native:storage:ManagementPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementPolicyArgs
- 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 managementPolicyResource = new AzureNative.Storage.ManagementPolicy("managementPolicyResource", new()
{
    AccountName = "string",
    Policy = new AzureNative.Storage.Inputs.ManagementPolicySchemaArgs
    {
        Rules = new[]
        {
            new AzureNative.Storage.Inputs.ManagementPolicyRuleArgs
            {
                Definition = new AzureNative.Storage.Inputs.ManagementPolicyDefinitionArgs
                {
                    Actions = new AzureNative.Storage.Inputs.ManagementPolicyActionArgs
                    {
                        BaseBlob = new AzureNative.Storage.Inputs.ManagementPolicyBaseBlobArgs
                        {
                            Delete = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastAccessTimeGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                                DaysAfterModificationGreaterThan = 0,
                            },
                            EnableAutoTierToHotFromCool = false,
                            TierToArchive = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastAccessTimeGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                                DaysAfterModificationGreaterThan = 0,
                            },
                            TierToCold = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastAccessTimeGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                                DaysAfterModificationGreaterThan = 0,
                            },
                            TierToCool = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastAccessTimeGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                                DaysAfterModificationGreaterThan = 0,
                            },
                            TierToHot = new AzureNative.Storage.Inputs.DateAfterModificationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastAccessTimeGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                                DaysAfterModificationGreaterThan = 0,
                            },
                        },
                        Snapshot = new AzureNative.Storage.Inputs.ManagementPolicySnapShotArgs
                        {
                            Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                        },
                        Version = new AzureNative.Storage.Inputs.ManagementPolicyVersionArgs
                        {
                            Delete = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToArchive = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToCold = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToCool = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                            TierToHot = new AzureNative.Storage.Inputs.DateAfterCreationArgs
                            {
                                DaysAfterCreationGreaterThan = 0,
                                DaysAfterLastTierChangeGreaterThan = 0,
                            },
                        },
                    },
                    Filters = new AzureNative.Storage.Inputs.ManagementPolicyFilterArgs
                    {
                        BlobTypes = new[]
                        {
                            "string",
                        },
                        BlobIndexMatch = new[]
                        {
                            new AzureNative.Storage.Inputs.TagFilterArgs
                            {
                                Name = "string",
                                Op = "string",
                                Value = "string",
                            },
                        },
                        PrefixMatch = new[]
                        {
                            "string",
                        },
                    },
                },
                Name = "string",
                Type = "string",
                Enabled = false,
            },
        },
    },
    ResourceGroupName = "string",
    ManagementPolicyName = "string",
});
example, err := storage.NewManagementPolicy(ctx, "managementPolicyResource", &storage.ManagementPolicyArgs{
	AccountName: pulumi.String("string"),
	Policy: &storage.ManagementPolicySchemaArgs{
		Rules: storage.ManagementPolicyRuleArray{
			&storage.ManagementPolicyRuleArgs{
				Definition: &storage.ManagementPolicyDefinitionArgs{
					Actions: &storage.ManagementPolicyActionArgs{
						BaseBlob: &storage.ManagementPolicyBaseBlobArgs{
							Delete: &storage.DateAfterModificationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
								DaysAfterModificationGreaterThan:   pulumi.Float64(0),
							},
							EnableAutoTierToHotFromCool: pulumi.Bool(false),
							TierToArchive: &storage.DateAfterModificationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
								DaysAfterModificationGreaterThan:   pulumi.Float64(0),
							},
							TierToCold: &storage.DateAfterModificationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
								DaysAfterModificationGreaterThan:   pulumi.Float64(0),
							},
							TierToCool: &storage.DateAfterModificationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
								DaysAfterModificationGreaterThan:   pulumi.Float64(0),
							},
							TierToHot: &storage.DateAfterModificationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastAccessTimeGreaterThan: pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
								DaysAfterModificationGreaterThan:   pulumi.Float64(0),
							},
						},
						Snapshot: &storage.ManagementPolicySnapShotArgs{
							Delete: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToArchive: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToCold: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToCool: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToHot: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
						},
						Version: &storage.ManagementPolicyVersionArgs{
							Delete: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToArchive: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToCold: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToCool: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
							TierToHot: &storage.DateAfterCreationArgs{
								DaysAfterCreationGreaterThan:       pulumi.Float64(0),
								DaysAfterLastTierChangeGreaterThan: pulumi.Float64(0),
							},
						},
					},
					Filters: &storage.ManagementPolicyFilterArgs{
						BlobTypes: pulumi.StringArray{
							pulumi.String("string"),
						},
						BlobIndexMatch: storage.TagFilterArray{
							&storage.TagFilterArgs{
								Name:  pulumi.String("string"),
								Op:    pulumi.String("string"),
								Value: pulumi.String("string"),
							},
						},
						PrefixMatch: pulumi.StringArray{
							pulumi.String("string"),
						},
					},
				},
				Name:    pulumi.String("string"),
				Type:    pulumi.String("string"),
				Enabled: pulumi.Bool(false),
			},
		},
	},
	ResourceGroupName:    pulumi.String("string"),
	ManagementPolicyName: pulumi.String("string"),
})
var managementPolicyResource = new ManagementPolicy("managementPolicyResource", ManagementPolicyArgs.builder()
    .accountName("string")
    .policy(ManagementPolicySchemaArgs.builder()
        .rules(ManagementPolicyRuleArgs.builder()
            .definition(ManagementPolicyDefinitionArgs.builder()
                .actions(ManagementPolicyActionArgs.builder()
                    .baseBlob(ManagementPolicyBaseBlobArgs.builder()
                        .delete(DateAfterModificationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastAccessTimeGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .daysAfterModificationGreaterThan(0)
                            .build())
                        .enableAutoTierToHotFromCool(false)
                        .tierToArchive(DateAfterModificationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastAccessTimeGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .daysAfterModificationGreaterThan(0)
                            .build())
                        .tierToCold(DateAfterModificationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastAccessTimeGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .daysAfterModificationGreaterThan(0)
                            .build())
                        .tierToCool(DateAfterModificationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastAccessTimeGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .daysAfterModificationGreaterThan(0)
                            .build())
                        .tierToHot(DateAfterModificationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastAccessTimeGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .daysAfterModificationGreaterThan(0)
                            .build())
                        .build())
                    .snapshot(ManagementPolicySnapShotArgs.builder()
                        .delete(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToArchive(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToCold(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToCool(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToHot(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .build())
                    .version(ManagementPolicyVersionArgs.builder()
                        .delete(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToArchive(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToCold(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToCool(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .tierToHot(DateAfterCreationArgs.builder()
                            .daysAfterCreationGreaterThan(0)
                            .daysAfterLastTierChangeGreaterThan(0)
                            .build())
                        .build())
                    .build())
                .filters(ManagementPolicyFilterArgs.builder()
                    .blobTypes("string")
                    .blobIndexMatch(TagFilterArgs.builder()
                        .name("string")
                        .op("string")
                        .value("string")
                        .build())
                    .prefixMatch("string")
                    .build())
                .build())
            .name("string")
            .type("string")
            .enabled(false)
            .build())
        .build())
    .resourceGroupName("string")
    .managementPolicyName("string")
    .build());
management_policy_resource = azure_native.storage.ManagementPolicy("managementPolicyResource",
    account_name="string",
    policy={
        "rules": [{
            "definition": {
                "actions": {
                    "base_blob": {
                        "delete": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_access_time_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                            "days_after_modification_greater_than": 0,
                        },
                        "enable_auto_tier_to_hot_from_cool": False,
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_access_time_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                            "days_after_modification_greater_than": 0,
                        },
                        "tier_to_cold": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_access_time_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                            "days_after_modification_greater_than": 0,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_access_time_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                            "days_after_modification_greater_than": 0,
                        },
                        "tier_to_hot": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_access_time_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                            "days_after_modification_greater_than": 0,
                        },
                    },
                    "snapshot": {
                        "delete": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_cold": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_hot": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                    },
                    "version": {
                        "delete": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_archive": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_cold": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_cool": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                        "tier_to_hot": {
                            "days_after_creation_greater_than": 0,
                            "days_after_last_tier_change_greater_than": 0,
                        },
                    },
                },
                "filters": {
                    "blob_types": ["string"],
                    "blob_index_match": [{
                        "name": "string",
                        "op": "string",
                        "value": "string",
                    }],
                    "prefix_match": ["string"],
                },
            },
            "name": "string",
            "type": "string",
            "enabled": False,
        }],
    },
    resource_group_name="string",
    management_policy_name="string")
const managementPolicyResource = new azure_native.storage.ManagementPolicy("managementPolicyResource", {
    accountName: "string",
    policy: {
        rules: [{
            definition: {
                actions: {
                    baseBlob: {
                        "delete": {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastAccessTimeGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                            daysAfterModificationGreaterThan: 0,
                        },
                        enableAutoTierToHotFromCool: false,
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastAccessTimeGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                            daysAfterModificationGreaterThan: 0,
                        },
                        tierToCold: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastAccessTimeGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                            daysAfterModificationGreaterThan: 0,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastAccessTimeGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                            daysAfterModificationGreaterThan: 0,
                        },
                        tierToHot: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastAccessTimeGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                            daysAfterModificationGreaterThan: 0,
                        },
                    },
                    snapshot: {
                        "delete": {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToCold: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToHot: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                    },
                    version: {
                        "delete": {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToArchive: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToCold: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToCool: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                        tierToHot: {
                            daysAfterCreationGreaterThan: 0,
                            daysAfterLastTierChangeGreaterThan: 0,
                        },
                    },
                },
                filters: {
                    blobTypes: ["string"],
                    blobIndexMatch: [{
                        name: "string",
                        op: "string",
                        value: "string",
                    }],
                    prefixMatch: ["string"],
                },
            },
            name: "string",
            type: "string",
            enabled: false,
        }],
    },
    resourceGroupName: "string",
    managementPolicyName: "string",
});
type: azure-native:storage:ManagementPolicy
properties:
    accountName: string
    managementPolicyName: string
    policy:
        rules:
            - definition:
                actions:
                    baseBlob:
                        delete:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastAccessTimeGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                            daysAfterModificationGreaterThan: 0
                        enableAutoTierToHotFromCool: false
                        tierToArchive:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastAccessTimeGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                            daysAfterModificationGreaterThan: 0
                        tierToCold:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastAccessTimeGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                            daysAfterModificationGreaterThan: 0
                        tierToCool:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastAccessTimeGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                            daysAfterModificationGreaterThan: 0
                        tierToHot:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastAccessTimeGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                            daysAfterModificationGreaterThan: 0
                    snapshot:
                        delete:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToArchive:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToCold:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToCool:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToHot:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                    version:
                        delete:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToArchive:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToCold:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToCool:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                        tierToHot:
                            daysAfterCreationGreaterThan: 0
                            daysAfterLastTierChangeGreaterThan: 0
                filters:
                    blobIndexMatch:
                        - name: string
                          op: string
                          value: string
                    blobTypes:
                        - string
                    prefixMatch:
                        - string
              enabled: false
              name: string
              type: string
    resourceGroupName: string
ManagementPolicy 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 ManagementPolicy resource accepts the following input properties:
- AccountName 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.
- Policy
Pulumi.Azure Native. Storage. Inputs. Management Policy Schema 
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- ManagementPolicy stringName 
- The name of the Storage Account Management Policy. It should always be 'default'
- AccountName 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.
- Policy
ManagementPolicy Schema Args 
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- ResourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- ManagementPolicy stringName 
- The name of the Storage Account Management Policy. It should always be 'default'
- accountName 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.
- policy
ManagementPolicy Schema 
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- managementPolicy StringName 
- The name of the Storage Account Management Policy. It should always be 'default'
- accountName 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.
- policy
ManagementPolicy Schema 
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- resourceGroup stringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- managementPolicy stringName 
- The name of the Storage Account Management Policy. It should always be 'default'
- account_name 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.
- policy
ManagementPolicy Schema Args 
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- resource_group_ strname 
- The name of the resource group within the user's subscription. The name is case insensitive.
- management_policy_ strname 
- The name of the Storage Account Management Policy. It should always be 'default'
- accountName 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.
- policy Property Map
- The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- resourceGroup StringName 
- The name of the resource group within the user's subscription. The name is case insensitive.
- managementPolicy StringName 
- The name of the Storage Account Management Policy. It should always be 'default'
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- Returns the date and time the ManagementPolicies was last modified.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- LastModified stringTime 
- Returns the date and time the ManagementPolicies was last modified.
- Name string
- The name of the resource
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Returns the date and time the ManagementPolicies was last modified.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- lastModified stringTime 
- Returns the date and time the ManagementPolicies was last modified.
- name string
- The name of the resource
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- last_modified_ strtime 
- Returns the date and time the ManagementPolicies was last modified.
- name str
- The name of the resource
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- lastModified StringTime 
- Returns the date and time the ManagementPolicies was last modified.
- name String
- The name of the resource
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DateAfterCreation, DateAfterCreationArgs      
- DaysAfter doubleCreation Greater Than 
- Value indicating the age in days after creation
- DaysAfter doubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter float64Creation Greater Than 
- Value indicating the age in days after creation
- DaysAfter float64Last Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter DoubleCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter DoubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter numberCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter numberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days_after_ floatcreation_ greater_ than 
- Value indicating the age in days after creation
- days_after_ floatlast_ tier_ change_ greater_ than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter NumberCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter NumberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
DateAfterCreationResponse, DateAfterCreationResponseArgs        
- DaysAfter doubleCreation Greater Than 
- Value indicating the age in days after creation
- DaysAfter doubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter float64Creation Greater Than 
- Value indicating the age in days after creation
- DaysAfter float64Last Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter DoubleCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter DoubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter numberCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter numberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- days_after_ floatcreation_ greater_ than 
- Value indicating the age in days after creation
- days_after_ floatlast_ tier_ change_ greater_ than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter NumberCreation Greater Than 
- Value indicating the age in days after creation
- daysAfter NumberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterCreationGreaterThan to be set for snapshots and blob version based actions. The blob will be archived if both the conditions are satisfied.
DateAfterModification, DateAfterModificationArgs      
- DaysAfter doubleCreation Greater Than 
- Value indicating the age in days after blob creation.
- DaysAfter doubleLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- DaysAfter doubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter doubleModification Greater Than 
- Value indicating the age in days after last modification
- DaysAfter float64Creation Greater Than 
- Value indicating the age in days after blob creation.
- DaysAfter float64Last Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- DaysAfter float64Last Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter float64Modification Greater Than 
- Value indicating the age in days after last modification
- daysAfter DoubleCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter DoubleLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter DoubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter DoubleModification Greater Than 
- Value indicating the age in days after last modification
- daysAfter numberCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter numberLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter numberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter numberModification Greater Than 
- Value indicating the age in days after last modification
- days_after_ floatcreation_ greater_ than 
- Value indicating the age in days after blob creation.
- days_after_ floatlast_ access_ time_ greater_ than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days_after_ floatlast_ tier_ change_ greater_ than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days_after_ floatmodification_ greater_ than 
- Value indicating the age in days after last modification
- daysAfter NumberCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter NumberLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter NumberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter NumberModification Greater Than 
- Value indicating the age in days after last modification
DateAfterModificationResponse, DateAfterModificationResponseArgs        
- DaysAfter doubleCreation Greater Than 
- Value indicating the age in days after blob creation.
- DaysAfter doubleLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- DaysAfter doubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter doubleModification Greater Than 
- Value indicating the age in days after last modification
- DaysAfter float64Creation Greater Than 
- Value indicating the age in days after blob creation.
- DaysAfter float64Last Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- DaysAfter float64Last Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- DaysAfter float64Modification Greater Than 
- Value indicating the age in days after last modification
- daysAfter DoubleCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter DoubleLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter DoubleLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter DoubleModification Greater Than 
- Value indicating the age in days after last modification
- daysAfter numberCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter numberLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter numberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter numberModification Greater Than 
- Value indicating the age in days after last modification
- days_after_ floatcreation_ greater_ than 
- Value indicating the age in days after blob creation.
- days_after_ floatlast_ access_ time_ greater_ than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- days_after_ floatlast_ tier_ change_ greater_ than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- days_after_ floatmodification_ greater_ than 
- Value indicating the age in days after last modification
- daysAfter NumberCreation Greater Than 
- Value indicating the age in days after blob creation.
- daysAfter NumberLast Access Time Greater Than 
- Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
- daysAfter NumberLast Tier Change Greater Than 
- Value indicating the age in days after last blob tier change time. This property is only applicable for tierToArchive actions and requires daysAfterModificationGreaterThan to be set for baseBlobs based actions. The blob will be archived if both the conditions are satisfied.
- daysAfter NumberModification Greater Than 
- Value indicating the age in days after last modification
ManagementPolicyAction, ManagementPolicyActionArgs      
- BaseBlob Pulumi.Azure Native. Storage. Inputs. Management Policy Base Blob 
- The management policy action for base blob
- Snapshot
Pulumi.Azure Native. Storage. Inputs. Management Policy Snap Shot 
- The management policy action for snapshot
- Version
Pulumi.Azure Native. Storage. Inputs. Management Policy Version 
- The management policy action for version
- BaseBlob ManagementPolicy Base Blob 
- The management policy action for base blob
- Snapshot
ManagementPolicy Snap Shot 
- The management policy action for snapshot
- Version
ManagementPolicy Version 
- The management policy action for version
- baseBlob ManagementPolicy Base Blob 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot 
- The management policy action for snapshot
- version
ManagementPolicy Version 
- The management policy action for version
- baseBlob ManagementPolicy Base Blob 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot 
- The management policy action for snapshot
- version
ManagementPolicy Version 
- The management policy action for version
- base_blob ManagementPolicy Base Blob 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot 
- The management policy action for snapshot
- version
ManagementPolicy Version 
- The management policy action for version
- baseBlob Property Map
- The management policy action for base blob
- snapshot Property Map
- The management policy action for snapshot
- version Property Map
- The management policy action for version
ManagementPolicyActionResponse, ManagementPolicyActionResponseArgs        
- BaseBlob Pulumi.Azure Native. Storage. Inputs. Management Policy Base Blob Response 
- The management policy action for base blob
- Snapshot
Pulumi.Azure Native. Storage. Inputs. Management Policy Snap Shot Response 
- The management policy action for snapshot
- Version
Pulumi.Azure Native. Storage. Inputs. Management Policy Version Response 
- The management policy action for version
- BaseBlob ManagementPolicy Base Blob Response 
- The management policy action for base blob
- Snapshot
ManagementPolicy Snap Shot Response 
- The management policy action for snapshot
- Version
ManagementPolicy Version Response 
- The management policy action for version
- baseBlob ManagementPolicy Base Blob Response 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot Response 
- The management policy action for snapshot
- version
ManagementPolicy Version Response 
- The management policy action for version
- baseBlob ManagementPolicy Base Blob Response 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot Response 
- The management policy action for snapshot
- version
ManagementPolicy Version Response 
- The management policy action for version
- base_blob ManagementPolicy Base Blob Response 
- The management policy action for base blob
- snapshot
ManagementPolicy Snap Shot Response 
- The management policy action for snapshot
- version
ManagementPolicy Version Response 
- The management policy action for version
- baseBlob Property Map
- The management policy action for base blob
- snapshot Property Map
- The management policy action for snapshot
- version Property Map
- The management policy action for version
ManagementPolicyBaseBlob, ManagementPolicyBaseBlobArgs        
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Modification 
- The function to delete the blob
- EnableAuto boolTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Modification 
- The function to tier blobs to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Modification 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Modification 
- The function to tier blobs to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Modification 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Modification 
- The function to delete the blob
- EnableAuto boolTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- TierTo DateArchive After Modification 
- The function to tier blobs to archive storage.
- TierTo DateCold After Modification 
- The function to tier blobs to cold storage.
- TierTo DateCool After Modification 
- The function to tier blobs to cool storage.
- TierTo DateHot After Modification 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification 
- The function to delete the blob
- enableAuto BooleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo DateArchive After Modification 
- The function to tier blobs to archive storage.
- tierTo DateCold After Modification 
- The function to tier blobs to cold storage.
- tierTo DateCool After Modification 
- The function to tier blobs to cool storage.
- tierTo DateHot After Modification 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification 
- The function to delete the blob
- enableAuto booleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo DateArchive After Modification 
- The function to tier blobs to archive storage.
- tierTo DateCold After Modification 
- The function to tier blobs to cold storage.
- tierTo DateCool After Modification 
- The function to tier blobs to cool storage.
- tierTo DateHot After Modification 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification 
- The function to delete the blob
- enable_auto_ booltier_ to_ hot_ from_ cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier_to_ Datearchive After Modification 
- The function to tier blobs to archive storage.
- tier_to_ Datecold After Modification 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Modification 
- The function to tier blobs to cool storage.
- tier_to_ Datehot After Modification 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob
- enableAuto BooleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo Property MapArchive 
- The function to tier blobs to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blobs to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyBaseBlobResponse, ManagementPolicyBaseBlobResponseArgs          
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Modification Response 
- The function to delete the blob
- EnableAuto boolTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Modification Response 
- The function to tier blobs to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Modification Response 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Modification Response 
- The function to tier blobs to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Modification Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Modification Response 
- The function to delete the blob
- EnableAuto boolTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- TierTo DateArchive After Modification Response 
- The function to tier blobs to archive storage.
- TierTo DateCold After Modification Response 
- The function to tier blobs to cold storage.
- TierTo DateCool After Modification Response 
- The function to tier blobs to cool storage.
- TierTo DateHot After Modification Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification Response 
- The function to delete the blob
- enableAuto BooleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo DateArchive After Modification Response 
- The function to tier blobs to archive storage.
- tierTo DateCold After Modification Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Modification Response 
- The function to tier blobs to cool storage.
- tierTo DateHot After Modification Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification Response 
- The function to delete the blob
- enableAuto booleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo DateArchive After Modification Response 
- The function to tier blobs to archive storage.
- tierTo DateCold After Modification Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Modification Response 
- The function to tier blobs to cool storage.
- tierTo DateHot After Modification Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Modification Response 
- The function to delete the blob
- enable_auto_ booltier_ to_ hot_ from_ cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tier_to_ Datearchive After Modification Response 
- The function to tier blobs to archive storage.
- tier_to_ Datecold After Modification Response 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Modification Response 
- The function to tier blobs to cool storage.
- tier_to_ Datehot After Modification Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob
- enableAuto BooleanTier To Hot From Cool 
- This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
- tierTo Property MapArchive 
- The function to tier blobs to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blobs to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyDefinition, ManagementPolicyDefinitionArgs      
- Actions
Pulumi.Azure Native. Storage. Inputs. Management Policy Action 
- An object that defines the action set.
- Filters
Pulumi.Azure Native. Storage. Inputs. Management Policy Filter 
- An object that defines the filter set.
- Actions
ManagementPolicy Action 
- An object that defines the action set.
- Filters
ManagementPolicy Filter 
- An object that defines the filter set.
- actions
ManagementPolicy Action 
- An object that defines the action set.
- filters
ManagementPolicy Filter 
- An object that defines the filter set.
- actions
ManagementPolicy Action 
- An object that defines the action set.
- filters
ManagementPolicy Filter 
- An object that defines the filter set.
- actions
ManagementPolicy Action 
- An object that defines the action set.
- filters
ManagementPolicy Filter 
- An object that defines the filter set.
- actions Property Map
- An object that defines the action set.
- filters Property Map
- An object that defines the filter set.
ManagementPolicyDefinitionResponse, ManagementPolicyDefinitionResponseArgs        
- Actions
Pulumi.Azure Native. Storage. Inputs. Management Policy Action Response 
- An object that defines the action set.
- Filters
Pulumi.Azure Native. Storage. Inputs. Management Policy Filter Response 
- An object that defines the filter set.
- Actions
ManagementPolicy Action Response 
- An object that defines the action set.
- Filters
ManagementPolicy Filter Response 
- An object that defines the filter set.
- actions
ManagementPolicy Action Response 
- An object that defines the action set.
- filters
ManagementPolicy Filter Response 
- An object that defines the filter set.
- actions
ManagementPolicy Action Response 
- An object that defines the action set.
- filters
ManagementPolicy Filter Response 
- An object that defines the filter set.
- actions
ManagementPolicy Action Response 
- An object that defines the action set.
- filters
ManagementPolicy Filter Response 
- An object that defines the filter set.
- actions Property Map
- An object that defines the action set.
- filters Property Map
- An object that defines the filter set.
ManagementPolicyFilter, ManagementPolicyFilterArgs      
- BlobTypes List<string>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- BlobIndex List<Pulumi.Match Azure Native. Storage. Inputs. Tag Filter> 
- An array of blob index tag based filters, there can be at most 10 tag filters
- PrefixMatch List<string>
- An array of strings for prefixes to be match.
- BlobTypes []string
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- BlobIndex []TagMatch Filter 
- An array of blob index tag based filters, there can be at most 10 tag filters
- PrefixMatch []string
- An array of strings for prefixes to be match.
- blobTypes List<String>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex List<TagMatch Filter> 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch List<String>
- An array of strings for prefixes to be match.
- blobTypes string[]
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex TagMatch Filter[] 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch string[]
- An array of strings for prefixes to be match.
- blob_types Sequence[str]
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob_index_ Sequence[Tagmatch Filter] 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefix_match Sequence[str]
- An array of strings for prefixes to be match.
- blobTypes List<String>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex List<Property Map>Match 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch List<String>
- An array of strings for prefixes to be match.
ManagementPolicyFilterResponse, ManagementPolicyFilterResponseArgs        
- BlobTypes List<string>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- BlobIndex List<Pulumi.Match Azure Native. Storage. Inputs. Tag Filter Response> 
- An array of blob index tag based filters, there can be at most 10 tag filters
- PrefixMatch List<string>
- An array of strings for prefixes to be match.
- BlobTypes []string
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- BlobIndex []TagMatch Filter Response 
- An array of blob index tag based filters, there can be at most 10 tag filters
- PrefixMatch []string
- An array of strings for prefixes to be match.
- blobTypes List<String>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex List<TagMatch Filter Response> 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch List<String>
- An array of strings for prefixes to be match.
- blobTypes string[]
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex TagMatch Filter Response[] 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch string[]
- An array of strings for prefixes to be match.
- blob_types Sequence[str]
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blob_index_ Sequence[Tagmatch Filter Response] 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefix_match Sequence[str]
- An array of strings for prefixes to be match.
- blobTypes List<String>
- An array of predefined enum values. Currently blockBlob supports all tiering and delete actions. Only delete actions are supported for appendBlob.
- blobIndex List<Property Map>Match 
- An array of blob index tag based filters, there can be at most 10 tag filters
- prefixMatch List<String>
- An array of strings for prefixes to be match.
ManagementPolicyRule, ManagementPolicyRuleArgs      
- Definition
Pulumi.Azure Native. Storage. Inputs. Management Policy Definition 
- An object that defines the Lifecycle rule.
- Name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- Type
string | Pulumi.Azure Native. Storage. Rule Type 
- The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- Definition
ManagementPolicy Definition 
- An object that defines the Lifecycle rule.
- Name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- Type
string | RuleType 
- The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition 
- An object that defines the Lifecycle rule.
- name String
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type
String | RuleType 
- The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition 
- An object that defines the Lifecycle rule.
- name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type
string | RuleType 
- The valid value is Lifecycle
- enabled boolean
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition 
- An object that defines the Lifecycle rule.
- name str
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type
str | RuleType 
- The valid value is Lifecycle
- enabled bool
- Rule is enabled if set to true.
- definition Property Map
- An object that defines the Lifecycle rule.
- name String
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type String | "Lifecycle"
- The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
ManagementPolicyRuleResponse, ManagementPolicyRuleResponseArgs        
- Definition
Pulumi.Azure Native. Storage. Inputs. Management Policy Definition Response 
- An object that defines the Lifecycle rule.
- Name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- Type string
- The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- Definition
ManagementPolicy Definition Response 
- An object that defines the Lifecycle rule.
- Name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- Type string
- The valid value is Lifecycle
- Enabled bool
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition Response 
- An object that defines the Lifecycle rule.
- name String
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type String
- The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition Response 
- An object that defines the Lifecycle rule.
- name string
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type string
- The valid value is Lifecycle
- enabled boolean
- Rule is enabled if set to true.
- definition
ManagementPolicy Definition Response 
- An object that defines the Lifecycle rule.
- name str
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type str
- The valid value is Lifecycle
- enabled bool
- Rule is enabled if set to true.
- definition Property Map
- An object that defines the Lifecycle rule.
- name String
- A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
- type String
- The valid value is Lifecycle
- enabled Boolean
- Rule is enabled if set to true.
ManagementPolicySchema, ManagementPolicySchemaArgs      
- Rules
List<Pulumi.Azure Native. Storage. Inputs. Management Policy Rule> 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- Rules
[]ManagementPolicy Rule 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
List<ManagementPolicy Rule> 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
ManagementPolicy Rule[] 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Sequence[ManagementPolicy Rule] 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules List<Property Map>
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySchemaResponse, ManagementPolicySchemaResponseArgs        
- Rules
List<Pulumi.Azure Native. Storage. Inputs. Management Policy Rule Response> 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- Rules
[]ManagementPolicy Rule Response 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
List<ManagementPolicy Rule Response> 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
ManagementPolicy Rule Response[] 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules
Sequence[ManagementPolicy Rule Response] 
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
- rules List<Property Map>
- The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
ManagementPolicySnapShot, ManagementPolicySnapShotArgs        
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Creation 
- The function to delete the blob snapshot
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blob snapshot to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blob snapshot to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Creation 
- The function to delete the blob snapshot
- TierTo DateArchive After Creation 
- The function to tier blob snapshot to archive storage.
- TierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- TierTo DateCool After Creation 
- The function to tier blob snapshot to cool storage.
- TierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob snapshot
- tierTo DateArchive After Creation 
- The function to tier blob snapshot to archive storage.
- tierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation 
- The function to tier blob snapshot to cool storage.
- tierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob snapshot
- tierTo DateArchive After Creation 
- The function to tier blob snapshot to archive storage.
- tierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation 
- The function to tier blob snapshot to cool storage.
- tierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob snapshot
- tier_to_ Datearchive After Creation 
- The function to tier blob snapshot to archive storage.
- tier_to_ Datecold After Creation 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Creation 
- The function to tier blob snapshot to cool storage.
- tier_to_ Datehot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob snapshot
- tierTo Property MapArchive 
- The function to tier blob snapshot to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blob snapshot to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicySnapShotResponse, ManagementPolicySnapShotResponseArgs          
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Creation Response 
- The function to delete the blob snapshot
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blob snapshot to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blob snapshot to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Creation Response 
- The function to delete the blob snapshot
- TierTo DateArchive After Creation Response 
- The function to tier blob snapshot to archive storage.
- TierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- TierTo DateCool After Creation Response 
- The function to tier blob snapshot to cool storage.
- TierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob snapshot
- tierTo DateArchive After Creation Response 
- The function to tier blob snapshot to archive storage.
- tierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation Response 
- The function to tier blob snapshot to cool storage.
- tierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob snapshot
- tierTo DateArchive After Creation Response 
- The function to tier blob snapshot to archive storage.
- tierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation Response 
- The function to tier blob snapshot to cool storage.
- tierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob snapshot
- tier_to_ Datearchive After Creation Response 
- The function to tier blob snapshot to archive storage.
- tier_to_ Datecold After Creation Response 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Creation Response 
- The function to tier blob snapshot to cool storage.
- tier_to_ Datehot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob snapshot
- tierTo Property MapArchive 
- The function to tier blob snapshot to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blob snapshot to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyVersion, ManagementPolicyVersionArgs      
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Creation 
- The function to delete the blob version
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blob version to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blob version to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Creation 
- The function to delete the blob version
- TierTo DateArchive After Creation 
- The function to tier blob version to archive storage.
- TierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- TierTo DateCool After Creation 
- The function to tier blob version to cool storage.
- TierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob version
- tierTo DateArchive After Creation 
- The function to tier blob version to archive storage.
- tierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation 
- The function to tier blob version to cool storage.
- tierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob version
- tierTo DateArchive After Creation 
- The function to tier blob version to archive storage.
- tierTo DateCold After Creation 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation 
- The function to tier blob version to cool storage.
- tierTo DateHot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation 
- The function to delete the blob version
- tier_to_ Datearchive After Creation 
- The function to tier blob version to archive storage.
- tier_to_ Datecold After Creation 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Creation 
- The function to tier blob version to cool storage.
- tier_to_ Datehot After Creation 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob version
- tierTo Property MapArchive 
- The function to tier blob version to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blob version to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
ManagementPolicyVersionResponse, ManagementPolicyVersionResponseArgs        
- Delete
Pulumi.Azure Native. Storage. Inputs. Date After Creation Response 
- The function to delete the blob version
- TierTo Pulumi.Archive Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blob version to archive storage.
- TierTo Pulumi.Cold Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blobs to cold storage.
- TierTo Pulumi.Cool Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blob version to cool storage.
- TierTo Pulumi.Hot Azure Native. Storage. Inputs. Date After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- Delete
DateAfter Creation Response 
- The function to delete the blob version
- TierTo DateArchive After Creation Response 
- The function to tier blob version to archive storage.
- TierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- TierTo DateCool After Creation Response 
- The function to tier blob version to cool storage.
- TierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob version
- tierTo DateArchive After Creation Response 
- The function to tier blob version to archive storage.
- tierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation Response 
- The function to tier blob version to cool storage.
- tierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob version
- tierTo DateArchive After Creation Response 
- The function to tier blob version to archive storage.
- tierTo DateCold After Creation Response 
- The function to tier blobs to cold storage.
- tierTo DateCool After Creation Response 
- The function to tier blob version to cool storage.
- tierTo DateHot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete
DateAfter Creation Response 
- The function to delete the blob version
- tier_to_ Datearchive After Creation Response 
- The function to tier blob version to archive storage.
- tier_to_ Datecold After Creation Response 
- The function to tier blobs to cold storage.
- tier_to_ Datecool After Creation Response 
- The function to tier blob version to cool storage.
- tier_to_ Datehot After Creation Response 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
- delete Property Map
- The function to delete the blob version
- tierTo Property MapArchive 
- The function to tier blob version to archive storage.
- tierTo Property MapCold 
- The function to tier blobs to cold storage.
- tierTo Property MapCool 
- The function to tier blob version to cool storage.
- tierTo Property MapHot 
- The function to tier blobs to hot storage. This action can only be used with Premium Block Blob Storage Accounts
RuleType, RuleTypeArgs    
- Lifecycle
- Lifecycle
- RuleType Lifecycle 
- Lifecycle
- Lifecycle
- Lifecycle
- Lifecycle
- Lifecycle
- LIFECYCLE
- Lifecycle
- "Lifecycle"
- Lifecycle
TagFilter, TagFilterArgs    
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name String
- This is the filter tag name, it can have 1 - 128 characters
- op String
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value String
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name string
- This is the filter tag name, it can have 1 - 128 characters
- op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name str
- This is the filter tag name, it can have 1 - 128 characters
- op str
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value str
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name String
- This is the filter tag name, it can have 1 - 128 characters
- op String
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value String
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
TagFilterResponse, TagFilterResponseArgs      
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- Name string
- This is the filter tag name, it can have 1 - 128 characters
- Op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- Value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name String
- This is the filter tag name, it can have 1 - 128 characters
- op String
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value String
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name string
- This is the filter tag name, it can have 1 - 128 characters
- op string
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value string
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name str
- This is the filter tag name, it can have 1 - 128 characters
- op str
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value str
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
- name String
- This is the filter tag name, it can have 1 - 128 characters
- op String
- This is the comparison operator which is used for object comparison and filtering. Only == (equality operator) is currently supported
- value String
- This is the filter tag value field used for tag based filtering, it can have 0 - 256 characters
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:storage:ManagementPolicy DefaultManagementPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0