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

Re: View Virtual Machine Specs with Orchestrator

$
0
0

Yes but this "bold"  // var vm = VcVirtualMachine() ; in a code below is

 

 

System.log("VM: " + vms);
Server.log("VM: " + vms);

// var vm = VcVirtualMachine() ;

 

vm = vms.shift(); // Returns the first item within the vms array

System.log("VM: " + vm.name);
Server.log("VM: " + vm.name);


cpuCount = vm.summary.config.numCpu;
memoryMB = vm.summary.config.memorySizeMB;

 

 

not necessary, because vms is an object passed from STEP1 "get virtual machine by name" workflow

 

So I used only

 

vm = vms.shift();

 


Viewing all articles
Browse latest Browse all 252940

Trending Articles



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