VMware Aria Automation Orchestrator

 View Only
Expand all | Collapse all

Powershell Plugin, Invoke an External Script but don't wait on result - continue and assume success

  • 1.  Powershell Plugin, Invoke an External Script but don't wait on result - continue and assume success

    Posted Aug 10, 2022 07:48 PM

    Hello all,

    I am writing a vRO workflow that interacts with Cloud Director and also a PowerShell Server. The first task creates a vapp and then the next step hands over to the powershell host and runs a script, this then happens over and over again in a loop - for the powershell part I reuse the Invoke an External Script command that runs a batch file that triggers the powershell scripts - very simple and no arguments required for the script - however vRO waits until the script finishes. As the script does quite a lot of things and usually takes 30 mins or more to run I would prefer to just trigger the script but not wait on the result - assume success - 

    Is there a way to 'Invoke the External Script' but not wait around until it finishes?



  • 2.  RE: Powershell Plugin, Invoke an External Script but don't wait on result - continue and assume success

    Posted Aug 10, 2022 09:09 PM

    I actually resolved this by attaching the powershell batch job to a schedule task and using the invoke a powershell command to start the scheduled task