Msvm_ReplicationRelationship class

Represents replication status for a replication relationship. Because you can have multiple replications for each replica virtual machine, you can use this class to identify each replication relationship.

The following syntax is simplified from MOF code and includes these inherited properties.

Syntax

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_ReplicationRelationship : CIM_ManagedSystemElement
{
  string   InstanceID;
  uint16   ReplicationState;
  uint16   ReplicationHealth;
  uint16   FailedOverReplicationType;
  uint16   LastReplicationType;
  datetime LastApplicationConsistentReplicationTime;
  datetime LastReplicationTime;
  datetime LastApplyTime;
};

Members

The Msvm_ReplicationRelationship class has these types of members:

Properties

The Msvm_ReplicationRelationship class has these properties.

FailedOverReplicationType

Data type: uint16

Access type: Read-only

The type of failover that was performed for the replication relationship.

None (0)

Regular (1)

Application consistent (2)

Planned (3)

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key, Override ("InstanceID")

Identifies replication relationship. This property is inherited from CIM_ManagedElement.

This property has this format:

Microsoft:<vmid>\HVR\<0/1>

0 indicates primary and 1 indicates extended replication.

LastApplicationConsistentReplicationTime

Data type: datetime

Access type: Read-only

The date and time at which the last application consistent replication is received on recovery for the replication relationship.

LastApplyTime

Data type: datetime

Access type: Read-only

The date and time at which the last replication is applied on recovery for the replication relationship.

LastReplicationTime

Data type: datetime

Access type: Read-only

The date and time at which the last replication is received on recovery for the replication relationship.

LastReplicationType

Data type: uint16

Access type: Read-only

The type of the last replication that was received for the replication relationship.

None (0)

Regular (1)

Application consistent (2)

Planned (3)

ReplicationHealth

Data type: uint16

Access type: Read-only

Replication health for the replication relationship.

Not applicable (0)

Ok (1)

Warning (2)

Critical (3)

ReplicationState

Data type: uint16

Access type: Read-only

Replication state for the replication relationship.

Disabled (0)

Ready for replication (1)

Waiting to complete initial replication (2)

Replicating (3)

Synced replication complete (4)

Recovered (5)

Committed (6)

Suspended (7)

Critical (8)

Waiting to start resynchronization (9)

Resynchronizing (10)

Resynchronization suspended (11)

Failover in progress (12)

Failback in progress (13)

Failback complete (14)

Disk update in progress (15)

Note

This property was added in Windows 10, version 1703.

Disk update critical (16)

Note

This property was added in Windows 10, version 1703.

Unknown (17)

Note

This property was added in Windows 10, version 1703.

Repurpose replication in progress (18)

Note

This property was added in Windows 10, version 1703.

Prepared for sync replication (19)

Note

This property was added in Windows 10, version 1703.

Prepared for group reverse replication (20)

Note

This property was added in Windows 10, version 1703.

Firedrill in progress (21)

Note

This property was added in Windows 10, version 1703.

Remarks

Extended replication

The Hyper-V replication feature in Windows 8 allows virtual machines that run on a Hyper-V server at the primary site to be efficiently replicated to another Hyper-V server at the secondary site.

The Hyper-V replication feature in Windows 8.1 enables a user to extend the replication relationship from the secondary site onwards to a third site. The third site can be a Hyper-V host pre-provisioned as a recovery server or external replication provider.

Requirements

Requirement Value
Minimum supported client
Windows 8.1 [desktop apps only]
Minimum supported server
Windows Server 2012 R2 [desktop apps only]
Namespace
Root\Virtualization\V2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_ManagedSystemElement

CIM_ManagedSystemElement