Created
December 24, 2021 06:25
-
-
Save YagmurOzden/949e2333c0572010128a00baa4941ebe to your computer and use it in GitHub Desktop.
get random VM (VMware vRO action, vSphere, virtual machine)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var vms = VcPlugin.getAllVirtualMachines(); | |
var output = []; | |
for (var i = 0 ; i < vms.length ; i++){ | |
output.push(vms[i].name); | |
} | |
return output[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment