In this recipe, we further explore the Orchestrator integration into vSphere Web Client. You will learn how to run Orchestrator workflows using vSphere Web Client as well as how to configure workflows so that they work with it.
You find the base information on how to integrate Orchestrator into the vSphere Web Client in the recipe Connecting to vCenter in Chapter 1, Installing and Configuring Orchestrator.
For this recipe, we need Orchestrator integrated into vSphere Web Client.
This recipe is made up of two parts, the configuration and the passing along of information between the Web Client and Orchestrator.
We now configure workflows for use with the vSphere Web Client:
Array of [any vCenterobject]
type.
To run workflows, a vCenter user must have at least the view
and execute
right in Orchestrator; see recipe User management in this chapter.
If you just configured the new workflow you need to re-log in:
When running a workflow from the Web Client, you might want to pass some information to the workflow in Orchestrator, for instance, the vSphere object you are running the workflow on:
VC:VirtualMachine
. If you plan to use the Multi selection option, make sure that you use an Array of VC:VirtualMachine
.In case you want to use a workflow such as run a SSH command. You will find that you will need to still add a hostname, even if you assign it to a VM. To solve this, follow these steps:
VM
of type VC:VirtualMachine
07.04.5 Run SSH command (Web Client)
.The vSphere integration of Orchestrator into the vSphere Web Client allows you to easily use workflows that you have created.
You can also start all the workflows from the vSphere Web Client by clicking on vRealize Orchestrator | Inventory Trees | Workflows. The Orchestrator workflow tree you know from Orchestrator Client will appear and you can select and then start the workflow.
It's also possible to schedule workflows; just click on the workflow that you would like to run and then click on the right window onto Schedule workflow. This works the same as in Orchestrator Client. You can monitor all scheduled workflows by clicking on vRealize Orchestrator | Inventor List | Scheduled workflows.
The last and most important thing is that you can also interact with workflows that are waiting for interaction. Just click on vRealize Orchestrator| Inventor List | Waiting for interaction to see all workflows that are currently waiting for interaction.
You can see all the workflows that are and have been running on vRealize Orchestrator | vRO Servers | [your server] | Monitor. Here, you can also Cancel and Answer workflows. The workflows you see here are all the Orchestrator workflow runs, not only the ones run via the vSphere Web Client.
As you need to define Context Actions (right-click on the menu), it is rather important that you are able to back up or restore these settings.
By clicking on vCenter Orchestrator | Manage | Context Actions, you can use the export action (the white paper icon with the blue right arrow) to export all current settings into an XML file. Using import (the white paper icon with the green left arrow), you can import these settings into Web Client again. Please note that the export contains the workflow ID, so make sure that the workflows on another Orchestrator server have the same ID (see the Synchronize Orchestrator element between Orchestrator Servers recipe in Chapter 3, Distributed Design and the Working with packages recipe in Chapter 4, Programming Skills).
The example workflows 07.04.5 Run SSH command (Web Client)
and 12.05.01 Presentation Test
.