Azure Classic v5.43.0, May 6 23
Azure Classic v5.43.0, May 6 23
azure.dataprotection.BackupInstanceDisk
Explore with Pulumi AI
Manages a Backup Instance to back up Disk.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleManagedDisk = new Azure.Compute.ManagedDisk("exampleManagedDisk", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
StorageAccountType = "Standard_LRS",
CreateOption = "Empty",
DiskSizeGb = 1,
});
var exampleBackupVault = new Azure.DataProtection.BackupVault("exampleBackupVault", new()
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
DatastoreType = "VaultStore",
Redundancy = "LocallyRedundant",
Identity = new Azure.DataProtection.Inputs.BackupVaultIdentityArgs
{
Type = "SystemAssigned",
},
});
var example1 = new Azure.Authorization.Assignment("example1", new()
{
Scope = exampleResourceGroup.Id,
RoleDefinitionName = "Disk Snapshot Contributor",
PrincipalId = exampleBackupVault.Identity.Apply(identity => identity?.PrincipalId),
});
var example2 = new Azure.Authorization.Assignment("example2", new()
{
Scope = exampleManagedDisk.Id,
RoleDefinitionName = "Disk Backup Reader",
PrincipalId = exampleBackupVault.Identity.Apply(identity => identity?.PrincipalId),
});
var exampleBackupPolicyDisk = new Azure.DataProtection.BackupPolicyDisk("exampleBackupPolicyDisk", new()
{
VaultId = exampleBackupVault.Id,
BackupRepeatingTimeIntervals = new[]
{
"R/2021-05-19T06:33:16+00:00/PT4H",
},
DefaultRetentionDuration = "P7D",
});
var exampleBackupInstanceDisk = new Azure.DataProtection.BackupInstanceDisk("exampleBackupInstanceDisk", new()
{
Location = exampleBackupVault.Location,
VaultId = exampleBackupVault.Id,
DiskId = exampleManagedDisk.Id,
SnapshotResourceGroupName = exampleResourceGroup.Name,
BackupPolicyId = exampleBackupPolicyDisk.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/compute"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dataprotection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleManagedDisk, err := compute.NewManagedDisk(ctx, "exampleManagedDisk", &compute.ManagedDiskArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
StorageAccountType: pulumi.String("Standard_LRS"),
CreateOption: pulumi.String("Empty"),
DiskSizeGb: pulumi.Int(1),
})
if err != nil {
return err
}
exampleBackupVault, err := dataprotection.NewBackupVault(ctx, "exampleBackupVault", &dataprotection.BackupVaultArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
DatastoreType: pulumi.String("VaultStore"),
Redundancy: pulumi.String("LocallyRedundant"),
Identity: &dataprotection.BackupVaultIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
_, err = authorization.NewAssignment(ctx, "example1", &authorization.AssignmentArgs{
Scope: exampleResourceGroup.ID(),
RoleDefinitionName: pulumi.String("Disk Snapshot Contributor"),
PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) {
return &identity.PrincipalId, nil
}).(pulumi.StringPtrOutput),
})
if err != nil {
return err
}
_, err = authorization.NewAssignment(ctx, "example2", &authorization.AssignmentArgs{
Scope: exampleManagedDisk.ID(),
RoleDefinitionName: pulumi.String("Disk Backup Reader"),
PrincipalId: exampleBackupVault.Identity.ApplyT(func(identity dataprotection.BackupVaultIdentity) (*string, error) {
return &identity.PrincipalId, nil
}).(pulumi.StringPtrOutput),
})
if err != nil {
return err
}
exampleBackupPolicyDisk, err := dataprotection.NewBackupPolicyDisk(ctx, "exampleBackupPolicyDisk", &dataprotection.BackupPolicyDiskArgs{
VaultId: exampleBackupVault.ID(),
BackupRepeatingTimeIntervals: pulumi.StringArray{
pulumi.String("R/2021-05-19T06:33:16+00:00/PT4H"),
},
DefaultRetentionDuration: pulumi.String("P7D"),
})
if err != nil {
return err
}
_, err = dataprotection.NewBackupInstanceDisk(ctx, "exampleBackupInstanceDisk", &dataprotection.BackupInstanceDiskArgs{
Location: exampleBackupVault.Location,
VaultId: exampleBackupVault.ID(),
DiskId: exampleManagedDisk.ID(),
SnapshotResourceGroupName: exampleResourceGroup.Name,
BackupPolicyId: exampleBackupPolicyDisk.ID(),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.compute.ManagedDisk;
import com.pulumi.azure.compute.ManagedDiskArgs;
import com.pulumi.azure.dataprotection.BackupVault;
import com.pulumi.azure.dataprotection.BackupVaultArgs;
import com.pulumi.azure.dataprotection.inputs.BackupVaultIdentityArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
import com.pulumi.azure.dataprotection.BackupPolicyDisk;
import com.pulumi.azure.dataprotection.BackupPolicyDiskArgs;
import com.pulumi.azure.dataprotection.BackupInstanceDisk;
import com.pulumi.azure.dataprotection.BackupInstanceDiskArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleManagedDisk = new ManagedDisk("exampleManagedDisk", ManagedDiskArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.storageAccountType("Standard_LRS")
.createOption("Empty")
.diskSizeGb("1")
.build());
var exampleBackupVault = new BackupVault("exampleBackupVault", BackupVaultArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.datastoreType("VaultStore")
.redundancy("LocallyRedundant")
.identity(BackupVaultIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
var example1 = new Assignment("example1", AssignmentArgs.builder()
.scope(exampleResourceGroup.id())
.roleDefinitionName("Disk Snapshot Contributor")
.principalId(exampleBackupVault.identity().applyValue(identity -> identity.principalId()))
.build());
var example2 = new Assignment("example2", AssignmentArgs.builder()
.scope(exampleManagedDisk.id())
.roleDefinitionName("Disk Backup Reader")
.principalId(exampleBackupVault.identity().applyValue(identity -> identity.principalId()))
.build());
var exampleBackupPolicyDisk = new BackupPolicyDisk("exampleBackupPolicyDisk", BackupPolicyDiskArgs.builder()
.vaultId(exampleBackupVault.id())
.backupRepeatingTimeIntervals("R/2021-05-19T06:33:16+00:00/PT4H")
.defaultRetentionDuration("P7D")
.build());
var exampleBackupInstanceDisk = new BackupInstanceDisk("exampleBackupInstanceDisk", BackupInstanceDiskArgs.builder()
.location(exampleBackupVault.location())
.vaultId(exampleBackupVault.id())
.diskId(exampleManagedDisk.id())
.snapshotResourceGroupName(exampleResourceGroup.name())
.backupPolicyId(exampleBackupPolicyDisk.id())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_managed_disk = azure.compute.ManagedDisk("exampleManagedDisk",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
storage_account_type="Standard_LRS",
create_option="Empty",
disk_size_gb=1)
example_backup_vault = azure.dataprotection.BackupVault("exampleBackupVault",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
datastore_type="VaultStore",
redundancy="LocallyRedundant",
identity=azure.dataprotection.BackupVaultIdentityArgs(
type="SystemAssigned",
))
example1 = azure.authorization.Assignment("example1",
scope=example_resource_group.id,
role_definition_name="Disk Snapshot Contributor",
principal_id=example_backup_vault.identity.principal_id)
example2 = azure.authorization.Assignment("example2",
scope=example_managed_disk.id,
role_definition_name="Disk Backup Reader",
principal_id=example_backup_vault.identity.principal_id)
example_backup_policy_disk = azure.dataprotection.BackupPolicyDisk("exampleBackupPolicyDisk",
vault_id=example_backup_vault.id,
backup_repeating_time_intervals=["R/2021-05-19T06:33:16+00:00/PT4H"],
default_retention_duration="P7D")
example_backup_instance_disk = azure.dataprotection.BackupInstanceDisk("exampleBackupInstanceDisk",
location=example_backup_vault.location,
vault_id=example_backup_vault.id,
disk_id=example_managed_disk.id,
snapshot_resource_group_name=example_resource_group.name,
backup_policy_id=example_backup_policy_disk.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleManagedDisk = new azure.compute.ManagedDisk("exampleManagedDisk", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
storageAccountType: "Standard_LRS",
createOption: "Empty",
diskSizeGb: 1,
});
const exampleBackupVault = new azure.dataprotection.BackupVault("exampleBackupVault", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
datastoreType: "VaultStore",
redundancy: "LocallyRedundant",
identity: {
type: "SystemAssigned",
},
});
const example1 = new azure.authorization.Assignment("example1", {
scope: exampleResourceGroup.id,
roleDefinitionName: "Disk Snapshot Contributor",
principalId: exampleBackupVault.identity.apply(identity => identity?.principalId),
});
const example2 = new azure.authorization.Assignment("example2", {
scope: exampleManagedDisk.id,
roleDefinitionName: "Disk Backup Reader",
principalId: exampleBackupVault.identity.apply(identity => identity?.principalId),
});
const exampleBackupPolicyDisk = new azure.dataprotection.BackupPolicyDisk("exampleBackupPolicyDisk", {
vaultId: exampleBackupVault.id,
backupRepeatingTimeIntervals: ["R/2021-05-19T06:33:16+00:00/PT4H"],
defaultRetentionDuration: "P7D",
});
const exampleBackupInstanceDisk = new azure.dataprotection.BackupInstanceDisk("exampleBackupInstanceDisk", {
location: exampleBackupVault.location,
vaultId: exampleBackupVault.id,
diskId: exampleManagedDisk.id,
snapshotResourceGroupName: exampleResourceGroup.name,
backupPolicyId: exampleBackupPolicyDisk.id,
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleManagedDisk:
type: azure:compute:ManagedDisk
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
storageAccountType: Standard_LRS
createOption: Empty
diskSizeGb: '1'
exampleBackupVault:
type: azure:dataprotection:BackupVault
properties:
resourceGroupName: ${exampleResourceGroup.name}
location: ${exampleResourceGroup.location}
datastoreType: VaultStore
redundancy: LocallyRedundant
identity:
type: SystemAssigned
example1:
type: azure:authorization:Assignment
properties:
scope: ${exampleResourceGroup.id}
roleDefinitionName: Disk Snapshot Contributor
principalId: ${exampleBackupVault.identity.principalId}
example2:
type: azure:authorization:Assignment
properties:
scope: ${exampleManagedDisk.id}
roleDefinitionName: Disk Backup Reader
principalId: ${exampleBackupVault.identity.principalId}
exampleBackupPolicyDisk:
type: azure:dataprotection:BackupPolicyDisk
properties:
vaultId: ${exampleBackupVault.id}
backupRepeatingTimeIntervals:
- R/2021-05-19T06:33:16+00:00/PT4H
defaultRetentionDuration: P7D
exampleBackupInstanceDisk:
type: azure:dataprotection:BackupInstanceDisk
properties:
location: ${exampleBackupVault.location}
vaultId: ${exampleBackupVault.id}
diskId: ${exampleManagedDisk.id}
snapshotResourceGroupName: ${exampleResourceGroup.name}
backupPolicyId: ${exampleBackupPolicyDisk.id}
Create BackupInstanceDisk Resource
new BackupInstanceDisk(name: string, args: BackupInstanceDiskArgs, opts?: CustomResourceOptions);
@overload
def BackupInstanceDisk(resource_name: str,
opts: Optional[ResourceOptions] = None,
backup_policy_id: Optional[str] = None,
disk_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
snapshot_resource_group_name: Optional[str] = None,
vault_id: Optional[str] = None)
@overload
def BackupInstanceDisk(resource_name: str,
args: BackupInstanceDiskArgs,
opts: Optional[ResourceOptions] = None)
func NewBackupInstanceDisk(ctx *Context, name string, args BackupInstanceDiskArgs, opts ...ResourceOption) (*BackupInstanceDisk, error)
public BackupInstanceDisk(string name, BackupInstanceDiskArgs args, CustomResourceOptions? opts = null)
public BackupInstanceDisk(String name, BackupInstanceDiskArgs args)
public BackupInstanceDisk(String name, BackupInstanceDiskArgs args, CustomResourceOptions options)
type: azure:dataprotection:BackupInstanceDisk
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupInstanceDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BackupInstanceDiskArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BackupInstanceDiskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupInstanceDiskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupInstanceDiskArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BackupInstanceDisk Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The BackupInstanceDisk resource accepts the following input properties:
- Backup
Policy stringId The ID of the Backup Policy.
- Disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- Snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- Vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- Backup
Policy stringId The ID of the Backup Policy.
- Disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- Snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- Vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy StringId The ID of the Backup Policy.
- disk
Id String The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource StringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id String The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- location String
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name String
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy stringId The ID of the Backup Policy.
- disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- backup_
policy_ strid The ID of the Backup Policy.
- disk_
id str The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot_
resource_ strgroup_ name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault_
id str The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- location str
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name str
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy StringId The ID of the Backup Policy.
- disk
Id String The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource StringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id String The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- location String
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name String
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the BackupInstanceDisk resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing BackupInstanceDisk Resource
Get an existing BackupInstanceDisk resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: BackupInstanceDiskState, opts?: CustomResourceOptions): BackupInstanceDisk
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_policy_id: Optional[str] = None,
disk_id: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
snapshot_resource_group_name: Optional[str] = None,
vault_id: Optional[str] = None) -> BackupInstanceDisk
func GetBackupInstanceDisk(ctx *Context, name string, id IDInput, state *BackupInstanceDiskState, opts ...ResourceOption) (*BackupInstanceDisk, error)
public static BackupInstanceDisk Get(string name, Input<string> id, BackupInstanceDiskState? state, CustomResourceOptions? opts = null)
public static BackupInstanceDisk get(String name, Output<String> id, BackupInstanceDiskState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Backup
Policy stringId The ID of the Backup Policy.
- Disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- Location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- Snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- Vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Backup
Policy stringId The ID of the Backup Policy.
- Disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- Location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- Name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- Snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- Vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy StringId The ID of the Backup Policy.
- disk
Id String The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- location String
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name String
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource StringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id String The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy stringId The ID of the Backup Policy.
- disk
Id string The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- location string
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name string
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource stringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id string The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- backup_
policy_ strid The ID of the Backup Policy.
- disk_
id str The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- location str
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name str
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot_
resource_ strgroup_ name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault_
id str The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- backup
Policy StringId The ID of the Backup Policy.
- disk
Id String The ID of the source Disk. Changing this forces a new Backup Instance Disk to be created.
- location String
The Azure Region where the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
- name String
The name which should be used for this Backup Instance Disk. Changing this forces a new Backup Instance Disk to be created.
- snapshot
Resource StringGroup Name The name of the Resource Group where snapshots are stored. Changing this forces a new Backup Instance Disk to be created.
- vault
Id String The ID of the Backup Vault within which the Backup Instance Disk should exist. Changing this forces a new Backup Instance Disk to be created.
Import
Backup Instance Disks can be imported using the resource id
, e.g.
$ pulumi import azure:dataprotection/backupInstanceDisk:BackupInstanceDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.DataProtection/backupVaults/vault1/backupInstances/backupInstance1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.