Assumming you have already retrieved a Virtual Machine object and assigned the object a variable name of "vm", the following code in an action or Scriptable task will retrieve the guest IP address:
var guestIP = vm.guest.ipAddress;
You can then return the guestIP variable as your output from that workflow/action.
Visit me at for vCenter Orchestrator tips and tutorials
Wether you are using the vcenter client, or the web access, if you click on the server and then go to the summary tab. The IP address is listed on that tab. Hope this helps.
Assumming you have already retrieved a Virtual Machine object and assigned the object a variable name of "vm", the following code in an action or Scriptable task will retrieve the guest IP address:
var guestIP = vm.guest.ipAddress;
You can then return the guestIP variable as your output from that workflow/action.
Visit me at for vCenter Orchestrator tips and tutorials
Hi,
The above approach by Burke is used to fetch the VM's IP address. I would just like to add that please make sure you have VMware Tools installed since VM's guest OS prop can only be retrieved if tools are installed.
Regards,
Angela