VMware Cloud Community
mag2sub
Contributor
Contributor

Unable to retrieve VM machine properties after Machineaddorupdate orchestrator workflow

virtualMachineAddOrUpdateProperties = new Properties () ;

virtualMachineAddOrUpdateProperties.put( "xyz" , 123) ;

but when i enumerate achine properties  thru below i am not able see the custom peoperties inserted above ....any pointers appreciate ...Thanks in advance

var vRAVmProperties = machine.get("properties") ;

if (vRAVmProperties != null) {

  var log = "";

  log += "vRA VM properties :\n";

  var array = new Array();

  for each (var key in vRAVmProperties.keys) {

  array.push(key + " : " + vRAVmProperties.get(key));

  }

  array.sort();

  for each (var line in array) {

  log += "\t" + line + "\n";

  }

  System.log(log);

  }

0 Kudos
0 Replies