import * as pulumi from "@pulumi/pulumi"; /** * Manages a Container within an Azure Storage Account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "examplestoraccount", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * tags: { * environment: "staging", * }, * }); * const exampleContainer = new azure.storage.Container("example", { * name: "vhds", * storageAccountId: exampleAccount.id, * containerAccessType: "private", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Storage` - 2025-06-01 * * ## Import * * Storage Containers can be imported using the `resource manager id`, e.g. * * ```sh * $ pulumi import azure:storage/container:Container container1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount/blobServices/default/containers/mycontainer * ``` */ export declare class Container extends pulumi.CustomResource { /** * Get an existing Container resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ContainerState, opts?: pulumi.CustomResourceOptions): Container; /** * Returns true if the given object is an instance of Container. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Container; /** * The Access Level configured for this Container. Possible values are `blob`, `container` or `private`. Defaults to `private`. * * > **Note:** When updating `containerAccessType` for an existing storage container resource, Shared Key authentication will always be used, as AzureAD authentication is not supported. */ readonly containerAccessType: pulumi.Output; /** * The default encryption scope to use for blobs uploaded to this container. Changing this forces a new resource to be created. */ readonly defaultEncryptionScope: pulumi.Output; /** * Whether to allow blobs to override the default encryption scope for this container. Can only be set when specifying `defaultEncryptionScope`. Defaults to `true`. Changing this forces a new resource to be created. */ readonly encryptionScopeOverrideEnabled: pulumi.Output; /** * Is there an Immutability Policy configured on this Storage Container? */ readonly hasImmutabilityPolicy: pulumi.Output; /** * Is there a Legal Hold configured on this Storage Container? */ readonly hasLegalHold: pulumi.Output; /** * A mapping of MetaData for this Container. All metadata keys should be lowercase. */ readonly metadata: pulumi.Output<{ [key: string]: string; }>; /** * The name of the Container which should be created within the Storage Account. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * The Resource Manager ID of this Storage Container. * * @deprecated this property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider. */ readonly resourceManagerId: pulumi.Output; /** * The name of the Storage Account where the Container should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ readonly storageAccountId: pulumi.Output; /** * The name of the Storage Account where the Container should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ readonly storageAccountName: pulumi.Output; /** * Create a Container resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: ContainerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Container resources. */ export interface ContainerState { /** * The Access Level configured for this Container. Possible values are `blob`, `container` or `private`. Defaults to `private`. * * > **Note:** When updating `containerAccessType` for an existing storage container resource, Shared Key authentication will always be used, as AzureAD authentication is not supported. */ containerAccessType?: pulumi.Input; /** * The default encryption scope to use for blobs uploaded to this container. Changing this forces a new resource to be created. */ defaultEncryptionScope?: pulumi.Input; /** * Whether to allow blobs to override the default encryption scope for this container. Can only be set when specifying `defaultEncryptionScope`. Defaults to `true`. Changing this forces a new resource to be created. */ encryptionScopeOverrideEnabled?: pulumi.Input; /** * Is there an Immutability Policy configured on this Storage Container? */ hasImmutabilityPolicy?: pulumi.Input; /** * Is there a Legal Hold configured on this Storage Container? */ hasLegalHold?: pulumi.Input; /** * A mapping of MetaData for this Container. All metadata keys should be lowercase. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Container which should be created within the Storage Account. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The Resource Manager ID of this Storage Container. * * @deprecated this property has been deprecated in favour of `id` and will be removed in version 5.0 of the Provider. */ resourceManagerId?: pulumi.Input; /** * The name of the Storage Account where the Container should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ storageAccountId?: pulumi.Input; /** * The name of the Storage Account where the Container should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ storageAccountName?: pulumi.Input; } /** * The set of arguments for constructing a Container resource. */ export interface ContainerArgs { /** * The Access Level configured for this Container. Possible values are `blob`, `container` or `private`. Defaults to `private`. * * > **Note:** When updating `containerAccessType` for an existing storage container resource, Shared Key authentication will always be used, as AzureAD authentication is not supported. */ containerAccessType?: pulumi.Input; /** * The default encryption scope to use for blobs uploaded to this container. Changing this forces a new resource to be created. */ defaultEncryptionScope?: pulumi.Input; /** * Whether to allow blobs to override the default encryption scope for this container. Can only be set when specifying `defaultEncryptionScope`. Defaults to `true`. Changing this forces a new resource to be created. */ encryptionScopeOverrideEnabled?: pulumi.Input; /** * A mapping of MetaData for this Container. All metadata keys should be lowercase. */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The name of the Container which should be created within the Storage Account. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * The name of the Storage Account where the Container should be created. * * > **Note:** One of `storageAccountName` or `storageAccountId` must be specified. When specifying `storageAccountId` the resource will use the Resource Manager API, rather than the Data Plane API. */ storageAccountId?: pulumi.Input; /** * The name of the Storage Account where the Container should be created. This property is deprecated in favour of `storageAccountId`. * * > **Note:** Migrating from the deprecated `storageAccountName` to `storageAccountId` is supported without recreation. Any other change to either property will result in the resource being recreated. * * @deprecated the `storageAccountName` property has been deprecated in favour of `storageAccountId` and will be removed in version 5.0 of the Provider. */ storageAccountName?: pulumi.Input; }