Hi,
I can deploy an ovf from vcenter ui without having to specify a host. From the web ui I only need to specify a cluster. Is there a powercli equivalent to do the same? I tried import-vapp however that requires vmhost (mandatory) to be specified. I want vcenter to choose a host without me needing to specify a host. Am I using the wrong powercli api or is this possible from powercli? I am using powercli 10.0.
Not with the currently available cmdlets I'm afraid.
But you can with the API.
Notice how in the CreateImportSpec method you can specify a resourcepool, that allows you to indirectly specify a cluster.
See the Import section at the OvfManager intro, on how the complete import process works.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Just to confirm that this is only possible using C#/Java api to accomplish this? No scripting or command line way.
No, you can call this method from PowerCLI.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference