VMware Cloud Community
sbeaver
Leadership
Leadership

Recovery from failed deployment

So currently if a provisioning job fails before the machine is deleted it will start a request for catalog item with the same information that was entered into the form.  What I would really like to do is instead of using just the the answers to original form, someone tell me it would be possible to do something  like this....

for each (var virtualMachinePropertyEntity in virtualMachinePropertyEntities)

{

  var propertyName = virtualMachinePropertyEntity.getProperty("PropertyName");

  var propertyValue = virtualMachinePropertyEntity.getProperty("PropertyValue");

  virtualMachineProperties.put(propertyName, propertyValue);

}

and then use the virtualMachineProperties as the property file to use for the request catalog item as is or am I going to and up really have to do something like this

for each (var virtualMachinePropertyEntity in virtualMachinePropertyEntities)

{

  var propertyName = virtualMachinePropertyEntity.getProperty("PropertyName");

  var propertyValue = virtualMachinePropertyEntity.getProperty("PropertyValue");

  virtualMachineProperties.put("provider-"+propertyName, propertyValue);

}

I am thinking this is going to bite me on the virtual values

properties.put("provider-VirtualMachine.Memory.Size", new vCACCAFEIntegerLiteral(MemorySize).getValue());

but I could search for those and edit things to work.  Anyone else done something like this with any advise on things that might bite?

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
0 Replies