tgarijo
Contributor
Contributor

changeVMRAM worklow

Hello

I've a workflow that change VM memory, but I need to know if this workflow finish well to run another workflow.

//Auto generated script, cannot be modified !
actionResult = System.getModule("com.vmware.library.vc.vm").changeVMRAM(vm,memory) ;

The variable actionResult is a  VcTask object.

Regards

 

0 Kudos
3 Replies
jimmyvandermast
Hot Shot
Hot Shot

So, in short, next thing you need to do is poll the task status.
Wait for it to finish and then look at it's result.

0 Kudos
xian_
Expert
Expert

you need the action com.vmware.library.vc.basic / vim3WaitTaskEnd

0 Kudos
Constantine0
Contributor
Contributor

Ekran Resmi 2021-07-10 15.42.01.png

 

By default, you cannot add CPU and memory resources to a virtual machine while the virtual machine is on. So if you want to change vCPU and memory, you need to shutdown the virtual machine beforehand. You have to run the powerOff action for this. You should then run the actionResult command. Thus, the transaction will be successful. You don't need to check.

0 Kudos