VMware {code} Community
workingfloow
Contributor
Contributor

Create vm from template with custom name within vApp

I tried to create vm from template with custom name in vApp using RecomposeVAppParams command and used SourcedItem and CreateItem but I can't.
Every time I get "Bad request ... " error.

What is the correct way to do it?


<RecomposeVAppParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:ns12="http://www.vmware.com/vcloud/v1.5"
xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ovfenv="http://schemas.dmtf.org/ovf/environment/1" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Description>Recomposed vApp description.</Description>

<SourcedItem sourceDelete="false">

     <Source href="{src}" />

     <InstantiationParams>

          <VirtualHardwareSection>

               <Name>{name}</Name>

          </VirtualHardwareSection>

     </InstantiationParams>

</SourcedItem>

Reply
0 Kudos
1 Reply
workingfloow
Contributor
Contributor

Is It possible create VM from template and give custom name to it? Or when I add VM from template I can't modify any of the parameters of the template when adding?

Reply
0 Kudos