VMware Cloud Community
mccoyer002
Contributor
Contributor

Deploying an ovf from powercli without specifying a host via vcenter

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.

Tags (2)
0 Kudos
3 Replies
LucD
Leadership
Leadership

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

0 Kudos
mccoyer002
Contributor
Contributor

Just to confirm that this is only possible using C#/Java api to accomplish this? No scripting or command line way.

0 Kudos
LucD
Leadership
Leadership

No, you can call this method from PowerCLI.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos