VMware Cloud Community
dkhan
Contributor
Contributor

deploy vApp using PowerCLI

Has anyone automated deploying a multi VM vApp using PowerCLI. I'm aware of Import-VApp but I don't see any option for setting the network addresses. I have a vApp that uses multiple VMs and static addresses. I'd like to automate the deployment and configuration as it will save a lot of time during testing. I also need to make sure that the ovfenv is properly populated with all of the VM network properties. Thanks.

Reply
0 Kudos
2 Replies
admin
Immortal
Immortal

Hi, dkhan,

I think what you need is using OSCustomizationNicMapping.

Please check the documentation - the example is with using StaticIps as is your case.

I haven't tried it myself, so I'm just suggesting maybe where to look at.

Best regards,

Leni Kirilov

Reply
0 Kudos
aaber
Contributor
Contributor

Hi,

You can use VMware Studio 2.6 to automate the deploy of a multi VM vApp.

The OVF file can include the IP addresses and more custom settings.

AAber

Sample StudioCLI command:

studiocli --uploadovf --type vcenter --host vc --port 443 --username elvis -p graceland --datastore vol1 --datacenter dc --managedhost the.king.com \

   --network vlan77 --ovf /build/export/ovf/vapp.ovf --name autodeploy63 --resourcepool vapp-test --verbose --overwrite

AAber

Reply
0 Kudos