VMware Cloud Community
anoopvb
Enthusiast
Enthusiast
Jump to solution

New to vCO. Trying to figure out what cluster a virtual machine lives in

Hello There.


I created a simple "Hello VM" workflow in vCO and added it to vcenter so it shows up in the right click menu of a virtual machine.


When i run it, the input is pre-populated with the name of the virtual machine just like i expected.


Within the script section, i'm simply executing


system.log("Hello, " + vm.displayName);

system.log("VM ID: " + vm.id);

I'm trying to figure out how I can get the cluster that this VM lives on but that property is not part of VC:VirtualMachine.

Do I need to leverage another type of input to get that data or another workflow to pull that information?

thank you.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
anoopvb
Enthusiast
Enthusiast
Jump to solution

My bad. I didn't see this when i searched first.

https://communities.vmware.com/thread/464671

I'll try this. thanks!

View solution in original post

0 Kudos
1 Reply
anoopvb
Enthusiast
Enthusiast
Jump to solution

My bad. I didn't see this when i searched first.

https://communities.vmware.com/thread/464671

I'll try this. thanks!

0 Kudos