In this recipe, we will showcase how to run an Orchestrator workflow using PowerShell.
We need a Windows host that has PowerShell installed (which should be any modern version of Windows). VMware PowerCLI is not needed.
The PowerShell host needs to be able to connect to Orchestrator on TCP port 8281
.
If you are new to REST or the Orchestrator REST API, you may like to work through the recipe Accessing Orchestrator REST API in this chapter first.
All PowerShell scripts shown here are also stored as a resource with the example package.
We will start by just running a workflow that doesn't require any input. We will be accessing the example workflow 07.01 Access via PowerShell
.
Create a new empty PowerShell script. For example, use Editor:
Write the following code:
#some basic variables $usr = '[email protected]' $pwd = 'What4Ever' $vroServer = '192.168.220.12:8281...