1. Packages
  2. Azure Native v1
  3. API Docs
  4. storage
  5. ManagementPolicy
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.storage.ManagementPolicy

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The Get Storage Account ManagementPolicies operation response. API Version: 2021-02-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 = "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 = "Lifecycle",
                    },
                },
            },
            ResourceGroupName = "res7687",
        });
    
    });
    

    Coming soon!

    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 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(Map.of("rules",             
                    Map.ofEntries(
                        Map.entry("definition", Map.ofEntries(
                            Map.entry("actions", Map.ofEntries(
                                Map.entry("baseBlob", Map.ofEntries(
                                    Map.entry("delete", Map.of("daysAfterModificationGreaterThan", 1000)),
                                    Map.entry("tierToArchive", Map.of("daysAfterModificationGreaterThan", 90)),
                                    Map.entry("tierToCool", Map.of("daysAfterModificationGreaterThan", 30))
                                )),
                                Map.entry("snapshot", Map.of("delete", Map.of("daysAfterCreationGreaterThan", 30)))
                            )),
                            Map.entry("filters", Map.ofEntries(
                                Map.entry("blobTypes", "blockBlob"),
                                Map.entry("prefixMatch", "olcmtestcontainer1")
                            ))
                        )),
                        Map.entry("enabled", true),
                        Map.entry("name", "olcmtest1"),
                        Map.entry("type", "Lifecycle")
                    ),
                    Map.ofEntries(
                        Map.entry("definition", Map.ofEntries(
                            Map.entry("actions", Map.of("baseBlob", Map.ofEntries(
                                Map.entry("delete", Map.of("daysAfterModificationGreaterThan", 1000)),
                                Map.entry("tierToArchive", Map.of("daysAfterModificationGreaterThan", 90)),
                                Map.entry("tierToCool", Map.of("daysAfterModificationGreaterThan", 30))
                            ))),
                            Map.entry("filters", Map.ofEntries(
                                Map.entry("blobIndexMatch",                             
                                    Map.ofEntries(
                                        Map.entry("name", "tag1"),
                                        Map.entry("op", "=="),
                                        Map.entry("value", "val1")
                                    ),
                                    Map.ofEntries(
                                        Map.entry("name", "tag2"),
                                        Map.entry("op", "=="),
                                        Map.entry("value", "val2")
                                    )),
                                Map.entry("blobTypes", "blockBlob"),
                                Map.entry("prefixMatch", "olcmtestcontainer2")
                            ))
                        )),
                        Map.entry("enabled", true),
                        Map.entry("name", "olcmtest2"),
                        Map.entry("type", "Lifecycle")
                    )))
                .resourceGroupName("res7687")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
        account_name="sto9699",
        management_policy_name="default",
        policy=azure_native.storage.ManagementPolicySchemaResponseArgs(
            rules=[
                {
                    "definition": {
                        "actions": {
                            "baseBlob": {
                                "delete": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=1000,
                                ),
                                "tierToArchive": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=90,
                                ),
                                "tierToCool": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=30,
                                ),
                            },
                            "snapshot": {
                                "delete": azure_native.storage.DateAfterCreationArgs(
                                    days_after_creation_greater_than=30,
                                ),
                            },
                        },
                        "filters": azure_native.storage.ManagementPolicyFilterArgs(
                            blob_types=["blockBlob"],
                            prefix_match=["olcmtestcontainer1"],
                        ),
                    },
                    "enabled": True,
                    "name": "olcmtest1",
                    "type": "Lifecycle",
                },
                {
                    "definition": {
                        "actions": {
                            "baseBlob": {
                                "delete": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=1000,
                                ),
                                "tierToArchive": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=90,
                                ),
                                "tierToCool": azure_native.storage.DateAfterModificationArgs(
                                    days_after_modification_greater_than=30,
                                ),
                            },
                        },
                        "filters": {
                            "blobIndexMatch": [
                                azure_native.storage.TagFilterArgs(
                                    name="tag1",
                                    op="==",
                                    value="val1",
                                ),
                                azure_native.storage.TagFilterArgs(
                                    name="tag2",
                                    op="==",
                                    value="val2",
                                ),
                            ],
                            "blobTypes": ["blockBlob"],
                            "prefixMatch": ["olcmtestcontainer2"],
                        },
                    },
                    "enabled": True,
                    "name": "olcmtest2",
                    "type": "Lifecycle",
                },
            ],
        ),
        resource_group_name="res7687")
    
    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: "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",
    });
    
    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
    

    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 = "Lifecycle",
                    },
                },
            },
            ResourceGroupName = "res7687",
        });
    
    });
    

    Coming soon!

    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 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(Map.of("rules", Map.ofEntries(
                    Map.entry("definition", Map.ofEntries(
                        Map.entry("actions", Map.ofEntries(
                            Map.entry("baseBlob", Map.of("delete", Map.of("daysAfterModificationGreaterThan", 90))),
                            Map.entry("snapshot", Map.of("delete", Map.of("daysAfterCreationGreaterThan", 90))),
                            Map.entry("version", Map.of("delete", Map.of("daysAfterCreationGreaterThan", 90)))
                        )),
                        Map.entry("filters", Map.ofEntries(
                            Map.entry("blobTypes",                         
                                "blockBlob",
                                "appendBlob"),
                            Map.entry("prefixMatch", "olcmtestcontainer1")
                        ))
                    )),
                    Map.entry("enabled", true),
                    Map.entry("name", "olcmtest1"),
                    Map.entry("type", "Lifecycle")
                )))
                .resourceGroupName("res7687")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
        account_name="sto9699",
        management_policy_name="default",
        policy=azure_native.storage.ManagementPolicySchemaResponseArgs(
            rules=[{
                "definition": {
                    "actions": {
                        "baseBlob": {
                            "delete": azure_native.storage.DateAfterModificationArgs(
                                days_after_modification_greater_than=90,
                            ),
                        },
                        "snapshot": {
                            "delete": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=90,
                            ),
                        },
                        "version": {
                            "delete": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=90,
                            ),
                        },
                    },
                    "filters": azure_native.storage.ManagementPolicyFilterArgs(
                        blob_types=[
                            "blockBlob",
                            "appendBlob",
                        ],
                        prefix_match=["olcmtestcontainer1"],
                    ),
                },
                "enabled": True,
                "name": "olcmtest1",
                "type": "Lifecycle",
            }],
        ),
        resource_group_name="res7687")
    
    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: "Lifecycle",
            }],
        },
        resourceGroupName: "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
    

    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 = "Lifecycle",
                    },
                },
            },
            ResourceGroupName = "res7687",
        });
    
    });
    

    Coming soon!

    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 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(Map.of("rules", Map.ofEntries(
                    Map.entry("definition", Map.ofEntries(
                        Map.entry("actions", Map.ofEntries(
                            Map.entry("baseBlob", Map.ofEntries(
                                Map.entry("delete", Map.of("daysAfterModificationGreaterThan", 1000)),
                                Map.entry("tierToArchive", Map.of("daysAfterModificationGreaterThan", 90)),
                                Map.entry("tierToCool", Map.of("daysAfterModificationGreaterThan", 30))
                            )),
                            Map.entry("snapshot", Map.ofEntries(
                                Map.entry("delete", Map.of("daysAfterCreationGreaterThan", 1000)),
                                Map.entry("tierToArchive", Map.of("daysAfterCreationGreaterThan", 90)),
                                Map.entry("tierToCool", Map.of("daysAfterCreationGreaterThan", 30))
                            )),
                            Map.entry("version", Map.ofEntries(
                                Map.entry("delete", Map.of("daysAfterCreationGreaterThan", 1000)),
                                Map.entry("tierToArchive", Map.of("daysAfterCreationGreaterThan", 90)),
                                Map.entry("tierToCool", Map.of("daysAfterCreationGreaterThan", 30))
                            ))
                        )),
                        Map.entry("filters", Map.ofEntries(
                            Map.entry("blobTypes", "blockBlob"),
                            Map.entry("prefixMatch", "olcmtestcontainer1")
                        ))
                    )),
                    Map.entry("enabled", true),
                    Map.entry("name", "olcmtest1"),
                    Map.entry("type", "Lifecycle")
                )))
                .resourceGroupName("res7687")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
        account_name="sto9699",
        management_policy_name="default",
        policy=azure_native.storage.ManagementPolicySchemaResponseArgs(
            rules=[{
                "definition": {
                    "actions": {
                        "baseBlob": {
                            "delete": azure_native.storage.DateAfterModificationArgs(
                                days_after_modification_greater_than=1000,
                            ),
                            "tierToArchive": azure_native.storage.DateAfterModificationArgs(
                                days_after_modification_greater_than=90,
                            ),
                            "tierToCool": azure_native.storage.DateAfterModificationArgs(
                                days_after_modification_greater_than=30,
                            ),
                        },
                        "snapshot": {
                            "delete": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=1000,
                            ),
                            "tierToArchive": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=90,
                            ),
                            "tierToCool": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=30,
                            ),
                        },
                        "version": {
                            "delete": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=1000,
                            ),
                            "tierToArchive": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=90,
                            ),
                            "tierToCool": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=30,
                            ),
                        },
                    },
                    "filters": azure_native.storage.ManagementPolicyFilterArgs(
                        blob_types=["blockBlob"],
                        prefix_match=["olcmtestcontainer1"],
                    ),
                },
                "enabled": True,
                "name": "olcmtest1",
                "type": "Lifecycle",
            }],
        ),
        resource_group_name="res7687")
    
    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: "Lifecycle",
            }],
        },
        resourceGroupName: "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_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 = "Lifecycle",
                    },
                },
            },
            ResourceGroupName = "res7687",
        });
    
    });
    

    Coming soon!

    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 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(Map.of("rules", Map.ofEntries(
                    Map.entry("definition", Map.ofEntries(
                        Map.entry("actions", Map.ofEntries(
                            Map.entry("baseBlob", Map.ofEntries(
                                Map.entry("delete", Map.of("daysAfterLastAccessTimeGreaterThan", 1000)),
                                Map.entry("enableAutoTierToHotFromCool", true),
                                Map.entry("tierToArchive", Map.of("daysAfterLastAccessTimeGreaterThan", 90)),
                                Map.entry("tierToCool", Map.of("daysAfterLastAccessTimeGreaterThan", 30))
                            )),
                            Map.entry("snapshot", Map.of("delete", Map.of("daysAfterCreationGreaterThan", 30)))
                        )),
                        Map.entry("filters", Map.ofEntries(
                            Map.entry("blobTypes", "blockBlob"),
                            Map.entry("prefixMatch", "olcmtestcontainer")
                        ))
                    )),
                    Map.entry("enabled", true),
                    Map.entry("name", "olcmtest"),
                    Map.entry("type", "Lifecycle")
                )))
                .resourceGroupName("res7687")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    management_policy = azure_native.storage.ManagementPolicy("managementPolicy",
        account_name="sto9699",
        management_policy_name="default",
        policy=azure_native.storage.ManagementPolicySchemaResponseArgs(
            rules=[{
                "definition": {
                    "actions": {
                        "baseBlob": {
                            "delete": azure_native.storage.DateAfterModificationArgs(
                                days_after_last_access_time_greater_than=1000,
                            ),
                            "enableAutoTierToHotFromCool": True,
                            "tierToArchive": azure_native.storage.DateAfterModificationArgs(
                                days_after_last_access_time_greater_than=90,
                            ),
                            "tierToCool": azure_native.storage.DateAfterModificationArgs(
                                days_after_last_access_time_greater_than=30,
                            ),
                        },
                        "snapshot": {
                            "delete": azure_native.storage.DateAfterCreationArgs(
                                days_after_creation_greater_than=30,
                            ),
                        },
                    },
                    "filters": azure_native.storage.ManagementPolicyFilterArgs(
                        blob_types=["blockBlob"],
                        prefix_match=["olcmtestcontainer"],
                    ),
                },
                "enabled": True,
                "name": "olcmtest",
                "type": "Lifecycle",
            }],
        ),
        resource_group_name="res7687")
    
    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: "Lifecycle",
            }],
        },
        resourceGroupName: "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
    

    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 = 
        {
            { "rules", new[]
            {
                
                {
                    { "definition", 
                    {
                        { "actions", 
                        {
                            { "baseBlob", 
                            {
                                { "delete", 
                                {
                                    { "daysAfterLastAccessTimeGreaterThan", 0 },
                                    { "daysAfterModificationGreaterThan", 0 },
                                } },
                                { "enableAutoTierToHotFromCool", false },
                                { "tierToArchive", 
                                {
                                    { "daysAfterLastAccessTimeGreaterThan", 0 },
                                    { "daysAfterModificationGreaterThan", 0 },
                                } },
                                { "tierToCool", 
                                {
                                    { "daysAfterLastAccessTimeGreaterThan", 0 },
                                    { "daysAfterModificationGreaterThan", 0 },
                                } },
                            } },
                            { "snapshot", 
                            {
                                { "delete", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                                { "tierToArchive", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                                { "tierToCool", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                            } },
                            { "version", 
                            {
                                { "delete", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                                { "tierToArchive", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                                { "tierToCool", 
                                {
                                    { "daysAfterCreationGreaterThan", 0 },
                                } },
                            } },
                        } },
                        { "filters", 
                        {
                            { "blobTypes", new[]
                            {
                                "string",
                            } },
                            { "blobIndexMatch", new[]
                            {
                                
                                {
                                    { "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: "string",
    	Policy: map[string]interface{}{
    		"rules": []map[string]interface{}{
    			map[string]interface{}{
    				"definition": map[string]interface{}{
    					"actions": map[string]interface{}{
    						"baseBlob": map[string]interface{}{
    							"delete": map[string]interface{}{
    								"daysAfterLastAccessTimeGreaterThan": 0,
    								"daysAfterModificationGreaterThan":   0,
    							},
    							"enableAutoTierToHotFromCool": false,
    							"tierToArchive": map[string]interface{}{
    								"daysAfterLastAccessTimeGreaterThan": 0,
    								"daysAfterModificationGreaterThan":   0,
    							},
    							"tierToCool": map[string]interface{}{
    								"daysAfterLastAccessTimeGreaterThan": 0,
    								"daysAfterModificationGreaterThan":   0,
    							},
    						},
    						"snapshot": map[string]interface{}{
    							"delete": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    							"tierToArchive": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    							"tierToCool": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    						},
    						"version": map[string]interface{}{
    							"delete": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    							"tierToArchive": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    							"tierToCool": map[string]interface{}{
    								"daysAfterCreationGreaterThan": 0,
    							},
    						},
    					},
    					"filters": map[string]interface{}{
    						"blobTypes": []string{
    							"string",
    						},
    						"blobIndexMatch": []map[string]interface{}{
    							map[string]interface{}{
    								"name":  "string",
    								"op":    "string",
    								"value": "string",
    							},
    						},
    						"prefixMatch": []string{
    							"string",
    						},
    					},
    				},
    				"name":    "string",
    				"type":    "string",
    				"enabled": false,
    			},
    		},
    	},
    	ResourceGroupName:    "string",
    	ManagementPolicyName: "string",
    })
    
    var managementPolicyResource = new ManagementPolicy("managementPolicyResource", ManagementPolicyArgs.builder()
        .accountName("string")
        .policy(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .resourceGroupName("string")
        .managementPolicyName("string")
        .build());
    
    management_policy_resource = azure_native.storage.ManagementPolicy("managementPolicyResource",
        account_name=string,
        policy={
            rules: [{
                definition: {
                    actions: {
                        baseBlob: {
                            delete: {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                            enableAutoTierToHotFromCool: False,
                            tierToArchive: {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                        },
                        snapshot: {
                            delete: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToArchive: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterCreationGreaterThan: 0,
                            },
                        },
                        version: {
                            delete: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToArchive: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterCreationGreaterThan: 0,
                            },
                        },
                    },
                    filters: {
                        blobTypes: [string],
                        blobIndexMatch: [{
                            name: string,
                            op: string,
                            value: string,
                        }],
                        prefixMatch: [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": {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                            enableAutoTierToHotFromCool: false,
                            tierToArchive: {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterLastAccessTimeGreaterThan: 0,
                                daysAfterModificationGreaterThan: 0,
                            },
                        },
                        snapshot: {
                            "delete": {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToArchive: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterCreationGreaterThan: 0,
                            },
                        },
                        version: {
                            "delete": {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToArchive: {
                                daysAfterCreationGreaterThan: 0,
                            },
                            tierToCool: {
                                daysAfterCreationGreaterThan: 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:
                                daysAfterLastAccessTimeGreaterThan: 0
                                daysAfterModificationGreaterThan: 0
                            enableAutoTierToHotFromCool: false
                            tierToArchive:
                                daysAfterLastAccessTimeGreaterThan: 0
                                daysAfterModificationGreaterThan: 0
                            tierToCool:
                                daysAfterLastAccessTimeGreaterThan: 0
                                daysAfterModificationGreaterThan: 0
                        snapshot:
                            delete:
                                daysAfterCreationGreaterThan: 0
                            tierToArchive:
                                daysAfterCreationGreaterThan: 0
                            tierToCool:
                                daysAfterCreationGreaterThan: 0
                        version:
                            delete:
                                daysAfterCreationGreaterThan: 0
                            tierToArchive:
                                daysAfterCreationGreaterThan: 0
                            tierToCool:
                                daysAfterCreationGreaterThan: 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

    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.AzureNative.Storage.Inputs.ManagementPolicySchema
    The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    ManagementPolicyName string
    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 ManagementPolicySchemaArgs
    The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    ManagementPolicyName string
    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 ManagementPolicySchema
    The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    managementPolicyName String
    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 ManagementPolicySchema
    The Storage Account ManagementPolicy, in JSON format. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    resourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    managementPolicyName string
    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 ManagementPolicySchemaArgs
    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_name str
    The name of the resource group within the user's subscription. The name is case insensitive.
    management_policy_name str
    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.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    managementPolicyName String
    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.
    LastModifiedTime string
    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.
    LastModifiedTime string
    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.
    lastModifiedTime String
    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.
    lastModifiedTime string
    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_time str
    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.
    lastModifiedTime String
    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

    DaysAfterCreationGreaterThan double
    Value indicating the age in days after creation
    DaysAfterCreationGreaterThan float64
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan Double
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan number
    Value indicating the age in days after creation
    days_after_creation_greater_than float
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan Number
    Value indicating the age in days after creation

    DateAfterCreationResponse, DateAfterCreationResponseArgs

    DaysAfterCreationGreaterThan double
    Value indicating the age in days after creation
    DaysAfterCreationGreaterThan float64
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan Double
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan number
    Value indicating the age in days after creation
    days_after_creation_greater_than float
    Value indicating the age in days after creation
    daysAfterCreationGreaterThan Number
    Value indicating the age in days after creation

    DateAfterModification, DateAfterModificationArgs

    DaysAfterLastAccessTimeGreaterThan double
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    DaysAfterModificationGreaterThan double
    Value indicating the age in days after last modification
    DaysAfterLastAccessTimeGreaterThan float64
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    DaysAfterModificationGreaterThan float64
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan Double
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan Double
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan number
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan number
    Value indicating the age in days after last modification
    days_after_last_access_time_greater_than float
    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_modification_greater_than float
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan Number
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan Number
    Value indicating the age in days after last modification

    DateAfterModificationResponse, DateAfterModificationResponseArgs

    DaysAfterLastAccessTimeGreaterThan double
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    DaysAfterModificationGreaterThan double
    Value indicating the age in days after last modification
    DaysAfterLastAccessTimeGreaterThan float64
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    DaysAfterModificationGreaterThan float64
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan Double
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan Double
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan number
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan number
    Value indicating the age in days after last modification
    days_after_last_access_time_greater_than float
    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_modification_greater_than float
    Value indicating the age in days after last modification
    daysAfterLastAccessTimeGreaterThan Number
    Value indicating the age in days after last blob access. This property can only be used in conjunction with last access time tracking policy
    daysAfterModificationGreaterThan Number
    Value indicating the age in days after last modification

    ManagementPolicyAction, ManagementPolicyActionArgs

    BaseBlob ManagementPolicyBaseBlob
    The management policy action for base blob
    Snapshot ManagementPolicySnapShot
    The management policy action for snapshot
    Version ManagementPolicyVersion
    The management policy action for version
    baseBlob ManagementPolicyBaseBlob
    The management policy action for base blob
    snapshot ManagementPolicySnapShot
    The management policy action for snapshot
    version ManagementPolicyVersion
    The management policy action for version
    baseBlob ManagementPolicyBaseBlob
    The management policy action for base blob
    snapshot ManagementPolicySnapShot
    The management policy action for snapshot
    version ManagementPolicyVersion
    The management policy action for version
    base_blob ManagementPolicyBaseBlob
    The management policy action for base blob
    snapshot ManagementPolicySnapShot
    The management policy action for snapshot
    version ManagementPolicyVersion
    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 ManagementPolicyBaseBlobResponse
    The management policy action for base blob
    Snapshot ManagementPolicySnapShotResponse
    The management policy action for snapshot
    Version ManagementPolicyVersionResponse
    The management policy action for version
    baseBlob ManagementPolicyBaseBlobResponse
    The management policy action for base blob
    snapshot ManagementPolicySnapShotResponse
    The management policy action for snapshot
    version ManagementPolicyVersionResponse
    The management policy action for version
    baseBlob ManagementPolicyBaseBlobResponse
    The management policy action for base blob
    snapshot ManagementPolicySnapShotResponse
    The management policy action for snapshot
    version ManagementPolicyVersionResponse
    The management policy action for version
    base_blob ManagementPolicyBaseBlobResponse
    The management policy action for base blob
    snapshot ManagementPolicySnapShotResponse
    The management policy action for snapshot
    version ManagementPolicyVersionResponse
    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.AzureNative.Storage.Inputs.DateAfterModification
    The function to delete the blob
    EnableAutoTierToHotFromCool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterModification
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterModification
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    Delete DateAfterModification
    The function to delete the blob
    EnableAutoTierToHotFromCool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    TierToArchive DateAfterModification
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    TierToCool DateAfterModification
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModification
    The function to delete the blob
    enableAutoTierToHotFromCool Boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive DateAfterModification
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool DateAfterModification
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModification
    The function to delete the blob
    enableAutoTierToHotFromCool boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive DateAfterModification
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool DateAfterModification
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModification
    The function to delete the blob
    enable_auto_tier_to_hot_from_cool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tier_to_archive DateAfterModification
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tier_to_cool DateAfterModification
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete Property Map
    The function to delete the blob
    enableAutoTierToHotFromCool Boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive Property Map
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blobs to cool storage. Support blobs currently at Hot tier

    ManagementPolicyBaseBlobResponse, ManagementPolicyBaseBlobResponseArgs

    Delete Pulumi.AzureNative.Storage.Inputs.DateAfterModificationResponse
    The function to delete the blob
    EnableAutoTierToHotFromCool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterModificationResponse
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterModificationResponse
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    Delete DateAfterModificationResponse
    The function to delete the blob
    EnableAutoTierToHotFromCool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    TierToArchive DateAfterModificationResponse
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    TierToCool DateAfterModificationResponse
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModificationResponse
    The function to delete the blob
    enableAutoTierToHotFromCool Boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive DateAfterModificationResponse
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool DateAfterModificationResponse
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModificationResponse
    The function to delete the blob
    enableAutoTierToHotFromCool boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive DateAfterModificationResponse
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool DateAfterModificationResponse
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete DateAfterModificationResponse
    The function to delete the blob
    enable_auto_tier_to_hot_from_cool bool
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tier_to_archive DateAfterModificationResponse
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tier_to_cool DateAfterModificationResponse
    The function to tier blobs to cool storage. Support blobs currently at Hot tier
    delete Property Map
    The function to delete the blob
    enableAutoTierToHotFromCool Boolean
    This property enables auto tiering of a blob from cool to hot on a blob access. This property requires tierToCool.daysAfterLastAccessTimeGreaterThan.
    tierToArchive Property Map
    The function to tier blobs to archive storage. Support blobs currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blobs to cool storage. Support blobs currently at Hot tier

    ManagementPolicyDefinition, ManagementPolicyDefinitionArgs

    Actions ManagementPolicyAction
    An object that defines the action set.
    Filters ManagementPolicyFilter
    An object that defines the filter set.
    actions ManagementPolicyAction
    An object that defines the action set.
    filters ManagementPolicyFilter
    An object that defines the filter set.
    actions ManagementPolicyAction
    An object that defines the action set.
    filters ManagementPolicyFilter
    An object that defines the filter set.
    actions ManagementPolicyAction
    An object that defines the action set.
    filters ManagementPolicyFilter
    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 ManagementPolicyActionResponse
    An object that defines the action set.
    Filters ManagementPolicyFilterResponse
    An object that defines the filter set.
    actions ManagementPolicyActionResponse
    An object that defines the action set.
    filters ManagementPolicyFilterResponse
    An object that defines the filter set.
    actions ManagementPolicyActionResponse
    An object that defines the action set.
    filters ManagementPolicyFilterResponse
    An object that defines the filter set.
    actions ManagementPolicyActionResponse
    An object that defines the action set.
    filters ManagementPolicyFilterResponse
    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.
    BlobIndexMatch List<Pulumi.AzureNative.Storage.Inputs.TagFilter>
    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.
    BlobIndexMatch []TagFilter
    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.
    blobIndexMatch List<TagFilter>
    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.
    blobIndexMatch TagFilter[]
    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_match Sequence[TagFilter]
    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.
    blobIndexMatch List<Property Map>
    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.
    BlobIndexMatch List<Pulumi.AzureNative.Storage.Inputs.TagFilterResponse>
    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.
    BlobIndexMatch []TagFilterResponse
    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.
    blobIndexMatch List<TagFilterResponse>
    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.
    blobIndexMatch TagFilterResponse[]
    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_match Sequence[TagFilterResponse]
    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.
    blobIndexMatch List<Property Map>
    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.AzureNative.Storage.Inputs.ManagementPolicyDefinition
    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.AzureNative.Storage.RuleType
    The valid value is Lifecycle
    Enabled bool
    Rule is enabled if set to true.
    Definition ManagementPolicyDefinition
    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 ManagementPolicyDefinition
    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 ManagementPolicyDefinition
    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 ManagementPolicyDefinition
    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.AzureNative.Storage.Inputs.ManagementPolicyDefinitionResponse
    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 ManagementPolicyDefinitionResponse
    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 ManagementPolicyDefinitionResponse
    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 ManagementPolicyDefinitionResponse
    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 ManagementPolicyDefinitionResponse
    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.AzureNative.Storage.Inputs.ManagementPolicyRule>
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    Rules []ManagementPolicyRule
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules List<ManagementPolicyRule>
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules ManagementPolicyRule[]
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules Sequence[ManagementPolicyRule]
    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.AzureNative.Storage.Inputs.ManagementPolicyRuleResponse>
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    Rules []ManagementPolicyRuleResponse
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules List<ManagementPolicyRuleResponse>
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules ManagementPolicyRuleResponse[]
    The Storage Account ManagementPolicies Rules. See more details in: https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
    rules Sequence[ManagementPolicyRuleResponse]
    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.AzureNative.Storage.Inputs.DateAfterCreation
    The function to delete the blob snapshot
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterCreation
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterCreation
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    Delete DateAfterCreation
    The function to delete the blob snapshot
    TierToArchive DateAfterCreation
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    TierToCool DateAfterCreation
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob snapshot
    tierToArchive DateAfterCreation
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool DateAfterCreation
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob snapshot
    tierToArchive DateAfterCreation
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool DateAfterCreation
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob snapshot
    tier_to_archive DateAfterCreation
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tier_to_cool DateAfterCreation
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete Property Map
    The function to delete the blob snapshot
    tierToArchive Property Map
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier

    ManagementPolicySnapShotResponse, ManagementPolicySnapShotResponseArgs

    Delete Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to delete the blob snapshot
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    Delete DateAfterCreationResponse
    The function to delete the blob snapshot
    TierToArchive DateAfterCreationResponse
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    TierToCool DateAfterCreationResponse
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob snapshot
    tierToArchive DateAfterCreationResponse
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool DateAfterCreationResponse
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob snapshot
    tierToArchive DateAfterCreationResponse
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool DateAfterCreationResponse
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob snapshot
    tier_to_archive DateAfterCreationResponse
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tier_to_cool DateAfterCreationResponse
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier
    delete Property Map
    The function to delete the blob snapshot
    tierToArchive Property Map
    The function to tier blob snapshot to archive storage. Support blob snapshot currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blob snapshot to cool storage. Support blob snapshot currently at Hot tier

    ManagementPolicyVersion, ManagementPolicyVersionArgs

    Delete Pulumi.AzureNative.Storage.Inputs.DateAfterCreation
    The function to delete the blob version
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterCreation
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterCreation
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    Delete DateAfterCreation
    The function to delete the blob version
    TierToArchive DateAfterCreation
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    TierToCool DateAfterCreation
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob version
    tierToArchive DateAfterCreation
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool DateAfterCreation
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob version
    tierToArchive DateAfterCreation
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool DateAfterCreation
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreation
    The function to delete the blob version
    tier_to_archive DateAfterCreation
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tier_to_cool DateAfterCreation
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete Property Map
    The function to delete the blob version
    tierToArchive Property Map
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blob version to cool storage. Support blob version currently at Hot tier

    ManagementPolicyVersionResponse, ManagementPolicyVersionResponseArgs

    Delete Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to delete the blob version
    TierToArchive Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    TierToCool Pulumi.AzureNative.Storage.Inputs.DateAfterCreationResponse
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    Delete DateAfterCreationResponse
    The function to delete the blob version
    TierToArchive DateAfterCreationResponse
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    TierToCool DateAfterCreationResponse
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob version
    tierToArchive DateAfterCreationResponse
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool DateAfterCreationResponse
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob version
    tierToArchive DateAfterCreationResponse
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool DateAfterCreationResponse
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete DateAfterCreationResponse
    The function to delete the blob version
    tier_to_archive DateAfterCreationResponse
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tier_to_cool DateAfterCreationResponse
    The function to tier blob version to cool storage. Support blob version currently at Hot tier
    delete Property Map
    The function to delete the blob version
    tierToArchive Property Map
    The function to tier blob version to archive storage. Support blob version currently at Hot or Cool tier
    tierToCool Property Map
    The function to tier blob version to cool storage. Support blob version currently at Hot tier

    RuleType, RuleTypeArgs

    Lifecycle
    Lifecycle
    RuleTypeLifecycle
    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/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Storage/storageAccounts/sto288/managementPolicies/default 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi