VMware {code} Community
sharninder
Enthusiast
Enthusiast

Powering on a vApp/VM connected to the network

So, I've managed to find the vTemplate that I need to work with. Instantiated the vTemplate and then deployed (and poweredOn) the vApp. All this is working fine except the last powering on part. When I look in the web GUI, my vApp is not getting connected to the network that I specified and that is why its not powering on.

When I do the same things manually with the web GUI, I can see that the vApp is connected to the network and it also powers on fine.

I'm really at my wits end here. I'm following all the steps from the guide, so really can't think of anything else.

Any suggestions ?

For instantiating, this is what I'm using:

POST http://vcloud.example.com/api/v1.0/vdc/5/action/instantiateVAppTemplate

Content-Type: application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml

...

0 Kudos
1 Reply
sharninder
Enthusiast
Enthusiast

Turns out, after an instantiatevApp call, I had to make a PUT call to networkConnectionSection of the vApp and set the network parameter again. Also set isConnected to true.

The guide doesn't mention this and I wonder why is it necessary as I have already mentioned the network that I want to the vApp connected to when I made the instantiate call.

0 Kudos