I've got this snippet so far. But it reports error
Code: Select all
Add-PSSnapin VeeamPSSnapin
$servers = Get-VBRServer | Where-Object { $_.Type -match "ESXi" -and $_.Name -match "172.21.41." }
$ctr = 0
foreach ($vm in Get-VBRJob -Name "migrationjob" | Select-Object @{Name="vms"; Expression={ $_.GetObjectsInJob().name }} | Select-Object -ExpandProperty "vms") {
while ($ctr -ge $servers.Count) {
$ctr -= $servers.Count
}
$restorepoint = Get-VBRBackup -Name "migrationjob" | Get-VBRRestorePoint | Where-Object { $_.Name -eq $vm } | Sort-Object -Property CreationTimeUtc -Descending | Select-Object -First 1
$restorepoint
Start-VBRInstantRecovery - -RestorePoint $restorepoint -Server $servers[$ctr] -PowerUp
start-vbr
$ctr++
}
Code: Select all
Start-VBRInstantRecovery : Failed to process RestorePoint 49dbc84c-0726-4742-8718-492b3815d537. Platform type EHyperV is not supported
At C:\Users\randomized\Desktop\instantvmrecovery.ps1:13 char:5
+ Start-VBRInstantRecovery -RestorePoint $restorepoint -Server $ser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Start-VBRInstantRecovery], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.StartVBRInstantRecovery
I've looked through all cmdlets containing "instant" but it seems like there's no "specialized" version for doing Hyper-V to VMware in here as of now.
Code: Select all
PS C:\Windows\system32> Get-Command | Where-Object { $_.Name -match "instant" }
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet Get-VBRInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Restart-VBRInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBREpInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRHvInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRHvInstantRecoveryMigration 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRvCloudInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRViComputerInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Start-VBRViInstantVMDiskRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Stop-VBRInstantRecovery 10.0.0.0 VeeamPSSnapin
Cmdlet Stop-VBRViInstantVMDiskRecovery 10.0.0.0 VeeamPSSnapin