PowerShell

How to use PowerShell to start an Orchestrator Workflow

Okay now I have provided Python and [perl](/articles/learn-vco/296-how-to-use-perl-to-start-an-orchestrator-workflow.html" rel=“alternate) articles to start a vRealize Orchestrator (vRO / vCO) workflow via it’s REST API so now it’s time for a PowerShell script. For this article, I followed the same format as the previous two BUT provided the option to call the script with command line parameters! You may download the script in this article from my vroClientScripts Repository on GitHub. The Script The following code should be saved as something like runWorkflow.

VMware released the vCenter Orchestrator Plug-in for Microsoft Windows PowerShell

If you have an investment in PowerShell cmdlets such as VMware vSphere PowerCLI but also snapins from other vendors the VMware vCenter Orchestrator plug-in for Microsoft Windows PowerShell can help you to integrate these as part of workflows steps in vCenter Orchestrator. Citing the release notes: The plug-in offers many capabilities to workflow developers, such as: Invoking unmodified scripts by copying and pasting them into workflows Invoking external scripts and passing workflow parameters as script inputs Generating a new Orchestrator action from a PowerShell script Generating a new Orchestrator action for a PowerCLI cmdlet Browsing snap-ins and their associated cmdlets in the Orchestrator workflow editor Invoking scripts from the Orchestrator JavaScript API Converting vCenter Server objects in Orchestrator workflows to PowerShell objects and the reverse The VMware vCenter Orchestrator plug-in for Microsoft Windows PowerShell 1.