I'm having issue in getting the resource pool using the new Veeam powershell command (find-VBRViResourcePool) it always return me null value. But when I used the old command (Find-VBRResourcePool) it give me this result:
Code: Select all
PS C:\temp\scripts> Find-VBRResourcePool -server $server
WARNING: This cmdlet is obsolete, use Find-VBRViResourcePool instead
Childs : {}
Type : ResourcePool
Ref : resgroup-8
Id : resgroup-8
Name : Resources
Path : xxx/host/xxx Cluster/Resources
Parent : xxx Cluster
Please let me know what I missed or need to reconfigure, I need this to run Start-VBRInstantRecovery command. Below is my script that I used and running in Veeam version 6.0 restore.
Code: Select all
param(
$bkfJobName,
$rHost,
$prodVMname)
$jobsnames = get-vbrbackup | where {$_.JobName -eq "$bkfJobName"}
$res = Find-VBRResourcePool -Server ($rhost) | where {$_.Name -eq "Resources"}
$VMname = $prodVMname + "_test-restore"
$rp = get-vbrbackup | where {$_.JobName -eq "$bkfJobName"} | Get-VBRRestorePoint | where {$_.VMname -eq "$prodVMname"} | select-object -last 1
start-vbrinstantrecovery -RestorePoint ($rp) -VMname $VMname -server $rhost -ResourcePool $res -PowerUp $false -NICsEnabled $false -Reason "Test restore using powershell.