VMware Aria Automation Orchestrator

 View Only
  • 1.  changeVMRAM worklow

    Posted Jun 02, 2021 12:55 PM

    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

     



  • 2.  RE: changeVMRAM worklow

    Posted Jun 02, 2021 01:43 PM

    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.



  • 3.  RE: changeVMRAM worklow

    Posted Jun 02, 2021 01:56 PM

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



  • 4.  RE: changeVMRAM worklow

    Posted Jul 10, 2021 12:49 PM

    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.