This is in reference to the Commvault Powershell module found here. https://documentation.commvault.com/v11/essential/101892_commvault_powershell_module_reference.html
I am successfully running the cmdlet with an out of place restore but it only works in the same Cluster as the original backed up VM. When I try to run the cmdlet and point to a remote cluster or host with… Restore-CVVirtualMachine -Name $vm -ClientName $client -SubclientName $subclient -outofPlace -Requestbody $requestbody -OverwriteExisting -Confirm:$false. I am guessing it fails with
Error Code: r91:79] Description: Unable to create a new virtual machine ltestingvm-restore] on host ]remoteesxihost.domain.corp] datastore dRemoteDS_02]. tThe input arguments had entities that did not belong to the same datacenter.] Source: mediaagentname.domain.corp, Process: vsrst
because some resources do not exist like the target VM network or some other localized thing that was backed up on the source VM.
Where can I get more info on what are all the fields to choose from in the vmware destinationinfo options of the $requestbody variable that was set. This was created using example 5 in the full help command on Restore-CVVirtualMachine I.E. Yes I am trying to restore to a different datacenter managed by the same virtual center.
$requestbody = @"
{
"destinationClient": {
"clientName": "$Client"
},
"destinationInfo":
{
"vmware": {
"esxHost": "remoteesxihost.domain.corp",
"newName": "testingvm-restore",
"dataStore": "RemoteDS_02",
"resourcePool": "/"
}
}
]
}
"@ | ConvertFrom-Json