Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Re: vRA/vRO 7 - Get the custom properties values

$
0
0

wllp   try using this in the scripting section..

 

varvmProperties=machine.get("properties");

 

foreach(varkey invmProperties.keys){

System.log("Key: "+key+" Value: "+vmProperties.get(key));

}

 

That should give you all of the variables. Then you can set things like this..

System.log(vmProperties.get("VirtualMachine.Network0.Address"));

This will give you Nic 0 IP for example...

 

I found the "vmProperties" scripting above on this website : https://thevirtualist.org/vra-event-broker-pass-basic-custom-properties-vro/

 

Hope this is of help to you or someone else

 

Jono


Viewing all articles
Browse latest Browse all 219257


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>