Syntax
New-HCXReplication -DestinationSeedVm <HCXVM> -DestinationSite <HCXSite> [-NetworkCompressionEnabled <Boolean>] [-QuiesceGuestEnabled <Boolean>] -RPOIntervalMinutes <Int32> [-Server <HcxServer[]>] -SnapshotIntervalMinutes <Int32> -SnapshotNumber <Int32> -SourceSite <HCXSite> -VM <HCXVM> [-Confirm] [-NetworkMapping <HCXNetworkMapping[]>] [-WhatIf] [<CommonParameters>]Related Commands
Detailed Description
This cmdlet creates an HCX replication request. You can use the output of the cmdlet in the Start-HCXReplication cmdlet.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
DestinationSeedVm | HCXVM | Specifies the virtual machine on the destination site that you want to use as a seed for replicating. | true | False | |
DestinationSite | HCXSite | Specifies the site to which you want to replicate the virtual machine. | true | True (ByValue) | |
NetworkCompressionEnabled | Boolean | Specifies the network compression enabled option. | false | False | |
NetworkMapping | HCXNetworkMapping[] | Specifies the list of network mapping from a source to destination site that you want to use. | true | True (ByValue) | |
QuiesceGuestEnabled | Boolean | Specifies the quiesce guest enabled option. | false | False | |
RPOIntervalMinutes | Int32 | Specifies the time interval in minutes for which the data should sync from source to destination. | true | False | |
Server | HcxServer[] | Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet. | false | False | |
SnapshotIntervalMinutes | Int32 | Specifies the time interval for which you can take the specified number of snapshots. | true | False | |
SnapshotNumber | Int32 | Specifies the number of snapshots that you want to take. | true | False | |
SourceSite | HCXSite | Specifies the site at which the virtual machine that you want to replicate resides. | true | True (ByValue) | |
TargetComputeContainer | HCXComputeContainer | Specifies the target compute container. | false | True (ByValue) | |
TargetDataCenter | HCXFolderContainer | Specifies the data center at the destination site that you want to use. | false | True (ByValue) | |
TargetDatastore | HCXDatastore | Specifies the target datastore. | true | True (ByValue) | |
TargetStorageProfile | HCXStorageProfile | Specifies the storage profile at the destination site that you want to use. | false | True (ByValue) | |
VM | HCXVM | Specifies the virtual machine at the source site that you want to protect. | true | True (ByValue) | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.Hcx.Types.V1.HCXReplicationNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> New-HCXReplication -DestinationSite $myDestination -NetworkMapping $myNetworkMapping -RPOIntervalMinutes 30 -SnapshotIntervalMinutes 180 -SnapshotNumber 3 -SourceSite $mySourceSite -TargetComputeContainer $myTargetComputeContainer -TargetDataCenter $myTargetDataCenter -TargetDatastore $myTargetDatastore -VM $myVm
Creates a replication request.
-------------------------- Example 2 --------------------------
PS C:\> New-HCXReplication -DestinationSeedVm $myDestinationSeedVm -DestinationSite myDestination -RPOIntervalMinutes 30 -SnapshotIntervalMinutes 180 -SnapshotNumber 3 -SourceSite $mySourceSite -VM $myVm
Creates a replication request with a seed virtual machine option.
-------------------------- Example 3 --------------------------
PS C:\> $myDestination = Get-HCXSite -Destination -Name "myDestinationName" $myStorageProfile = Get-HCXStorageProfile -Site $myDestination -Name "myStorageProfileName" New-HCXReplication -DestinationSite $myDestination -NetworkMapping $myNetworkMapping -RPOIntervalMinutes 30 -SnapshotIntervalMinutes 180 -SnapshotNumber 3 -SourceSite $mySourceSite -TargetComputeContainer $myTargetComputeContainer -TargetDataCenter $myTargetDataCenter -TargetDatastore $myTargetDatastore -VM $myVm -StorageProfile $myStorageProfile
Creates a replication request with a datastore matching storage profile on the destination site.