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

azure-native.storage.BlobInventoryPolicy

Explore with Pulumi AI

The storage account blob inventory policy.

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

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

Example Usage

StorageAccountSetBlobInventoryPolicy

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

return await Deployment.RunAsync(() => 
{
    var blobInventoryPolicy = new AzureNative.Storage.BlobInventoryPolicy("blobInventoryPolicy", new()
    {
        AccountName = "sto9699",
        BlobInventoryPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.BlobInventoryPolicySchemaArgs
        {
            Enabled = true,
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Filters = new AzureNative.Storage.Inputs.BlobInventoryPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                                "appendBlob",
                                "pageBlob",
                            },
                            CreationTime = new AzureNative.Storage.Inputs.BlobInventoryCreationTimeArgs
                            {
                                LastNDays = 1000,
                            },
                            IncludeBlobVersions = true,
                            IncludeSnapshots = true,
                            PrefixMatch = new[]
                            {
                                "inventoryprefix1",
                                "inventoryprefix2",
                            },
                        },
                        Format = AzureNative.Storage.Format.Csv,
                        ObjectType = AzureNative.Storage.ObjectType.Blob,
                        Schedule = AzureNative.Storage.Schedule.Daily,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Creation-Time",
                            "Last-Modified",
                            "Content-Length",
                            "Content-MD5",
                            "BlobType",
                            "AccessTier",
                            "AccessTierChangeTime",
                            "Snapshot",
                            "VersionId",
                            "IsCurrentVersion",
                            "Metadata",
                        },
                    },
                    Destination = "container1",
                    Enabled = true,
                    Name = "inventoryPolicyRule1",
                },
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Format = AzureNative.Storage.Format.Parquet,
                        ObjectType = AzureNative.Storage.ObjectType.Container,
                        Schedule = AzureNative.Storage.Schedule.Weekly,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Last-Modified",
                            "Metadata",
                            "LeaseStatus",
                            "LeaseState",
                            "LeaseDuration",
                            "PublicAccess",
                            "HasImmutabilityPolicy",
                            "HasLegalHold",
                        },
                    },
                    Destination = "container2",
                    Enabled = true,
                    Name = "inventoryPolicyRule2",
                },
            },
            Type = AzureNative.Storage.InventoryRuleType.Inventory,
        },
        ResourceGroupName = "res7687",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBlobInventoryPolicy(ctx, "blobInventoryPolicy", &storage.BlobInventoryPolicyArgs{
			AccountName:             pulumi.String("sto9699"),
			BlobInventoryPolicyName: pulumi.String("default"),
			Policy: &storage.BlobInventoryPolicySchemaArgs{
				Enabled: pulumi.Bool(true),
				Rules: storage.BlobInventoryPolicyRuleArray{
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Filters: &storage.BlobInventoryPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
									pulumi.String("appendBlob"),
									pulumi.String("pageBlob"),
								},
								CreationTime: &storage.BlobInventoryCreationTimeArgs{
									LastNDays: pulumi.Int(1000),
								},
								IncludeBlobVersions: pulumi.Bool(true),
								IncludeSnapshots:    pulumi.Bool(true),
								PrefixMatch: pulumi.StringArray{
									pulumi.String("inventoryprefix1"),
									pulumi.String("inventoryprefix2"),
								},
							},
							Format:     pulumi.String(storage.FormatCsv),
							ObjectType: pulumi.String(storage.ObjectTypeBlob),
							Schedule:   pulumi.String(storage.ScheduleDaily),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Creation-Time"),
								pulumi.String("Last-Modified"),
								pulumi.String("Content-Length"),
								pulumi.String("Content-MD5"),
								pulumi.String("BlobType"),
								pulumi.String("AccessTier"),
								pulumi.String("AccessTierChangeTime"),
								pulumi.String("Snapshot"),
								pulumi.String("VersionId"),
								pulumi.String("IsCurrentVersion"),
								pulumi.String("Metadata"),
							},
						},
						Destination: pulumi.String("container1"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule1"),
					},
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Format:     pulumi.String(storage.FormatParquet),
							ObjectType: pulumi.String(storage.ObjectTypeContainer),
							Schedule:   pulumi.String(storage.ScheduleWeekly),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Last-Modified"),
								pulumi.String("Metadata"),
								pulumi.String("LeaseStatus"),
								pulumi.String("LeaseState"),
								pulumi.String("LeaseDuration"),
								pulumi.String("PublicAccess"),
								pulumi.String("HasImmutabilityPolicy"),
								pulumi.String("HasLegalHold"),
							},
						},
						Destination: pulumi.String("container2"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule2"),
					},
				},
				Type: pulumi.String(storage.InventoryRuleTypeInventory),
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.BlobInventoryPolicy;
import com.pulumi.azurenative.storage.BlobInventoryPolicyArgs;
import com.pulumi.azurenative.storage.inputs.BlobInventoryPolicySchemaArgs;
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 blobInventoryPolicy = new BlobInventoryPolicy("blobInventoryPolicy", BlobInventoryPolicyArgs.builder()
            .accountName("sto9699")
            .blobInventoryPolicyName("default")
            .policy(BlobInventoryPolicySchemaArgs.builder()
                .enabled(true)
                .rules(                
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .filters(BlobInventoryPolicyFilterArgs.builder()
                                .blobTypes(                                
                                    "blockBlob",
                                    "appendBlob",
                                    "pageBlob")
                                .creationTime(BlobInventoryCreationTimeArgs.builder()
                                    .lastNDays(1000)
                                    .build())
                                .includeBlobVersions(true)
                                .includeSnapshots(true)
                                .prefixMatch(                                
                                    "inventoryprefix1",
                                    "inventoryprefix2")
                                .build())
                            .format("Csv")
                            .objectType("Blob")
                            .schedule("Daily")
                            .schemaFields(                            
                                "Name",
                                "Creation-Time",
                                "Last-Modified",
                                "Content-Length",
                                "Content-MD5",
                                "BlobType",
                                "AccessTier",
                                "AccessTierChangeTime",
                                "Snapshot",
                                "VersionId",
                                "IsCurrentVersion",
                                "Metadata")
                            .build())
                        .destination("container1")
                        .enabled(true)
                        .name("inventoryPolicyRule1")
                        .build(),
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .format("Parquet")
                            .objectType("Container")
                            .schedule("Weekly")
                            .schemaFields(                            
                                "Name",
                                "Last-Modified",
                                "Metadata",
                                "LeaseStatus",
                                "LeaseState",
                                "LeaseDuration",
                                "PublicAccess",
                                "HasImmutabilityPolicy",
                                "HasLegalHold")
                            .build())
                        .destination("container2")
                        .enabled(true)
                        .name("inventoryPolicyRule2")
                        .build())
                .type("Inventory")
                .build())
            .resourceGroupName("res7687")
            .build());

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

const blobInventoryPolicy = new azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy", {
    accountName: "sto9699",
    blobInventoryPolicyName: "default",
    policy: {
        enabled: true,
        rules: [
            {
                definition: {
                    filters: {
                        blobTypes: [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        creationTime: {
                            lastNDays: 1000,
                        },
                        includeBlobVersions: true,
                        includeSnapshots: true,
                        prefixMatch: [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    format: azure_native.storage.Format.Csv,
                    objectType: azure_native.storage.ObjectType.Blob,
                    schedule: azure_native.storage.Schedule.Daily,
                    schemaFields: [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "Metadata",
                    ],
                },
                destination: "container1",
                enabled: true,
                name: "inventoryPolicyRule1",
            },
            {
                definition: {
                    format: azure_native.storage.Format.Parquet,
                    objectType: azure_native.storage.ObjectType.Container,
                    schedule: azure_native.storage.Schedule.Weekly,
                    schemaFields: [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                    ],
                },
                destination: "container2",
                enabled: true,
                name: "inventoryPolicyRule2",
            },
        ],
        type: azure_native.storage.InventoryRuleType.Inventory,
    },
    resourceGroupName: "res7687",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

blob_inventory_policy = azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy",
    account_name="sto9699",
    blob_inventory_policy_name="default",
    policy={
        "enabled": True,
        "rules": [
            {
                "definition": {
                    "filters": {
                        "blob_types": [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        "creation_time": {
                            "last_n_days": 1000,
                        },
                        "include_blob_versions": True,
                        "include_snapshots": True,
                        "prefix_match": [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    "format": azure_native.storage.Format.CSV,
                    "object_type": azure_native.storage.ObjectType.BLOB,
                    "schedule": azure_native.storage.Schedule.DAILY,
                    "schema_fields": [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "Metadata",
                    ],
                },
                "destination": "container1",
                "enabled": True,
                "name": "inventoryPolicyRule1",
            },
            {
                "definition": {
                    "format": azure_native.storage.Format.PARQUET,
                    "object_type": azure_native.storage.ObjectType.CONTAINER,
                    "schedule": azure_native.storage.Schedule.WEEKLY,
                    "schema_fields": [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                    ],
                },
                "destination": "container2",
                "enabled": True,
                "name": "inventoryPolicyRule2",
            },
        ],
        "type": azure_native.storage.InventoryRuleType.INVENTORY,
    },
    resource_group_name="res7687")
Copy
resources:
  blobInventoryPolicy:
    type: azure-native:storage:BlobInventoryPolicy
    properties:
      accountName: sto9699
      blobInventoryPolicyName: default
      policy:
        enabled: true
        rules:
          - definition:
              filters:
                blobTypes:
                  - blockBlob
                  - appendBlob
                  - pageBlob
                creationTime:
                  lastNDays: 1000
                includeBlobVersions: true
                includeSnapshots: true
                prefixMatch:
                  - inventoryprefix1
                  - inventoryprefix2
              format: Csv
              objectType: Blob
              schedule: Daily
              schemaFields:
                - Name
                - Creation-Time
                - Last-Modified
                - Content-Length
                - Content-MD5
                - BlobType
                - AccessTier
                - AccessTierChangeTime
                - Snapshot
                - VersionId
                - IsCurrentVersion
                - Metadata
            destination: container1
            enabled: true
            name: inventoryPolicyRule1
          - definition:
              format: Parquet
              objectType: Container
              schedule: Weekly
              schemaFields:
                - Name
                - Last-Modified
                - Metadata
                - LeaseStatus
                - LeaseState
                - LeaseDuration
                - PublicAccess
                - HasImmutabilityPolicy
                - HasLegalHold
            destination: container2
            enabled: true
            name: inventoryPolicyRule2
        type: Inventory
      resourceGroupName: res7687
Copy

StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForHnsAccount

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

return await Deployment.RunAsync(() => 
{
    var blobInventoryPolicy = new AzureNative.Storage.BlobInventoryPolicy("blobInventoryPolicy", new()
    {
        AccountName = "sto9699",
        BlobInventoryPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.BlobInventoryPolicySchemaArgs
        {
            Enabled = true,
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Filters = new AzureNative.Storage.Inputs.BlobInventoryPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                                "appendBlob",
                                "pageBlob",
                            },
                            ExcludePrefix = new[]
                            {
                                "excludeprefix1",
                                "excludeprefix2",
                            },
                            IncludeBlobVersions = true,
                            IncludeDeleted = true,
                            IncludeSnapshots = true,
                            PrefixMatch = new[]
                            {
                                "inventoryprefix1",
                                "inventoryprefix2",
                            },
                        },
                        Format = AzureNative.Storage.Format.Csv,
                        ObjectType = AzureNative.Storage.ObjectType.Blob,
                        Schedule = AzureNative.Storage.Schedule.Daily,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Creation-Time",
                            "Last-Modified",
                            "Content-Length",
                            "Content-MD5",
                            "BlobType",
                            "AccessTier",
                            "AccessTierChangeTime",
                            "Snapshot",
                            "VersionId",
                            "IsCurrentVersion",
                            "ContentType",
                            "ContentEncoding",
                            "ContentLanguage",
                            "ContentCRC64",
                            "CacheControl",
                            "Metadata",
                            "DeletionId",
                            "Deleted",
                            "DeletedTime",
                            "RemainingRetentionDays",
                        },
                    },
                    Destination = "container1",
                    Enabled = true,
                    Name = "inventoryPolicyRule1",
                },
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Format = AzureNative.Storage.Format.Parquet,
                        ObjectType = AzureNative.Storage.ObjectType.Container,
                        Schedule = AzureNative.Storage.Schedule.Weekly,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Last-Modified",
                            "Metadata",
                            "LeaseStatus",
                            "LeaseState",
                            "LeaseDuration",
                            "PublicAccess",
                            "HasImmutabilityPolicy",
                            "HasLegalHold",
                            "Etag",
                            "DefaultEncryptionScope",
                            "DenyEncryptionScopeOverride",
                            "ImmutableStorageWithVersioningEnabled",
                            "Deleted",
                            "Version",
                            "DeletedTime",
                            "RemainingRetentionDays",
                        },
                    },
                    Destination = "container2",
                    Enabled = true,
                    Name = "inventoryPolicyRule2",
                },
            },
            Type = AzureNative.Storage.InventoryRuleType.Inventory,
        },
        ResourceGroupName = "res7687",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBlobInventoryPolicy(ctx, "blobInventoryPolicy", &storage.BlobInventoryPolicyArgs{
			AccountName:             pulumi.String("sto9699"),
			BlobInventoryPolicyName: pulumi.String("default"),
			Policy: &storage.BlobInventoryPolicySchemaArgs{
				Enabled: pulumi.Bool(true),
				Rules: storage.BlobInventoryPolicyRuleArray{
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Filters: &storage.BlobInventoryPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
									pulumi.String("appendBlob"),
									pulumi.String("pageBlob"),
								},
								ExcludePrefix: pulumi.StringArray{
									pulumi.String("excludeprefix1"),
									pulumi.String("excludeprefix2"),
								},
								IncludeBlobVersions: pulumi.Bool(true),
								IncludeDeleted:      pulumi.Bool(true),
								IncludeSnapshots:    pulumi.Bool(true),
								PrefixMatch: pulumi.StringArray{
									pulumi.String("inventoryprefix1"),
									pulumi.String("inventoryprefix2"),
								},
							},
							Format:     pulumi.String(storage.FormatCsv),
							ObjectType: pulumi.String(storage.ObjectTypeBlob),
							Schedule:   pulumi.String(storage.ScheduleDaily),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Creation-Time"),
								pulumi.String("Last-Modified"),
								pulumi.String("Content-Length"),
								pulumi.String("Content-MD5"),
								pulumi.String("BlobType"),
								pulumi.String("AccessTier"),
								pulumi.String("AccessTierChangeTime"),
								pulumi.String("Snapshot"),
								pulumi.String("VersionId"),
								pulumi.String("IsCurrentVersion"),
								pulumi.String("ContentType"),
								pulumi.String("ContentEncoding"),
								pulumi.String("ContentLanguage"),
								pulumi.String("ContentCRC64"),
								pulumi.String("CacheControl"),
								pulumi.String("Metadata"),
								pulumi.String("DeletionId"),
								pulumi.String("Deleted"),
								pulumi.String("DeletedTime"),
								pulumi.String("RemainingRetentionDays"),
							},
						},
						Destination: pulumi.String("container1"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule1"),
					},
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Format:     pulumi.String(storage.FormatParquet),
							ObjectType: pulumi.String(storage.ObjectTypeContainer),
							Schedule:   pulumi.String(storage.ScheduleWeekly),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Last-Modified"),
								pulumi.String("Metadata"),
								pulumi.String("LeaseStatus"),
								pulumi.String("LeaseState"),
								pulumi.String("LeaseDuration"),
								pulumi.String("PublicAccess"),
								pulumi.String("HasImmutabilityPolicy"),
								pulumi.String("HasLegalHold"),
								pulumi.String("Etag"),
								pulumi.String("DefaultEncryptionScope"),
								pulumi.String("DenyEncryptionScopeOverride"),
								pulumi.String("ImmutableStorageWithVersioningEnabled"),
								pulumi.String("Deleted"),
								pulumi.String("Version"),
								pulumi.String("DeletedTime"),
								pulumi.String("RemainingRetentionDays"),
							},
						},
						Destination: pulumi.String("container2"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule2"),
					},
				},
				Type: pulumi.String(storage.InventoryRuleTypeInventory),
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.BlobInventoryPolicy;
import com.pulumi.azurenative.storage.BlobInventoryPolicyArgs;
import com.pulumi.azurenative.storage.inputs.BlobInventoryPolicySchemaArgs;
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 blobInventoryPolicy = new BlobInventoryPolicy("blobInventoryPolicy", BlobInventoryPolicyArgs.builder()
            .accountName("sto9699")
            .blobInventoryPolicyName("default")
            .policy(BlobInventoryPolicySchemaArgs.builder()
                .enabled(true)
                .rules(                
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .filters(BlobInventoryPolicyFilterArgs.builder()
                                .blobTypes(                                
                                    "blockBlob",
                                    "appendBlob",
                                    "pageBlob")
                                .excludePrefix(                                
                                    "excludeprefix1",
                                    "excludeprefix2")
                                .includeBlobVersions(true)
                                .includeDeleted(true)
                                .includeSnapshots(true)
                                .prefixMatch(                                
                                    "inventoryprefix1",
                                    "inventoryprefix2")
                                .build())
                            .format("Csv")
                            .objectType("Blob")
                            .schedule("Daily")
                            .schemaFields(                            
                                "Name",
                                "Creation-Time",
                                "Last-Modified",
                                "Content-Length",
                                "Content-MD5",
                                "BlobType",
                                "AccessTier",
                                "AccessTierChangeTime",
                                "Snapshot",
                                "VersionId",
                                "IsCurrentVersion",
                                "ContentType",
                                "ContentEncoding",
                                "ContentLanguage",
                                "ContentCRC64",
                                "CacheControl",
                                "Metadata",
                                "DeletionId",
                                "Deleted",
                                "DeletedTime",
                                "RemainingRetentionDays")
                            .build())
                        .destination("container1")
                        .enabled(true)
                        .name("inventoryPolicyRule1")
                        .build(),
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .format("Parquet")
                            .objectType("Container")
                            .schedule("Weekly")
                            .schemaFields(                            
                                "Name",
                                "Last-Modified",
                                "Metadata",
                                "LeaseStatus",
                                "LeaseState",
                                "LeaseDuration",
                                "PublicAccess",
                                "HasImmutabilityPolicy",
                                "HasLegalHold",
                                "Etag",
                                "DefaultEncryptionScope",
                                "DenyEncryptionScopeOverride",
                                "ImmutableStorageWithVersioningEnabled",
                                "Deleted",
                                "Version",
                                "DeletedTime",
                                "RemainingRetentionDays")
                            .build())
                        .destination("container2")
                        .enabled(true)
                        .name("inventoryPolicyRule2")
                        .build())
                .type("Inventory")
                .build())
            .resourceGroupName("res7687")
            .build());

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

const blobInventoryPolicy = new azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy", {
    accountName: "sto9699",
    blobInventoryPolicyName: "default",
    policy: {
        enabled: true,
        rules: [
            {
                definition: {
                    filters: {
                        blobTypes: [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        excludePrefix: [
                            "excludeprefix1",
                            "excludeprefix2",
                        ],
                        includeBlobVersions: true,
                        includeDeleted: true,
                        includeSnapshots: true,
                        prefixMatch: [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    format: azure_native.storage.Format.Csv,
                    objectType: azure_native.storage.ObjectType.Blob,
                    schedule: azure_native.storage.Schedule.Daily,
                    schemaFields: [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "ContentType",
                        "ContentEncoding",
                        "ContentLanguage",
                        "ContentCRC64",
                        "CacheControl",
                        "Metadata",
                        "DeletionId",
                        "Deleted",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                destination: "container1",
                enabled: true,
                name: "inventoryPolicyRule1",
            },
            {
                definition: {
                    format: azure_native.storage.Format.Parquet,
                    objectType: azure_native.storage.ObjectType.Container,
                    schedule: azure_native.storage.Schedule.Weekly,
                    schemaFields: [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                        "Etag",
                        "DefaultEncryptionScope",
                        "DenyEncryptionScopeOverride",
                        "ImmutableStorageWithVersioningEnabled",
                        "Deleted",
                        "Version",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                destination: "container2",
                enabled: true,
                name: "inventoryPolicyRule2",
            },
        ],
        type: azure_native.storage.InventoryRuleType.Inventory,
    },
    resourceGroupName: "res7687",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

blob_inventory_policy = azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy",
    account_name="sto9699",
    blob_inventory_policy_name="default",
    policy={
        "enabled": True,
        "rules": [
            {
                "definition": {
                    "filters": {
                        "blob_types": [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        "exclude_prefix": [
                            "excludeprefix1",
                            "excludeprefix2",
                        ],
                        "include_blob_versions": True,
                        "include_deleted": True,
                        "include_snapshots": True,
                        "prefix_match": [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    "format": azure_native.storage.Format.CSV,
                    "object_type": azure_native.storage.ObjectType.BLOB,
                    "schedule": azure_native.storage.Schedule.DAILY,
                    "schema_fields": [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "ContentType",
                        "ContentEncoding",
                        "ContentLanguage",
                        "ContentCRC64",
                        "CacheControl",
                        "Metadata",
                        "DeletionId",
                        "Deleted",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                "destination": "container1",
                "enabled": True,
                "name": "inventoryPolicyRule1",
            },
            {
                "definition": {
                    "format": azure_native.storage.Format.PARQUET,
                    "object_type": azure_native.storage.ObjectType.CONTAINER,
                    "schedule": azure_native.storage.Schedule.WEEKLY,
                    "schema_fields": [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                        "Etag",
                        "DefaultEncryptionScope",
                        "DenyEncryptionScopeOverride",
                        "ImmutableStorageWithVersioningEnabled",
                        "Deleted",
                        "Version",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                "destination": "container2",
                "enabled": True,
                "name": "inventoryPolicyRule2",
            },
        ],
        "type": azure_native.storage.InventoryRuleType.INVENTORY,
    },
    resource_group_name="res7687")
Copy
resources:
  blobInventoryPolicy:
    type: azure-native:storage:BlobInventoryPolicy
    properties:
      accountName: sto9699
      blobInventoryPolicyName: default
      policy:
        enabled: true
        rules:
          - definition:
              filters:
                blobTypes:
                  - blockBlob
                  - appendBlob
                  - pageBlob
                excludePrefix:
                  - excludeprefix1
                  - excludeprefix2
                includeBlobVersions: true
                includeDeleted: true
                includeSnapshots: true
                prefixMatch:
                  - inventoryprefix1
                  - inventoryprefix2
              format: Csv
              objectType: Blob
              schedule: Daily
              schemaFields:
                - Name
                - Creation-Time
                - Last-Modified
                - Content-Length
                - Content-MD5
                - BlobType
                - AccessTier
                - AccessTierChangeTime
                - Snapshot
                - VersionId
                - IsCurrentVersion
                - ContentType
                - ContentEncoding
                - ContentLanguage
                - ContentCRC64
                - CacheControl
                - Metadata
                - DeletionId
                - Deleted
                - DeletedTime
                - RemainingRetentionDays
            destination: container1
            enabled: true
            name: inventoryPolicyRule1
          - definition:
              format: Parquet
              objectType: Container
              schedule: Weekly
              schemaFields:
                - Name
                - Last-Modified
                - Metadata
                - LeaseStatus
                - LeaseState
                - LeaseDuration
                - PublicAccess
                - HasImmutabilityPolicy
                - HasLegalHold
                - Etag
                - DefaultEncryptionScope
                - DenyEncryptionScopeOverride
                - ImmutableStorageWithVersioningEnabled
                - Deleted
                - Version
                - DeletedTime
                - RemainingRetentionDays
            destination: container2
            enabled: true
            name: inventoryPolicyRule2
        type: Inventory
      resourceGroupName: res7687
Copy

StorageAccountSetBlobInventoryPolicyIncludeDeleteAndNewSchemaForNonHnsAccount

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

return await Deployment.RunAsync(() => 
{
    var blobInventoryPolicy = new AzureNative.Storage.BlobInventoryPolicy("blobInventoryPolicy", new()
    {
        AccountName = "sto9699",
        BlobInventoryPolicyName = "default",
        Policy = new AzureNative.Storage.Inputs.BlobInventoryPolicySchemaArgs
        {
            Enabled = true,
            Rules = new[]
            {
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Filters = new AzureNative.Storage.Inputs.BlobInventoryPolicyFilterArgs
                        {
                            BlobTypes = new[]
                            {
                                "blockBlob",
                                "appendBlob",
                                "pageBlob",
                            },
                            ExcludePrefix = new[]
                            {
                                "excludeprefix1",
                                "excludeprefix2",
                            },
                            IncludeBlobVersions = true,
                            IncludeDeleted = true,
                            IncludeSnapshots = true,
                            PrefixMatch = new[]
                            {
                                "inventoryprefix1",
                                "inventoryprefix2",
                            },
                        },
                        Format = AzureNative.Storage.Format.Csv,
                        ObjectType = AzureNative.Storage.ObjectType.Blob,
                        Schedule = AzureNative.Storage.Schedule.Daily,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Creation-Time",
                            "Last-Modified",
                            "Content-Length",
                            "Content-MD5",
                            "BlobType",
                            "AccessTier",
                            "AccessTierChangeTime",
                            "Snapshot",
                            "VersionId",
                            "IsCurrentVersion",
                            "Tags",
                            "ContentType",
                            "ContentEncoding",
                            "ContentLanguage",
                            "ContentCRC64",
                            "CacheControl",
                            "Metadata",
                            "Deleted",
                            "RemainingRetentionDays",
                        },
                    },
                    Destination = "container1",
                    Enabled = true,
                    Name = "inventoryPolicyRule1",
                },
                new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
                {
                    Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                    {
                        Format = AzureNative.Storage.Format.Parquet,
                        ObjectType = AzureNative.Storage.ObjectType.Container,
                        Schedule = AzureNative.Storage.Schedule.Weekly,
                        SchemaFields = new[]
                        {
                            "Name",
                            "Last-Modified",
                            "Metadata",
                            "LeaseStatus",
                            "LeaseState",
                            "LeaseDuration",
                            "PublicAccess",
                            "HasImmutabilityPolicy",
                            "HasLegalHold",
                            "Etag",
                            "DefaultEncryptionScope",
                            "DenyEncryptionScopeOverride",
                            "ImmutableStorageWithVersioningEnabled",
                            "Deleted",
                            "Version",
                            "DeletedTime",
                            "RemainingRetentionDays",
                        },
                    },
                    Destination = "container2",
                    Enabled = true,
                    Name = "inventoryPolicyRule2",
                },
            },
            Type = AzureNative.Storage.InventoryRuleType.Inventory,
        },
        ResourceGroupName = "res7687",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := storage.NewBlobInventoryPolicy(ctx, "blobInventoryPolicy", &storage.BlobInventoryPolicyArgs{
			AccountName:             pulumi.String("sto9699"),
			BlobInventoryPolicyName: pulumi.String("default"),
			Policy: &storage.BlobInventoryPolicySchemaArgs{
				Enabled: pulumi.Bool(true),
				Rules: storage.BlobInventoryPolicyRuleArray{
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Filters: &storage.BlobInventoryPolicyFilterArgs{
								BlobTypes: pulumi.StringArray{
									pulumi.String("blockBlob"),
									pulumi.String("appendBlob"),
									pulumi.String("pageBlob"),
								},
								ExcludePrefix: pulumi.StringArray{
									pulumi.String("excludeprefix1"),
									pulumi.String("excludeprefix2"),
								},
								IncludeBlobVersions: pulumi.Bool(true),
								IncludeDeleted:      pulumi.Bool(true),
								IncludeSnapshots:    pulumi.Bool(true),
								PrefixMatch: pulumi.StringArray{
									pulumi.String("inventoryprefix1"),
									pulumi.String("inventoryprefix2"),
								},
							},
							Format:     pulumi.String(storage.FormatCsv),
							ObjectType: pulumi.String(storage.ObjectTypeBlob),
							Schedule:   pulumi.String(storage.ScheduleDaily),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Creation-Time"),
								pulumi.String("Last-Modified"),
								pulumi.String("Content-Length"),
								pulumi.String("Content-MD5"),
								pulumi.String("BlobType"),
								pulumi.String("AccessTier"),
								pulumi.String("AccessTierChangeTime"),
								pulumi.String("Snapshot"),
								pulumi.String("VersionId"),
								pulumi.String("IsCurrentVersion"),
								pulumi.String("Tags"),
								pulumi.String("ContentType"),
								pulumi.String("ContentEncoding"),
								pulumi.String("ContentLanguage"),
								pulumi.String("ContentCRC64"),
								pulumi.String("CacheControl"),
								pulumi.String("Metadata"),
								pulumi.String("Deleted"),
								pulumi.String("RemainingRetentionDays"),
							},
						},
						Destination: pulumi.String("container1"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule1"),
					},
					&storage.BlobInventoryPolicyRuleArgs{
						Definition: &storage.BlobInventoryPolicyDefinitionArgs{
							Format:     pulumi.String(storage.FormatParquet),
							ObjectType: pulumi.String(storage.ObjectTypeContainer),
							Schedule:   pulumi.String(storage.ScheduleWeekly),
							SchemaFields: pulumi.StringArray{
								pulumi.String("Name"),
								pulumi.String("Last-Modified"),
								pulumi.String("Metadata"),
								pulumi.String("LeaseStatus"),
								pulumi.String("LeaseState"),
								pulumi.String("LeaseDuration"),
								pulumi.String("PublicAccess"),
								pulumi.String("HasImmutabilityPolicy"),
								pulumi.String("HasLegalHold"),
								pulumi.String("Etag"),
								pulumi.String("DefaultEncryptionScope"),
								pulumi.String("DenyEncryptionScopeOverride"),
								pulumi.String("ImmutableStorageWithVersioningEnabled"),
								pulumi.String("Deleted"),
								pulumi.String("Version"),
								pulumi.String("DeletedTime"),
								pulumi.String("RemainingRetentionDays"),
							},
						},
						Destination: pulumi.String("container2"),
						Enabled:     pulumi.Bool(true),
						Name:        pulumi.String("inventoryPolicyRule2"),
					},
				},
				Type: pulumi.String(storage.InventoryRuleTypeInventory),
			},
			ResourceGroupName: pulumi.String("res7687"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.BlobInventoryPolicy;
import com.pulumi.azurenative.storage.BlobInventoryPolicyArgs;
import com.pulumi.azurenative.storage.inputs.BlobInventoryPolicySchemaArgs;
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 blobInventoryPolicy = new BlobInventoryPolicy("blobInventoryPolicy", BlobInventoryPolicyArgs.builder()
            .accountName("sto9699")
            .blobInventoryPolicyName("default")
            .policy(BlobInventoryPolicySchemaArgs.builder()
                .enabled(true)
                .rules(                
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .filters(BlobInventoryPolicyFilterArgs.builder()
                                .blobTypes(                                
                                    "blockBlob",
                                    "appendBlob",
                                    "pageBlob")
                                .excludePrefix(                                
                                    "excludeprefix1",
                                    "excludeprefix2")
                                .includeBlobVersions(true)
                                .includeDeleted(true)
                                .includeSnapshots(true)
                                .prefixMatch(                                
                                    "inventoryprefix1",
                                    "inventoryprefix2")
                                .build())
                            .format("Csv")
                            .objectType("Blob")
                            .schedule("Daily")
                            .schemaFields(                            
                                "Name",
                                "Creation-Time",
                                "Last-Modified",
                                "Content-Length",
                                "Content-MD5",
                                "BlobType",
                                "AccessTier",
                                "AccessTierChangeTime",
                                "Snapshot",
                                "VersionId",
                                "IsCurrentVersion",
                                "Tags",
                                "ContentType",
                                "ContentEncoding",
                                "ContentLanguage",
                                "ContentCRC64",
                                "CacheControl",
                                "Metadata",
                                "Deleted",
                                "RemainingRetentionDays")
                            .build())
                        .destination("container1")
                        .enabled(true)
                        .name("inventoryPolicyRule1")
                        .build(),
                    BlobInventoryPolicyRuleArgs.builder()
                        .definition(BlobInventoryPolicyDefinitionArgs.builder()
                            .format("Parquet")
                            .objectType("Container")
                            .schedule("Weekly")
                            .schemaFields(                            
                                "Name",
                                "Last-Modified",
                                "Metadata",
                                "LeaseStatus",
                                "LeaseState",
                                "LeaseDuration",
                                "PublicAccess",
                                "HasImmutabilityPolicy",
                                "HasLegalHold",
                                "Etag",
                                "DefaultEncryptionScope",
                                "DenyEncryptionScopeOverride",
                                "ImmutableStorageWithVersioningEnabled",
                                "Deleted",
                                "Version",
                                "DeletedTime",
                                "RemainingRetentionDays")
                            .build())
                        .destination("container2")
                        .enabled(true)
                        .name("inventoryPolicyRule2")
                        .build())
                .type("Inventory")
                .build())
            .resourceGroupName("res7687")
            .build());

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

const blobInventoryPolicy = new azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy", {
    accountName: "sto9699",
    blobInventoryPolicyName: "default",
    policy: {
        enabled: true,
        rules: [
            {
                definition: {
                    filters: {
                        blobTypes: [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        excludePrefix: [
                            "excludeprefix1",
                            "excludeprefix2",
                        ],
                        includeBlobVersions: true,
                        includeDeleted: true,
                        includeSnapshots: true,
                        prefixMatch: [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    format: azure_native.storage.Format.Csv,
                    objectType: azure_native.storage.ObjectType.Blob,
                    schedule: azure_native.storage.Schedule.Daily,
                    schemaFields: [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "Tags",
                        "ContentType",
                        "ContentEncoding",
                        "ContentLanguage",
                        "ContentCRC64",
                        "CacheControl",
                        "Metadata",
                        "Deleted",
                        "RemainingRetentionDays",
                    ],
                },
                destination: "container1",
                enabled: true,
                name: "inventoryPolicyRule1",
            },
            {
                definition: {
                    format: azure_native.storage.Format.Parquet,
                    objectType: azure_native.storage.ObjectType.Container,
                    schedule: azure_native.storage.Schedule.Weekly,
                    schemaFields: [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                        "Etag",
                        "DefaultEncryptionScope",
                        "DenyEncryptionScopeOverride",
                        "ImmutableStorageWithVersioningEnabled",
                        "Deleted",
                        "Version",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                destination: "container2",
                enabled: true,
                name: "inventoryPolicyRule2",
            },
        ],
        type: azure_native.storage.InventoryRuleType.Inventory,
    },
    resourceGroupName: "res7687",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

blob_inventory_policy = azure_native.storage.BlobInventoryPolicy("blobInventoryPolicy",
    account_name="sto9699",
    blob_inventory_policy_name="default",
    policy={
        "enabled": True,
        "rules": [
            {
                "definition": {
                    "filters": {
                        "blob_types": [
                            "blockBlob",
                            "appendBlob",
                            "pageBlob",
                        ],
                        "exclude_prefix": [
                            "excludeprefix1",
                            "excludeprefix2",
                        ],
                        "include_blob_versions": True,
                        "include_deleted": True,
                        "include_snapshots": True,
                        "prefix_match": [
                            "inventoryprefix1",
                            "inventoryprefix2",
                        ],
                    },
                    "format": azure_native.storage.Format.CSV,
                    "object_type": azure_native.storage.ObjectType.BLOB,
                    "schedule": azure_native.storage.Schedule.DAILY,
                    "schema_fields": [
                        "Name",
                        "Creation-Time",
                        "Last-Modified",
                        "Content-Length",
                        "Content-MD5",
                        "BlobType",
                        "AccessTier",
                        "AccessTierChangeTime",
                        "Snapshot",
                        "VersionId",
                        "IsCurrentVersion",
                        "Tags",
                        "ContentType",
                        "ContentEncoding",
                        "ContentLanguage",
                        "ContentCRC64",
                        "CacheControl",
                        "Metadata",
                        "Deleted",
                        "RemainingRetentionDays",
                    ],
                },
                "destination": "container1",
                "enabled": True,
                "name": "inventoryPolicyRule1",
            },
            {
                "definition": {
                    "format": azure_native.storage.Format.PARQUET,
                    "object_type": azure_native.storage.ObjectType.CONTAINER,
                    "schedule": azure_native.storage.Schedule.WEEKLY,
                    "schema_fields": [
                        "Name",
                        "Last-Modified",
                        "Metadata",
                        "LeaseStatus",
                        "LeaseState",
                        "LeaseDuration",
                        "PublicAccess",
                        "HasImmutabilityPolicy",
                        "HasLegalHold",
                        "Etag",
                        "DefaultEncryptionScope",
                        "DenyEncryptionScopeOverride",
                        "ImmutableStorageWithVersioningEnabled",
                        "Deleted",
                        "Version",
                        "DeletedTime",
                        "RemainingRetentionDays",
                    ],
                },
                "destination": "container2",
                "enabled": True,
                "name": "inventoryPolicyRule2",
            },
        ],
        "type": azure_native.storage.InventoryRuleType.INVENTORY,
    },
    resource_group_name="res7687")
Copy
resources:
  blobInventoryPolicy:
    type: azure-native:storage:BlobInventoryPolicy
    properties:
      accountName: sto9699
      blobInventoryPolicyName: default
      policy:
        enabled: true
        rules:
          - definition:
              filters:
                blobTypes:
                  - blockBlob
                  - appendBlob
                  - pageBlob
                excludePrefix:
                  - excludeprefix1
                  - excludeprefix2
                includeBlobVersions: true
                includeDeleted: true
                includeSnapshots: true
                prefixMatch:
                  - inventoryprefix1
                  - inventoryprefix2
              format: Csv
              objectType: Blob
              schedule: Daily
              schemaFields:
                - Name
                - Creation-Time
                - Last-Modified
                - Content-Length
                - Content-MD5
                - BlobType
                - AccessTier
                - AccessTierChangeTime
                - Snapshot
                - VersionId
                - IsCurrentVersion
                - Tags
                - ContentType
                - ContentEncoding
                - ContentLanguage
                - ContentCRC64
                - CacheControl
                - Metadata
                - Deleted
                - RemainingRetentionDays
            destination: container1
            enabled: true
            name: inventoryPolicyRule1
          - definition:
              format: Parquet
              objectType: Container
              schedule: Weekly
              schemaFields:
                - Name
                - Last-Modified
                - Metadata
                - LeaseStatus
                - LeaseState
                - LeaseDuration
                - PublicAccess
                - HasImmutabilityPolicy
                - HasLegalHold
                - Etag
                - DefaultEncryptionScope
                - DenyEncryptionScopeOverride
                - ImmutableStorageWithVersioningEnabled
                - Deleted
                - Version
                - DeletedTime
                - RemainingRetentionDays
            destination: container2
            enabled: true
            name: inventoryPolicyRule2
        type: Inventory
      resourceGroupName: res7687
Copy

Create BlobInventoryPolicy Resource

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

Constructor syntax

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

@overload
def BlobInventoryPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        account_name: Optional[str] = None,
                        policy: Optional[BlobInventoryPolicySchemaArgs] = None,
                        resource_group_name: Optional[str] = None,
                        blob_inventory_policy_name: Optional[str] = None)
func NewBlobInventoryPolicy(ctx *Context, name string, args BlobInventoryPolicyArgs, opts ...ResourceOption) (*BlobInventoryPolicy, error)
public BlobInventoryPolicy(string name, BlobInventoryPolicyArgs args, CustomResourceOptions? opts = null)
public BlobInventoryPolicy(String name, BlobInventoryPolicyArgs args)
public BlobInventoryPolicy(String name, BlobInventoryPolicyArgs args, CustomResourceOptions options)
type: azure-native:storage:BlobInventoryPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BlobInventoryPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BlobInventoryPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BlobInventoryPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BlobInventoryPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BlobInventoryPolicyArgs
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 blobInventoryPolicyResource = new AzureNative.Storage.BlobInventoryPolicy("blobInventoryPolicyResource", new()
{
    AccountName = "string",
    Policy = new AzureNative.Storage.Inputs.BlobInventoryPolicySchemaArgs
    {
        Enabled = false,
        Rules = new[]
        {
            new AzureNative.Storage.Inputs.BlobInventoryPolicyRuleArgs
            {
                Definition = new AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionArgs
                {
                    Format = "string",
                    ObjectType = "string",
                    Schedule = "string",
                    SchemaFields = new[]
                    {
                        "string",
                    },
                    Filters = new AzureNative.Storage.Inputs.BlobInventoryPolicyFilterArgs
                    {
                        BlobTypes = new[]
                        {
                            "string",
                        },
                        CreationTime = new AzureNative.Storage.Inputs.BlobInventoryCreationTimeArgs
                        {
                            LastNDays = 0,
                        },
                        ExcludePrefix = new[]
                        {
                            "string",
                        },
                        IncludeBlobVersions = false,
                        IncludeDeleted = false,
                        IncludeSnapshots = false,
                        PrefixMatch = new[]
                        {
                            "string",
                        },
                    },
                },
                Destination = "string",
                Enabled = false,
                Name = "string",
            },
        },
        Type = "string",
    },
    ResourceGroupName = "string",
    BlobInventoryPolicyName = "string",
});
Copy
example, err := storage.NewBlobInventoryPolicy(ctx, "blobInventoryPolicyResource", &storage.BlobInventoryPolicyArgs{
	AccountName: pulumi.String("string"),
	Policy: &storage.BlobInventoryPolicySchemaArgs{
		Enabled: pulumi.Bool(false),
		Rules: storage.BlobInventoryPolicyRuleArray{
			&storage.BlobInventoryPolicyRuleArgs{
				Definition: &storage.BlobInventoryPolicyDefinitionArgs{
					Format:     pulumi.String("string"),
					ObjectType: pulumi.String("string"),
					Schedule:   pulumi.String("string"),
					SchemaFields: pulumi.StringArray{
						pulumi.String("string"),
					},
					Filters: &storage.BlobInventoryPolicyFilterArgs{
						BlobTypes: pulumi.StringArray{
							pulumi.String("string"),
						},
						CreationTime: &storage.BlobInventoryCreationTimeArgs{
							LastNDays: pulumi.Int(0),
						},
						ExcludePrefix: pulumi.StringArray{
							pulumi.String("string"),
						},
						IncludeBlobVersions: pulumi.Bool(false),
						IncludeDeleted:      pulumi.Bool(false),
						IncludeSnapshots:    pulumi.Bool(false),
						PrefixMatch: pulumi.StringArray{
							pulumi.String("string"),
						},
					},
				},
				Destination: pulumi.String("string"),
				Enabled:     pulumi.Bool(false),
				Name:        pulumi.String("string"),
			},
		},
		Type: pulumi.String("string"),
	},
	ResourceGroupName:       pulumi.String("string"),
	BlobInventoryPolicyName: pulumi.String("string"),
})
Copy
var blobInventoryPolicyResource = new BlobInventoryPolicy("blobInventoryPolicyResource", BlobInventoryPolicyArgs.builder()
    .accountName("string")
    .policy(BlobInventoryPolicySchemaArgs.builder()
        .enabled(false)
        .rules(BlobInventoryPolicyRuleArgs.builder()
            .definition(BlobInventoryPolicyDefinitionArgs.builder()
                .format("string")
                .objectType("string")
                .schedule("string")
                .schemaFields("string")
                .filters(BlobInventoryPolicyFilterArgs.builder()
                    .blobTypes("string")
                    .creationTime(BlobInventoryCreationTimeArgs.builder()
                        .lastNDays(0)
                        .build())
                    .excludePrefix("string")
                    .includeBlobVersions(false)
                    .includeDeleted(false)
                    .includeSnapshots(false)
                    .prefixMatch("string")
                    .build())
                .build())
            .destination("string")
            .enabled(false)
            .name("string")
            .build())
        .type("string")
        .build())
    .resourceGroupName("string")
    .blobInventoryPolicyName("string")
    .build());
Copy
blob_inventory_policy_resource = azure_native.storage.BlobInventoryPolicy("blobInventoryPolicyResource",
    account_name="string",
    policy={
        "enabled": False,
        "rules": [{
            "definition": {
                "format": "string",
                "object_type": "string",
                "schedule": "string",
                "schema_fields": ["string"],
                "filters": {
                    "blob_types": ["string"],
                    "creation_time": {
                        "last_n_days": 0,
                    },
                    "exclude_prefix": ["string"],
                    "include_blob_versions": False,
                    "include_deleted": False,
                    "include_snapshots": False,
                    "prefix_match": ["string"],
                },
            },
            "destination": "string",
            "enabled": False,
            "name": "string",
        }],
        "type": "string",
    },
    resource_group_name="string",
    blob_inventory_policy_name="string")
Copy
const blobInventoryPolicyResource = new azure_native.storage.BlobInventoryPolicy("blobInventoryPolicyResource", {
    accountName: "string",
    policy: {
        enabled: false,
        rules: [{
            definition: {
                format: "string",
                objectType: "string",
                schedule: "string",
                schemaFields: ["string"],
                filters: {
                    blobTypes: ["string"],
                    creationTime: {
                        lastNDays: 0,
                    },
                    excludePrefix: ["string"],
                    includeBlobVersions: false,
                    includeDeleted: false,
                    includeSnapshots: false,
                    prefixMatch: ["string"],
                },
            },
            destination: "string",
            enabled: false,
            name: "string",
        }],
        type: "string",
    },
    resourceGroupName: "string",
    blobInventoryPolicyName: "string",
});
Copy
type: azure-native:storage:BlobInventoryPolicy
properties:
    accountName: string
    blobInventoryPolicyName: string
    policy:
        enabled: false
        rules:
            - definition:
                filters:
                    blobTypes:
                        - string
                    creationTime:
                        lastNDays: 0
                    excludePrefix:
                        - string
                    includeBlobVersions: false
                    includeDeleted: false
                    includeSnapshots: false
                    prefixMatch:
                        - string
                format: string
                objectType: string
                schedule: string
                schemaFields:
                    - string
              destination: string
              enabled: false
              name: string
        type: string
    resourceGroupName: string
Copy

BlobInventoryPolicy Resource Properties

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

Inputs

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

The BlobInventoryPolicy resource accepts the following input properties:

AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Policy This property is required. Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicySchema
The storage account blob inventory policy object. It is composed of policy rules.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
BlobInventoryPolicyName Changes to this property will trigger replacement. string
The name of the storage account blob inventory policy. It should always be 'default'
AccountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Policy This property is required. BlobInventoryPolicySchemaArgs
The storage account blob inventory policy object. It is composed of policy rules.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
BlobInventoryPolicyName Changes to this property will trigger replacement. string
The name of the storage account blob inventory policy. It should always be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
policy This property is required. BlobInventoryPolicySchema
The storage account blob inventory policy object. It is composed of policy rules.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
blobInventoryPolicyName Changes to this property will trigger replacement. String
The name of the storage account blob inventory policy. It should always be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
string
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
policy This property is required. BlobInventoryPolicySchema
The storage account blob inventory policy object. It is composed of policy rules.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group within the user's subscription. The name is case insensitive.
blobInventoryPolicyName Changes to this property will trigger replacement. string
The name of the storage account blob inventory policy. It should always be 'default'
account_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
policy This property is required. BlobInventoryPolicySchemaArgs
The storage account blob inventory policy object. It is composed of policy rules.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group within the user's subscription. The name is case insensitive.
blob_inventory_policy_name Changes to this property will trigger replacement. str
The name of the storage account blob inventory policy. It should always be 'default'
accountName
This property is required.
Changes to this property will trigger replacement.
String
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
policy This property is required. Property Map
The storage account blob inventory policy object. It is composed of policy rules.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group within the user's subscription. The name is case insensitive.
blobInventoryPolicyName Changes to this property will trigger replacement. String
The name of the storage account blob inventory policy. It should always be 'default'

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Returns the last modified date and time of the blob inventory policy.
Name string
The name of the resource
SystemData Pulumi.AzureNative.Storage.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
LastModifiedTime string
Returns the last modified date and time of the blob inventory policy.
Name string
The name of the resource
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
lastModifiedTime String
Returns the last modified date and time of the blob inventory policy.
name String
The name of the resource
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
lastModifiedTime string
Returns the last modified date and time of the blob inventory policy.
name string
The name of the resource
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
last_modified_time str
Returns the last modified date and time of the blob inventory policy.
name str
The name of the resource
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
lastModifiedTime String
Returns the last modified date and time of the blob inventory policy.
name String
The name of the resource
systemData Property Map
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

BlobInventoryCreationTime
, BlobInventoryCreationTimeArgs

LastNDays int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
LastNDays int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays Integer
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays number
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
last_n_days int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays Number
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.

BlobInventoryCreationTimeResponse
, BlobInventoryCreationTimeResponseArgs

LastNDays int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
LastNDays int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays Integer
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays number
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
last_n_days int
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.
lastNDays Number
When set the policy filters the objects that are created in the last N days. Where N is an integer value between 1 to 36500.

BlobInventoryPolicyDefinition
, BlobInventoryPolicyDefinitionArgs

Format This property is required. string | Pulumi.AzureNative.Storage.Format
This is a required field, it specifies the format for the inventory files.
ObjectType This property is required. string | Pulumi.AzureNative.Storage.ObjectType
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
Schedule This property is required. string | Pulumi.AzureNative.Storage.Schedule
This is a required field. This field is used to schedule an inventory formation.
SchemaFields This property is required. List<string>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Filters Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyFilter
An object that defines the filter set.
Format This property is required. string | Format
This is a required field, it specifies the format for the inventory files.
ObjectType This property is required. string | ObjectType
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
Schedule This property is required. string | Schedule
This is a required field. This field is used to schedule an inventory formation.
SchemaFields This property is required. []string
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Filters BlobInventoryPolicyFilter
An object that defines the filter set.
format This property is required. String | Format
This is a required field, it specifies the format for the inventory files.
objectType This property is required. String | ObjectType
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. String | Schedule
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. List<String>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilter
An object that defines the filter set.
format This property is required. string | Format
This is a required field, it specifies the format for the inventory files.
objectType This property is required. string | ObjectType
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. string | Schedule
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. string[]
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilter
An object that defines the filter set.
format This property is required. str | Format
This is a required field, it specifies the format for the inventory files.
object_type This property is required. str | ObjectType
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. str | Schedule
This is a required field. This field is used to schedule an inventory formation.
schema_fields This property is required. Sequence[str]
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilter
An object that defines the filter set.
format This property is required. String | "Csv" | "Parquet"
This is a required field, it specifies the format for the inventory files.
objectType This property is required. String | "Blob" | "Container"
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. String | "Daily" | "Weekly"
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. List<String>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters Property Map
An object that defines the filter set.

BlobInventoryPolicyDefinitionResponse
, BlobInventoryPolicyDefinitionResponseArgs

Format This property is required. string
This is a required field, it specifies the format for the inventory files.
ObjectType This property is required. string
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
Schedule This property is required. string
This is a required field. This field is used to schedule an inventory formation.
SchemaFields This property is required. List<string>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Filters Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyFilterResponse
An object that defines the filter set.
Format This property is required. string
This is a required field, it specifies the format for the inventory files.
ObjectType This property is required. string
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
Schedule This property is required. string
This is a required field. This field is used to schedule an inventory formation.
SchemaFields This property is required. []string
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
Filters BlobInventoryPolicyFilterResponse
An object that defines the filter set.
format This property is required. String
This is a required field, it specifies the format for the inventory files.
objectType This property is required. String
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. String
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. List<String>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilterResponse
An object that defines the filter set.
format This property is required. string
This is a required field, it specifies the format for the inventory files.
objectType This property is required. string
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. string
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. string[]
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilterResponse
An object that defines the filter set.
format This property is required. str
This is a required field, it specifies the format for the inventory files.
object_type This property is required. str
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. str
This is a required field. This field is used to schedule an inventory formation.
schema_fields This property is required. Sequence[str]
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters BlobInventoryPolicyFilterResponse
An object that defines the filter set.
format This property is required. String
This is a required field, it specifies the format for the inventory files.
objectType This property is required. String
This is a required field. This field specifies the scope of the inventory created either at the blob or container level.
schedule This property is required. String
This is a required field. This field is used to schedule an inventory formation.
schemaFields This property is required. List<String>
This is a required field. This field specifies the fields and properties of the object to be included in the inventory. The Schema field value 'Name' is always required. The valid values for this field for the 'Blob' definition.objectType include 'Name, Creation-Time, Last-Modified, Content-Length, Content-MD5, BlobType, AccessTier, AccessTierChangeTime, AccessTierInferred, Tags, Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, Snapshot, VersionId, IsCurrentVersion, Metadata, LastAccessTime, Tags, Etag, ContentType, ContentEncoding, ContentLanguage, ContentCRC64, CacheControl, ContentDisposition, LeaseStatus, LeaseState, LeaseDuration, ServerEncrypted, Deleted, DeletionId, DeletedTime, RemainingRetentionDays, ImmutabilityPolicyUntilDate, ImmutabilityPolicyMode, LegalHold, CopyId, CopyStatus, CopySource, CopyProgress, CopyCompletionTime, CopyStatusDescription, CustomerProvidedKeySha256, RehydratePriority, ArchiveStatus, XmsBlobSequenceNumber, EncryptionScope, IncrementalCopy, TagCount'. For Blob object type schema field value 'DeletedTime' is applicable only for Hns enabled accounts. The valid values for 'Container' definition.objectType include 'Name, Last-Modified, Metadata, LeaseStatus, LeaseState, LeaseDuration, PublicAccess, HasImmutabilityPolicy, HasLegalHold, Etag, DefaultEncryptionScope, DenyEncryptionScopeOverride, ImmutableStorageWithVersioningEnabled, Deleted, Version, DeletedTime, RemainingRetentionDays'. Schema field values 'Expiry-Time, hdi_isfolder, Owner, Group, Permissions, Acl, DeletionId' are valid only for Hns enabled accounts.Schema field values 'Tags, TagCount' are only valid for Non-Hns accounts.
filters Property Map
An object that defines the filter set.

BlobInventoryPolicyFilter
, BlobInventoryPolicyFilterArgs

BlobTypes List<string>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
CreationTime Pulumi.AzureNative.Storage.Inputs.BlobInventoryCreationTime
This property is used to filter objects based on the object creation time
ExcludePrefix List<string>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
IncludeBlobVersions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
IncludeDeleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
IncludeSnapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
PrefixMatch List<string>
An array of strings with maximum 10 blob prefixes to be included in the inventory.
BlobTypes []string
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
CreationTime BlobInventoryCreationTime
This property is used to filter objects based on the object creation time
ExcludePrefix []string
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
IncludeBlobVersions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
IncludeDeleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
IncludeSnapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
PrefixMatch []string
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes List<String>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime BlobInventoryCreationTime
This property is used to filter objects based on the object creation time
excludePrefix List<String>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions Boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted Boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots Boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch List<String>
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes string[]
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime BlobInventoryCreationTime
This property is used to filter objects based on the object creation time
excludePrefix string[]
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch string[]
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blob_types Sequence[str]
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creation_time BlobInventoryCreationTime
This property is used to filter objects based on the object creation time
exclude_prefix Sequence[str]
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
include_blob_versions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
include_deleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
include_snapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefix_match Sequence[str]
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes List<String>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime Property Map
This property is used to filter objects based on the object creation time
excludePrefix List<String>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions Boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted Boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots Boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch List<String>
An array of strings with maximum 10 blob prefixes to be included in the inventory.

BlobInventoryPolicyFilterResponse
, BlobInventoryPolicyFilterResponseArgs

BlobTypes List<string>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
CreationTime Pulumi.AzureNative.Storage.Inputs.BlobInventoryCreationTimeResponse
This property is used to filter objects based on the object creation time
ExcludePrefix List<string>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
IncludeBlobVersions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
IncludeDeleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
IncludeSnapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
PrefixMatch List<string>
An array of strings with maximum 10 blob prefixes to be included in the inventory.
BlobTypes []string
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
CreationTime BlobInventoryCreationTimeResponse
This property is used to filter objects based on the object creation time
ExcludePrefix []string
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
IncludeBlobVersions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
IncludeDeleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
IncludeSnapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
PrefixMatch []string
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes List<String>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime BlobInventoryCreationTimeResponse
This property is used to filter objects based on the object creation time
excludePrefix List<String>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions Boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted Boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots Boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch List<String>
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes string[]
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime BlobInventoryCreationTimeResponse
This property is used to filter objects based on the object creation time
excludePrefix string[]
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch string[]
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blob_types Sequence[str]
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creation_time BlobInventoryCreationTimeResponse
This property is used to filter objects based on the object creation time
exclude_prefix Sequence[str]
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
include_blob_versions bool
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
include_deleted bool
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
include_snapshots bool
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefix_match Sequence[str]
An array of strings with maximum 10 blob prefixes to be included in the inventory.
blobTypes List<String>
An array of predefined enum values. Valid values include blockBlob, appendBlob, pageBlob. Hns accounts does not support pageBlobs. This field is required when definition.objectType property is set to 'Blob'.
creationTime Property Map
This property is used to filter objects based on the object creation time
excludePrefix List<String>
An array of strings with maximum 10 blob prefixes to be excluded from the inventory.
includeBlobVersions Boolean
Includes blob versions in blob inventory when value is set to true. The definition.schemaFields values 'VersionId and IsCurrentVersion' are required if this property is set to true, else they must be excluded.
includeDeleted Boolean
For 'Container' definition.objectType the definition.schemaFields must include 'Deleted, Version, DeletedTime and RemainingRetentionDays'. For 'Blob' definition.objectType and HNS enabled storage accounts the definition.schemaFields must include 'DeletionId, Deleted, DeletedTime and RemainingRetentionDays' and for Hns disabled accounts the definition.schemaFields must include 'Deleted and RemainingRetentionDays', else it must be excluded.
includeSnapshots Boolean
Includes blob snapshots in blob inventory when value is set to true. The definition.schemaFields value 'Snapshot' is required if this property is set to true, else it must be excluded.
prefixMatch List<String>
An array of strings with maximum 10 blob prefixes to be included in the inventory.

BlobInventoryPolicyRule
, BlobInventoryPolicyRuleArgs

Definition This property is required. Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyDefinition
An object that defines the blob inventory policy rule.
Destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
Enabled This property is required. bool
Rule is enabled when set to true.
Name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Definition This property is required. BlobInventoryPolicyDefinition
An object that defines the blob inventory policy rule.
Destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
Enabled This property is required. bool
Rule is enabled when set to true.
Name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinition
An object that defines the blob inventory policy rule.
destination This property is required. String
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. Boolean
Rule is enabled when set to true.
name This property is required. String
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinition
An object that defines the blob inventory policy rule.
destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. boolean
Rule is enabled when set to true.
name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinition
An object that defines the blob inventory policy rule.
destination This property is required. str
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. bool
Rule is enabled when set to true.
name This property is required. str
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. Property Map
An object that defines the blob inventory policy rule.
destination This property is required. String
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. Boolean
Rule is enabled when set to true.
name This property is required. String
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

BlobInventoryPolicyRuleResponse
, BlobInventoryPolicyRuleResponseArgs

Definition This property is required. Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyDefinitionResponse
An object that defines the blob inventory policy rule.
Destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
Enabled This property is required. bool
Rule is enabled when set to true.
Name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
Definition This property is required. BlobInventoryPolicyDefinitionResponse
An object that defines the blob inventory policy rule.
Destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
Enabled This property is required. bool
Rule is enabled when set to true.
Name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinitionResponse
An object that defines the blob inventory policy rule.
destination This property is required. String
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. Boolean
Rule is enabled when set to true.
name This property is required. String
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinitionResponse
An object that defines the blob inventory policy rule.
destination This property is required. string
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. boolean
Rule is enabled when set to true.
name This property is required. string
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. BlobInventoryPolicyDefinitionResponse
An object that defines the blob inventory policy rule.
destination This property is required. str
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. bool
Rule is enabled when set to true.
name This property is required. str
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.
definition This property is required. Property Map
An object that defines the blob inventory policy rule.
destination This property is required. String
Container name where blob inventory files are stored. Must be pre-created.
enabled This property is required. Boolean
Rule is enabled when set to true.
name This property is required. String
A rule name can contain any combination of alpha numeric characters. Rule name is case-sensitive. It must be unique within a policy.

BlobInventoryPolicySchema
, BlobInventoryPolicySchemaArgs

Enabled This property is required. bool
Policy is enabled if set to true.
Rules This property is required. List<Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyRule>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
Type This property is required. string | Pulumi.AzureNative.Storage.InventoryRuleType
The valid value is Inventory
Enabled This property is required. bool
Policy is enabled if set to true.
Rules This property is required. []BlobInventoryPolicyRule
The storage account blob inventory policy rules. The rule is applied when it is enabled.
Type This property is required. string | InventoryRuleType
The valid value is Inventory
enabled This property is required. Boolean
Policy is enabled if set to true.
rules This property is required. List<BlobInventoryPolicyRule>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. String | InventoryRuleType
The valid value is Inventory
enabled This property is required. boolean
Policy is enabled if set to true.
rules This property is required. BlobInventoryPolicyRule[]
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. string | InventoryRuleType
The valid value is Inventory
enabled This property is required. bool
Policy is enabled if set to true.
rules This property is required. Sequence[BlobInventoryPolicyRule]
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. str | InventoryRuleType
The valid value is Inventory
enabled This property is required. Boolean
Policy is enabled if set to true.
rules This property is required. List<Property Map>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. String | "Inventory"
The valid value is Inventory

BlobInventoryPolicySchemaResponse
, BlobInventoryPolicySchemaResponseArgs

Destination This property is required. string
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
Enabled This property is required. bool
Policy is enabled if set to true.
Rules This property is required. List<Pulumi.AzureNative.Storage.Inputs.BlobInventoryPolicyRuleResponse>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
Type This property is required. string
The valid value is Inventory
Destination This property is required. string
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
Enabled This property is required. bool
Policy is enabled if set to true.
Rules This property is required. []BlobInventoryPolicyRuleResponse
The storage account blob inventory policy rules. The rule is applied when it is enabled.
Type This property is required. string
The valid value is Inventory
destination This property is required. String
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
enabled This property is required. Boolean
Policy is enabled if set to true.
rules This property is required. List<BlobInventoryPolicyRuleResponse>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. String
The valid value is Inventory
destination This property is required. string
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
enabled This property is required. boolean
Policy is enabled if set to true.
rules This property is required. BlobInventoryPolicyRuleResponse[]
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. string
The valid value is Inventory
destination This property is required. str
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
enabled This property is required. bool
Policy is enabled if set to true.
rules This property is required. Sequence[BlobInventoryPolicyRuleResponse]
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. str
The valid value is Inventory
destination This property is required. String
Deprecated Property from API version 2021-04-01 onwards, the required destination container name must be specified at the rule level 'policy.rule.destination'
enabled This property is required. Boolean
Policy is enabled if set to true.
rules This property is required. List<Property Map>
The storage account blob inventory policy rules. The rule is applied when it is enabled.
type This property is required. String
The valid value is Inventory

Format
, FormatArgs

Csv
Csv
Parquet
Parquet
FormatCsv
Csv
FormatParquet
Parquet
Csv
Csv
Parquet
Parquet
Csv
Csv
Parquet
Parquet
CSV
Csv
PARQUET
Parquet
"Csv"
Csv
"Parquet"
Parquet

InventoryRuleType
, InventoryRuleTypeArgs

Inventory
Inventory
InventoryRuleTypeInventory
Inventory
Inventory
Inventory
Inventory
Inventory
INVENTORY
Inventory
"Inventory"
Inventory

ObjectType
, ObjectTypeArgs

Blob
Blob
Container
Container
ObjectTypeBlob
Blob
ObjectTypeContainer
Container
Blob
Blob
Container
Container
Blob
Blob
Container
Container
BLOB
Blob
CONTAINER
Container
"Blob"
Blob
"Container"
Container

Schedule
, ScheduleArgs

Daily
Daily
Weekly
Weekly
ScheduleDaily
Daily
ScheduleWeekly
Weekly
Daily
Daily
Weekly
Weekly
Daily
Daily
Weekly
Weekly
DAILY
Daily
WEEKLY
Weekly
"Daily"
Daily
"Weekly"
Weekly

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:storage:BlobInventoryPolicy DefaultInventoryPolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName} 
Copy

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

Package Details

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