ReplicatedVM

Manages a VM replicated using Azure Site Recovery (Azure to Azure only). A replicated VM keeps a copiously updated image of the VM in another region in order to be able to start the VM in that region in case of a disaster.

Create a ReplicatedVM Resource

def ReplicatedVM(resource_name, opts=None, managed_disks=None, name=None, recovery_replication_policy_id=None, recovery_vault_name=None, resource_group_name=None, source_recovery_fabric_name=None, source_recovery_protection_container_name=None, source_vm_id=None, target_availability_set_id=None, target_recovery_fabric_id=None, target_recovery_protection_container_id=None, target_resource_group_id=None, __props__=None);
func NewReplicatedVM(ctx *Context, name string, args ReplicatedVMArgs, opts ...ResourceOption) (*ReplicatedVM, error)
name string
The unique name of the resource.
args ReplicatedVMArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ReplicatedVMArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ReplicatedVMArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ReplicatedVM Resource Properties

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

Inputs

The ReplicatedVM resource accepts the following input properties:

RecoveryReplicationPolicyId string
RecoveryVaultName string

The name of the vault that should be updated.

ResourceGroupName string

Name of the resource group where the vault that should be updated is located.

SourceRecoveryFabricName string

Name of fabric that should contains this replication.

SourceRecoveryProtectionContainerName string

Name of the protection container to use.

SourceVmId string

Id of the VM to replicate

TargetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

TargetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

TargetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

ManagedDisks List<ReplicatedVMManagedDiskArgs>

One or more managed_disk block.

Name string

The name of the network mapping.

TargetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

RecoveryReplicationPolicyId string
RecoveryVaultName string

The name of the vault that should be updated.

ResourceGroupName string

Name of the resource group where the vault that should be updated is located.

SourceRecoveryFabricName string

Name of fabric that should contains this replication.

SourceRecoveryProtectionContainerName string

Name of the protection container to use.

SourceVmId string

Id of the VM to replicate

TargetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

TargetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

TargetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

ManagedDisks []ReplicatedVMManagedDisk

One or more managed_disk block.

Name string

The name of the network mapping.

TargetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

recoveryReplicationPolicyId string
recoveryVaultName string

The name of the vault that should be updated.

resourceGroupName string

Name of the resource group where the vault that should be updated is located.

sourceRecoveryFabricName string

Name of fabric that should contains this replication.

sourceRecoveryProtectionContainerName string

Name of the protection container to use.

sourceVmId string

Id of the VM to replicate

targetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

targetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

targetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

managedDisks ReplicatedVMManagedDisk[]

One or more managed_disk block.

name string

The name of the network mapping.

targetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

recovery_replication_policy_id str
recovery_vault_name str

The name of the vault that should be updated.

resource_group_name str

Name of the resource group where the vault that should be updated is located.

source_recovery_fabric_name str

Name of fabric that should contains this replication.

source_recovery_protection_container_name str

Name of the protection container to use.

source_vm_id str

Id of the VM to replicate

target_recovery_fabric_id str

Id of fabric where the VM replication should be handled when a failover is done.

target_recovery_protection_container_id str

Id of protection container where the VM replication should be created when a failover is done.

target_resource_group_id str

Id of resource group where the VM should be created when a failover is done.

managed_disks List[ReplicatedVMManagedDisk]

One or more managed_disk block.

name str

The name of the network mapping.

target_availability_set_id str

Id of availability set that the new VM should belong to when a failover is done.

Outputs

All input properties are implicitly available as output properties. Additionally, the ReplicatedVM 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing ReplicatedVM Resource

Get an existing ReplicatedVM 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?: ReplicatedVMState, opts?: CustomResourceOptions): ReplicatedVM
static get(resource_name, id, opts=None, managed_disks=None, name=None, recovery_replication_policy_id=None, recovery_vault_name=None, resource_group_name=None, source_recovery_fabric_name=None, source_recovery_protection_container_name=None, source_vm_id=None, target_availability_set_id=None, target_recovery_fabric_id=None, target_recovery_protection_container_id=None, target_resource_group_id=None, __props__=None);
func GetReplicatedVM(ctx *Context, name string, id IDInput, state *ReplicatedVMState, opts ...ResourceOption) (*ReplicatedVM, error)
public static ReplicatedVM Get(string name, Input<string> id, ReplicatedVMState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

ManagedDisks List<ReplicatedVMManagedDiskArgs>

One or more managed_disk block.

Name string

The name of the network mapping.

RecoveryReplicationPolicyId string
RecoveryVaultName string

The name of the vault that should be updated.

ResourceGroupName string

Name of the resource group where the vault that should be updated is located.

SourceRecoveryFabricName string

Name of fabric that should contains this replication.

SourceRecoveryProtectionContainerName string

Name of the protection container to use.

SourceVmId string

Id of the VM to replicate

TargetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

TargetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

TargetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

TargetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

ManagedDisks []ReplicatedVMManagedDisk

One or more managed_disk block.

Name string

The name of the network mapping.

RecoveryReplicationPolicyId string
RecoveryVaultName string

The name of the vault that should be updated.

ResourceGroupName string

Name of the resource group where the vault that should be updated is located.

SourceRecoveryFabricName string

Name of fabric that should contains this replication.

SourceRecoveryProtectionContainerName string

Name of the protection container to use.

SourceVmId string

Id of the VM to replicate

TargetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

TargetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

TargetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

TargetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

managedDisks ReplicatedVMManagedDisk[]

One or more managed_disk block.

name string

The name of the network mapping.

recoveryReplicationPolicyId string
recoveryVaultName string

The name of the vault that should be updated.

resourceGroupName string

Name of the resource group where the vault that should be updated is located.

sourceRecoveryFabricName string

Name of fabric that should contains this replication.

sourceRecoveryProtectionContainerName string

Name of the protection container to use.

sourceVmId string

Id of the VM to replicate

targetAvailabilitySetId string

Id of availability set that the new VM should belong to when a failover is done.

targetRecoveryFabricId string

Id of fabric where the VM replication should be handled when a failover is done.

targetRecoveryProtectionContainerId string

Id of protection container where the VM replication should be created when a failover is done.

targetResourceGroupId string

Id of resource group where the VM should be created when a failover is done.

managed_disks List[ReplicatedVMManagedDisk]

One or more managed_disk block.

name str

The name of the network mapping.

recovery_replication_policy_id str
recovery_vault_name str

The name of the vault that should be updated.

resource_group_name str

Name of the resource group where the vault that should be updated is located.

source_recovery_fabric_name str

Name of fabric that should contains this replication.

source_recovery_protection_container_name str

Name of the protection container to use.

source_vm_id str

Id of the VM to replicate

target_availability_set_id str

Id of availability set that the new VM should belong to when a failover is done.

target_recovery_fabric_id str

Id of fabric where the VM replication should be handled when a failover is done.

target_recovery_protection_container_id str

Id of protection container where the VM replication should be created when a failover is done.

target_resource_group_id str

Id of resource group where the VM should be created when a failover is done.

Supporting Types

ReplicatedVMManagedDisk

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

DiskId string

Id of disk that should be replicated.

StagingStorageAccountId string

Storage account that should be used for caching.

TargetDiskType string

What type should the disk be when a failover is done.

TargetReplicaDiskType string

What type should the disk be that holds the replication data.

TargetResourceGroupId string

Resource group disk should belong to when a failover is done.

DiskId string

Id of disk that should be replicated.

StagingStorageAccountId string

Storage account that should be used for caching.

TargetDiskType string

What type should the disk be when a failover is done.

TargetReplicaDiskType string

What type should the disk be that holds the replication data.

TargetResourceGroupId string

Resource group disk should belong to when a failover is done.

diskId string

Id of disk that should be replicated.

stagingStorageAccountId string

Storage account that should be used for caching.

targetDiskType string

What type should the disk be when a failover is done.

targetReplicaDiskType string

What type should the disk be that holds the replication data.

targetResourceGroupId string

Resource group disk should belong to when a failover is done.

diskId str

Id of disk that should be replicated.

stagingStorageAccountId str

Storage account that should be used for caching.

targetDiskType str

What type should the disk be when a failover is done.

targetReplicaDiskType str

What type should the disk be that holds the replication data.

target_resource_group_id str

Resource group disk should belong to when a failover is done.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.