Get vmId by vmName in Cloupia Script

How to get the Virtual Machine Identity (vmId) with its name.

Create a custom task with this code:


  • VMname (Virtual machine Name) in a string
  • accountName (vCenter Account Name in UCS Director)


  • vmId (Virtual Machine Identity for UCS Director)

Leave a Reply

Your email address will not be published.