I'm attempting my first cross-vCenter migration but getting the following error;
PS C:\> $vm = Get-VM vmGuest -Server 'SourceVC'
PS C:\> $vm | Move-VM -Destination (Get-VMHost 'DestHost' -Server 'DestVC') -NetworkAdapter (Get-NetworkAdapter $vm -Server 'SourceVC') -PortGroup (Get-VDPortgroup -VDSwitch 'dvSwitch' -Name 'VLAN1') -Datastore (Get-Datastore 'DS01' -Server 'DestVC')
Move-VM : Move-VM Could not obtain the result of task '/VIServer=domain.com\admin@SourceVC:443/Task=Task-task-748415/'. Task name is 'RelocateVM_Task'. The following error occured:
Unexpected error occured. Cannot convert type 'VirtualMachineFeatureRequirement' to 'Object'.
At line:1 char:7
+ $vm | Move-VM -Destination (Get-VMHost 'DestHost' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Move-VM], VimException
+ FullyQualifiedErrorId : ViCore_TaskCoreService_ConvertTaskResult_Failed,VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM