You can perform automated operations in vCenter Server by running workflows from the standard library or workflows that you create.
For example, you can create a virtual machine by running the Create simple virtual machine workflow.
Verify that you have configured the vCenter Server plug-in. For details, see Installing and Configuring vRealize Orchestrator.
- From the drop-down menu in the Orchestrator Legacy Client, select Run.
- Click the Workflows view.
- In the workflows hierarchical list, open to navigate to the Create simple virtual machine workflow.
- Right-click the Create simple virtual machine workflow and select Start workflow.
- Provide the general parameters and click Next.
Option Action Virtual machine name Name the virtual machine orchestrator-test. Virtual machine folder
- Click Not set for the Virtual machine folder value.
- Select a virtual machine folder from the inventory.
The Select button is inactive until you select an object of the correct type, in this case, VC:VmFolder.
Size of the new disk in GB Enter an appropriate numeric value. Memory size in MB Enter an appropriate numeric value. Number of virtual CPUs Select an appropriate number of CPUs from the Number of virtual CPUs drop-down menu. Virtual machine guest OS Click the Not set link and select a guest operating system from the list. Make the disk thin provisioned Select whether to make the disk thin or thick provisioned.
- Provide the infrastructure parameters.
Option Description Host on which to create the virtual machine Click Not set for the Host on which to create the virtual machine value and navigate through the vCenter Server infrastructure hierarchy to a host machine. Resource pool Click Not set for the Resource pool value and navigate through the vCenter Server infrastructure hierarchy to a resource pool. The network to connect to Click Not set for the The network to connect to value and select a network.
To see all available networks, press Enter in the Filter text box.
Datastore in which to store the virtual machine files Click Not set for the Datastore in which to store the virtual machine files value and navigate through the vCenter Server infrastructure hierarchy to a datastore.
- To run the workflow, click Submit.
A workflow token appears under the Create simple virtual machine workflow, showing the workflow running icon.
- Click the workflow token to view the status of the workflow as it runs.
- Click the Events tab in the workflow token view to follow the progress of the workflow token until it completes.
- Click the Inventory view.
- Navigate through the vCenter Server infrastructure hierarchy to the resource pool you defined.
If the virtual machine does not appear in the list, click the refresh button to reload the inventory.The orchestrator-test virtual machine is present in the resource pool.
- (Optional) Right-click the orchestrator-test virtual machine in the Inventory view to see a contextual list of the workflows that you can run on the orchestrator-test virtual machine.
The Create simple virtual machine workflow ran successfully.
What to do next
You can log in vSphere Client and manage the new virtual machine.