VMWarevRAvRO

Rename a vRA IaaS VM

Rename a vRA IaaS VM

 

Exiting vCAC Virtual machine in vRA

// VMware vRealize Orchestrator action sample
//
// Rename a vRA IaaS VM
//
// For vRO/VRA 6.0+
//
// Action Inputs:
// vm – vCAC:VirtualMachine – vRA IaaS VM
// vmName – New name of VM
//
// Return type: void

var properties = new Properties();
properties.put(“VirtualMachineName”, vmName);

var vmEntity = vm.getEntity();
vCACEntityManager.updateModelEntityBySerializedKey(vmEntity.hostId, vmEntity.modelName, vmEntity.entitySetName, vmEntity.keyString, properties, null);

System.log(“VM successfully renamed to ‘” + vmName + “‘”);

 

Successfully renamed the vCAC Virtualmachine in vRA

Tags

Related Articles

Leave a Reply

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

Close