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?