你如何使用移动资源池?
How do you use move-resourcepool?
我运行:
Move-ResourcePool -ResourcePool testresource -Destination myhost.mydomain.com
并得到:
Move-ResourcePool:无法将参数 'Destination' 绑定到目标。
例外设置"Destination":"Unable to cast object of type VMware.VimAutomation.ViCore.Util10.Surrogate.DefaultValue.StringWrapperResourcePool' to type 'VMware.VimAutomation.ViCore.Interop.V1.Inventory.VIContainerInterop'."
也许尝试将您的 -Destination
字符串转换为对象时会失败。想知道这样做是否更好?
Move-ResourcePool -ResourcePool testresource -Destination (Get-VMHost myhost.mydomain.com)
我运行:
Move-ResourcePool -ResourcePool testresource -Destination myhost.mydomain.com
并得到:
Move-ResourcePool:无法将参数 'Destination' 绑定到目标。 例外设置"Destination":"Unable to cast object of type VMware.VimAutomation.ViCore.Util10.Surrogate.DefaultValue.StringWrapperResourcePool' to type 'VMware.VimAutomation.ViCore.Interop.V1.Inventory.VIContainerInterop'."
也许尝试将您的 -Destination
字符串转换为对象时会失败。想知道这样做是否更好?
Move-ResourcePool -ResourcePool testresource -Destination (Get-VMHost myhost.mydomain.com)