Good Morning Folks,
I am trying to find a way to automate the task of pulling in quite a few ESXI hosts from an old vCenter 5.5 instance into a new 6.5 instance. I'd like to preserve the current resource pool hierarchy of these hosts as I pull them into the new vCenter. Performing this task via the WebCleint is straight forward as i am prompted to preserve the current resource pool hierarchy from a grafted host. I am having a hard time finding the correct parameters to perform this task via powercli.
Any help is appreciated.
Which are the missing parameters that you can't found?
I suppose you are querying to the vCenter 5.5 so it can be more limited.
I am using the standard Add-VMhost powercli commandlet. I dont see parameters with this command that pertains to pulling in the hosts with its existing resource pool hierarchy (grafted). I can obviously complete this task via the webclient and it works fine...just trying to automate the process via powercli.
But resource pools are created on cluster level, not host level. So try going this way. Note DRS need to be enabled to create resource pool.