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
new ReplicatedVM(name: string, args: ReplicatedVMArgs, opts?: CustomResourceOptions);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)public ReplicatedVM(string name, ReplicatedVMArgs args, CustomResourceOptions? opts = null)- 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:
- Recovery
Replication stringPolicy Id - Recovery
Vault stringName The name of the vault that should be updated.
- Resource
Group stringName Name of the resource group where the vault that should be updated is located.
- Source
Recovery stringFabric Name Name of fabric that should contains this replication.
- Source
Recovery stringProtection Container Name Name of the protection container to use.
- Source
Vm stringId Id of the VM to replicate
- Target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- Target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- Target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- Managed
Disks List<ReplicatedVMManaged Disk Args> One or more
managed_diskblock.- Name string
The name of the network mapping.
- Target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- Recovery
Replication stringPolicy Id - Recovery
Vault stringName The name of the vault that should be updated.
- Resource
Group stringName Name of the resource group where the vault that should be updated is located.
- Source
Recovery stringFabric Name Name of fabric that should contains this replication.
- Source
Recovery stringProtection Container Name Name of the protection container to use.
- Source
Vm stringId Id of the VM to replicate
- Target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- Target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- Target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- Managed
Disks []ReplicatedVMManaged Disk One or more
managed_diskblock.- Name string
The name of the network mapping.
- Target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- recovery
Replication stringPolicy Id - recovery
Vault stringName The name of the vault that should be updated.
- resource
Group stringName Name of the resource group where the vault that should be updated is located.
- source
Recovery stringFabric Name Name of fabric that should contains this replication.
- source
Recovery stringProtection Container Name Name of the protection container to use.
- source
Vm stringId Id of the VM to replicate
- target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- managed
Disks ReplicatedVMManaged Disk[] One or more
managed_diskblock.- name string
The name of the network mapping.
- target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- recovery_
replication_ strpolicy_ id - recovery_
vault_ strname The name of the vault that should be updated.
- resource_
group_ strname Name of the resource group where the vault that should be updated is located.
- source_
recovery_ strfabric_ name Name of fabric that should contains this replication.
- source_
recovery_ strprotection_ container_ name Name of the protection container to use.
- source_
vm_ strid Id of the VM to replicate
- target_
recovery_ strfabric_ id Id of fabric where the VM replication should be handled when a failover is done.
- target_
recovery_ strprotection_ container_ id Id of protection container where the VM replication should be created when a failover is done.
- target_
resource_ strgroup_ id Id of resource group where the VM should be created when a failover is done.
- managed_
disks List[ReplicatedVMManaged Disk] One or more
managed_diskblock.- name str
The name of the network mapping.
- target_
availability_ strset_ id 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:
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): ReplicatedVMstatic 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:
- Managed
Disks List<ReplicatedVMManaged Disk Args> One or more
managed_diskblock.- Name string
The name of the network mapping.
- Recovery
Replication stringPolicy Id - Recovery
Vault stringName The name of the vault that should be updated.
- Resource
Group stringName Name of the resource group where the vault that should be updated is located.
- Source
Recovery stringFabric Name Name of fabric that should contains this replication.
- Source
Recovery stringProtection Container Name Name of the protection container to use.
- Source
Vm stringId Id of the VM to replicate
- Target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- Target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- Target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- Target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- Managed
Disks []ReplicatedVMManaged Disk One or more
managed_diskblock.- Name string
The name of the network mapping.
- Recovery
Replication stringPolicy Id - Recovery
Vault stringName The name of the vault that should be updated.
- Resource
Group stringName Name of the resource group where the vault that should be updated is located.
- Source
Recovery stringFabric Name Name of fabric that should contains this replication.
- Source
Recovery stringProtection Container Name Name of the protection container to use.
- Source
Vm stringId Id of the VM to replicate
- Target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- Target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- Target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- Target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- managed
Disks ReplicatedVMManaged Disk[] One or more
managed_diskblock.- name string
The name of the network mapping.
- recovery
Replication stringPolicy Id - recovery
Vault stringName The name of the vault that should be updated.
- resource
Group stringName Name of the resource group where the vault that should be updated is located.
- source
Recovery stringFabric Name Name of fabric that should contains this replication.
- source
Recovery stringProtection Container Name Name of the protection container to use.
- source
Vm stringId Id of the VM to replicate
- target
Availability stringSet Id Id of availability set that the new VM should belong to when a failover is done.
- target
Recovery stringFabric Id Id of fabric where the VM replication should be handled when a failover is done.
- target
Recovery stringProtection Container Id Id of protection container where the VM replication should be created when a failover is done.
- target
Resource stringGroup Id Id of resource group where the VM should be created when a failover is done.
- managed_
disks List[ReplicatedVMManaged Disk] One or more
managed_diskblock.- name str
The name of the network mapping.
- recovery_
replication_ strpolicy_ id - recovery_
vault_ strname The name of the vault that should be updated.
- resource_
group_ strname Name of the resource group where the vault that should be updated is located.
- source_
recovery_ strfabric_ name Name of fabric that should contains this replication.
- source_
recovery_ strprotection_ container_ name Name of the protection container to use.
- source_
vm_ strid Id of the VM to replicate
- target_
availability_ strset_ id Id of availability set that the new VM should belong to when a failover is done.
- target_
recovery_ strfabric_ id Id of fabric where the VM replication should be handled when a failover is done.
- target_
recovery_ strprotection_ container_ id Id of protection container where the VM replication should be created when a failover is done.
- target_
resource_ strgroup_ id Id of resource group where the VM should be created when a failover is done.
Supporting Types
ReplicatedVMManagedDisk
- Disk
Id string Id of disk that should be replicated.
- Staging
Storage stringAccount Id Storage account that should be used for caching.
- Target
Disk stringType What type should the disk be when a failover is done.
- Target
Replica stringDisk Type What type should the disk be that holds the replication data.
- Target
Resource stringGroup Id Resource group disk should belong to when a failover is done.
- Disk
Id string Id of disk that should be replicated.
- Staging
Storage stringAccount Id Storage account that should be used for caching.
- Target
Disk stringType What type should the disk be when a failover is done.
- Target
Replica stringDisk Type What type should the disk be that holds the replication data.
- Target
Resource stringGroup Id Resource group disk should belong to when a failover is done.
- disk
Id string Id of disk that should be replicated.
- staging
Storage stringAccount Id Storage account that should be used for caching.
- target
Disk stringType What type should the disk be when a failover is done.
- target
Replica stringDisk Type What type should the disk be that holds the replication data.
- target
Resource stringGroup Id Resource group disk should belong to when a failover is done.
- disk
Id str Id of disk that should be replicated.
- staging
Storage strAccount Id Storage account that should be used for caching.
- target
Disk strType What type should the disk be when a failover is done.
- target
Replica strDisk Type What type should the disk be that holds the replication data.
- target_
resource_ strgroup_ id 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
azurermTerraform Provider.