Get vmId by vmName in Cloupia Script

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:

Inputs:

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

Outputs:

  • vmId (Virtual Machine Identity for UCS Director)

Leave a Reply

Your email address will not be published. Required fields are marked *