After exploring how to use the Orchestrator client to run a workflow, let's do the same with the vSphere Web Client. The advantage in using the Web Client is that you do not need to start and log into a separate client, and you can directly make use of the existing objects.
We will now run a workflow using the vSphere Web Client. This method is good to run any workflow. Later, we will run the workflows directly from the vCenter inventory by simply right-clicking on them.
After clicking on Finish, the workflow will be executed. You can see a new task pop up in the vCenter task bar. As you can see in the following screenshot there are two tasks, were one would have expected to see only one task. Have a closer look. The first one (marked A) is run as the user who is logged into vCenter, and the second (marked B) is the one that is run by Orchestrator against vCenter. This is the case if you have selected one session instead of per-user session when configuring Orchestrator with vCenter (see Chapter 2, Deploying and Configuring the Orchestrator Appliance).
Not all workflows are integrated directly into the vSphere Web Client. We will have a look at how to configure them in a second.
All available workflows for a given vCenter type are shown when you right-click on a vCenter object and then select All vRealize Orchestrator Actions, as shown in the following screenshot:
Before we run a workflow from the vCenter inventory, we will configure a workflow, which will be used in the next chapter, by performing the following steps:
Here you find all the workflows configured for use within the vCenter inventory. In section A, you will find the name of the workflow. Section B shows whether this plug-in is enabled for Multi selection. Multi selection means that you can run this workflow with more than one vCenter object at once. Section C shows for which vCenter object type this workflow will be accessible.
The workflow has been added and assigned to a vCenter VM type. You may need to log out of the vSphere Web Client and then log in again to make the change visible.
We will now execute the workflow form the vCenter inventory by performing the following steps:
[datastore] folder/file
.After the workflow has finished, the VM should have a CD-ROM that it didn't have before, and the CD-ROM should be connected to an ISO.