You can perform automated operations in vCenter Server by running workflows from the standard library or workflows that you create.

Before you begin

Verify that you have configured the vCenter Server plug-in. For details, see Installing and Configuring vRealize Orchestrator.

About this task

For example, you can create a virtual machine by running the Create simple virtual machine workflow.

Procedure

  1. From the drop-down menu in the Orchestrator client, select Run.
  2. Click the Workflows view.
  3. In the workflows hierarchical list, open Library > vCenter > Virtual machine management > Basic to navigate to the Create simple virtual machine workflow.
  4. Right-click the Create simple virtual machine workflow and select Start workflow.
  5. Provide the general parameters and click Next.

    Option

    Action

    Virtual machine name

    Name the virtual machine orchestrator-test.

    Virtual machine folder

    1. Click Not set for the Virtual machine folder value.

    2. 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.

  6. 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.

    Press Enter in the Filter text box to see all the available networks.

    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.

  7. Click Submit to run the workflow.

    A workflow token appears under the Create simple virtual machine workflow, showing the workflow running icon.

  8. Click the workflow token to view the status of the workflow as it runs.
  9. Click the Events tab in the workflow token view to follow the progress of the workflow token until it completes.
  10. Click the Inventory view.
  11. 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.

  12. (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.

Results

The Create simple virtual machine workflow ran successfully.

What to do next

You can log in vSphere Client and manage the new virtual machine.