Start-VBRViInstantRecoveryMigration
Short Description
Starts VMs quick migration to specified ESXi host.
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRViInstantRecoveryMigration [-InstantRecovery] <InstantRecovery> [-ToTarget] [-Server <CHost>] [-ResourcePool <CViResourcePoolItem>] [-Datastore <CViDatastoreItem>] [-Folder <CViFolderItem>] [-StoragePolicy <VBRViStoragePolicy>] [-SourceProxy <CViProxy[]>] [-TargetProxy <CViProxy[]>] [-DeleteSourceVmFiles] [-ForceVeeamQM] [-Force] [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet starts VMs quick migration to specified ESXi host. You can run this cmdlet after you perform Instant Recovery.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Datastore |
Specifies the datastore to which you want to migrate restored VMs. Veeam Backup & Replication will redirect the redo logs to the selected datastore. Note: This parameter is required if you migrate a workload other than a VMware vSphere VM.
Accepts the |
|
False |
Named |
False |
|
DeleteSourceVmFiles |
Defines that the cmdlet will delete the original VM on the source host after the heartbeat is received. If you do not provide this parameter, the source VM will not be deleted. All jobs to which the VM is added will continue to process the source VM.
Note: You can not apply this option if you provide the |
|
False |
Named |
False |
|
Folder |
Specifies the folder where you want to store the migrated VM. Note: This parameter is required if you migrate a workload other than a VMware vSphere VM.
Accepts the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will perform VM restore even if the geographic location of the repository where VM backups reside and the target host location does not match. |
|
False |
Named |
False |
|
ForceVeeamQM |
Defines that the cmdlet will apply the Veeam Quick Migration mechanism to migrate VMs. |
|
False |
Named |
False |
|
InstantRecovery |
Specifies a running Instant Recovery session. The cmdlet will start a quick migration of VMs that are recovered during this session.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
ResourcePool |
Specifies the resource pool. The cmdlet will migrate restored VMs to this resource pool. Note: This parameter is required if you migrate a workload other than a VMware vSphere VM.
Accepts the |
|
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the target ESXi host. The cmdlet will migrate restored VMs to this host. Note: Consider the following:
Accepts the |
|
False |
Named |
False |
|
SourceProxy |
Specifies an array of the source backup proxies that you want to use as source backup proxies.
Accepts the |
|
False |
Named |
False |
|
StoragePolicy |
Specifies the VMware storage policy profile that must be applied to the restored virtual disks.
Accepts the |
False |
Named |
False |
|
|
TargetProxy |
Specifies an array of the target backup proxies that you want to use as target backup proxies.
Accepts the |
|
False |
Named |
False |
|
ToTarget |
Defines target server settings.
If you migrate VMware vSphere VMs, provide this parameter and do not specify the target server explicitly with the |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the CBackupSession object that contains setting of a VMs quick migration session.
Examples
Performing VMs Quick Migration
This example shows how to migrate the VMs to a the support.north.local ESXi host with the following settings:
- The target resource pool is set to
ResourcePool_9. - The target datastore is set to
Datastore_5. - The target folder is set to
VM_recovery. - The cmdlet will apply the Veeam Quick Migration mechanism to migrate VMs.
- The
RunAsyncparameter is set to bring the process to the background.
|
$session = Get-VBRInstantRecovery $server = Get-VBRServer -Name support.north.local $pool = Find-VBRViResourcePool -Name "ResourcePool_9" $store = Find-VBRViDatastore -Name "Datastore_5" $folder = Find-VBRViFolder -Name "VM_recovery" Start-VBRViInstantRecoveryMigration -InstantRecovery $session -Server $server -ResourcePool $pool -Datastore $store -Folder $folder -ForceVeeamQM -RunAsync |
Perform the following steps:
- Run the
Get-VBRInstantRecoveryReturns running Instant Recovery sessions. cmdlet. Save the result to the$sessionvariable. - Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Provide theNameparameter value. Save the result to the$servervariable. - Run the
Find-VBRViResourcePoolReturns VMware resource pools. cmdlet. Provide theNameparameter value. Save the result to the$poolvariable. - Run the
Find-VBRViDatastoreLooks for VMware datastores. cmdlet. Provide theNameparameter value. Save the result to the$storevariable. - Run the
Find-VBRViFolderLooks for folders on a specified ESXi host. cmdlet. Provide theNameparameter value. Save the result to the$foldervariable. - Run the
Start-VBRViInstantRecoveryMigrationcmdlet. Specify the following settings:- Set the
$sessionvariable as theInstantRecoveryparameter value. - Set the
$servervariable as theServerparameter value. - Set the
$poolvariable as theResourcePoolparameter value. - Set the
$storevariable as theDatastoreparameter value. - Set the
$foldervariable as theFolderparameter value. - Provide the
ForceVeeamQMparameter. - Provide the
RunAsyncparameter.
- Set the
Related Commands
Get-VBRInstantRecoveryReturns running Instant Recovery sessions.Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRViResourcePoolReturns VMware resource pools.Find-VBRViDatastoreLooks for VMware datastores.Find-VBRViFolderLooks for folders on a specified ESXi host.