- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the quick reply.
Just tried to invoke RelocateVM_Task method on the VMview object and still get the same error.
Exception calling "RelocateVM_Task" with "2" argument(s): "The object 'vim.ResourcePool:resgroup-1002' has already been deleted or has not been completely created"
At C:\Scripts\MigrateTo-IMDC\Create-VMMoveScheduledTask.ps1:124 char:5
+ $vmView.RelocateVM_Task(($arg1.Value), 'defaultPriority')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : VimException
Wondering if I have to create a ServiceLocator for the destination VC and give the script credentials to connect to it before it will see the objects at the destination site. Would be a bummer if thats the case.
Is it possible to get the ServiceLocator object from the connected VISession?