import * as pulumi from "@pulumi/pulumi"; /** * Manages a Backup Instance Blob Storage. * * ## 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: "storageaccountname", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleBackupVault = new azure.dataprotection.BackupVault("example", { * name: "example-backup-vault", * resourceGroupName: example.name, * location: example.location, * datastoreType: "VaultStore", * redundancy: "LocallyRedundant", * identity: { * type: "SystemAssigned", * }, * }); * const exampleAssignment = new azure.authorization.Assignment("example", { * scope: exampleAccount.id, * roleDefinitionName: "Storage Account Backup Contributor", * principalId: exampleBackupVault.identity.apply(identity => identity?.principalId), * }); * const exampleBackupPolicyBlobStorage = new azure.dataprotection.BackupPolicyBlobStorage("example", { * name: "example-backup-policy", * vaultId: exampleBackupVault.id, * operationalDefaultRetentionDuration: "P30D", * }); * const exampleBackupInstanceBlogStorage = new azure.dataprotection.BackupInstanceBlogStorage("example", { * name: "example-backup-instance", * vaultId: exampleBackupVault.id, * location: example.location, * storageAccountId: exampleAccount.id, * backupPolicyId: exampleBackupPolicyBlobStorage.id, * }, { * dependsOn: [exampleAssignment], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DataProtection` - 2025-07-01 * * ## Import * * Backup Instance Blob Storages can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:dataprotection/backupInstanceBlogStorage:BackupInstanceBlogStorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1 * ``` */ export declare class BackupInstanceBlogStorage extends pulumi.CustomResource { /** * Get an existing BackupInstanceBlogStorage 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?: BackupInstanceBlogStorageState, opts?: pulumi.CustomResourceOptions): BackupInstanceBlogStorage; /** * Returns true if the given object is an instance of BackupInstanceBlogStorage. 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 BackupInstanceBlogStorage; /** * The ID of the Backup Policy. */ readonly backupPolicyId: pulumi.Output; /** * The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. */ readonly name: pulumi.Output; /** * The protection state of the Backup Instance Blob Storage. */ readonly protectionState: pulumi.Output; /** * The list of the container names of the source Storage Account. * * > **Note:** The `storageAccountContainerNames` should be specified in the vaulted backup policy/operational and vaulted hybrid backup policy. Removing the `storageAccountContainerNames` will force a new resource to be created since it can't be removed once specified. */ readonly storageAccountContainerNames: pulumi.Output; /** * The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ readonly storageAccountId: pulumi.Output; /** * The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. */ readonly vaultId: pulumi.Output; /** * Create a BackupInstanceBlogStorage 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: BackupInstanceBlogStorageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BackupInstanceBlogStorage resources. */ export interface BackupInstanceBlogStorageState { /** * The ID of the Backup Policy. */ backupPolicyId?: pulumi.Input; /** * The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ location?: pulumi.Input; /** * The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. */ name?: pulumi.Input; /** * The protection state of the Backup Instance Blob Storage. */ protectionState?: pulumi.Input; /** * The list of the container names of the source Storage Account. * * > **Note:** The `storageAccountContainerNames` should be specified in the vaulted backup policy/operational and vaulted hybrid backup policy. Removing the `storageAccountContainerNames` will force a new resource to be created since it can't be removed once specified. */ storageAccountContainerNames?: pulumi.Input[]>; /** * The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ storageAccountId?: pulumi.Input; /** * The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. */ vaultId?: pulumi.Input; } /** * The set of arguments for constructing a BackupInstanceBlogStorage resource. */ export interface BackupInstanceBlogStorageArgs { /** * The ID of the Backup Policy. */ backupPolicyId: pulumi.Input; /** * The location of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ location?: pulumi.Input; /** * The name which should be used for this Backup Instance Blob Storage. Changing this forces a new Backup Instance Blob Storage to be created. */ name?: pulumi.Input; /** * The list of the container names of the source Storage Account. * * > **Note:** The `storageAccountContainerNames` should be specified in the vaulted backup policy/operational and vaulted hybrid backup policy. Removing the `storageAccountContainerNames` will force a new resource to be created since it can't be removed once specified. */ storageAccountContainerNames?: pulumi.Input[]>; /** * The ID of the source Storage Account. Changing this forces a new Backup Instance Blob Storage to be created. */ storageAccountId: pulumi.Input; /** * The ID of the Backup Vault within which the Backup Instance Blob Storage should exist. Changing this forces a new Backup Instance Blob Storage to be created. */ vaultId: pulumi.Input; }