As the tenant administrator you want to ensure that the development and quality engineering group receives virtual machines that are properly provisioned in your environment, so you create an approval policy that requires pre approval for certain types of requests.

About this task

Because the CentOS with MySQL virtual machine consumes vCenter Server resources, you want the vSphere virtual infrastructure administrator to approve requests when the requested memory is more than 2048 MB or more than 2 CPUs to ensure that the resources are consumed wisely. You also you give the approver the ability to modify the requested CPU and memory values before approving a request.

Procedure

  1. Select Administration > Approval Policies.
  2. Create an approval policy for virtual machine provisioning.
    1. Click the New icon (Add).
    2. Select Select an approval policy type.
    3. In the list, select Service Catalog - Catalog Item Request - Virtual Machine.
    4. Click OK.
    5. Configure the following options:

      Option

      Configuration

      Name

      Enter CentOS on vSphere CPU or Memory VM.

      Description

      Enter Requires VI Admin approval for CPU>2 or Memory>2048.

      Status

      Select Active.

  3. On the Pre Approval tab, click the Add icon (Add).
  4. Configure the Level Information tab with the triggering criteria and the approval actions.
    1. In the Name text box, enter CPU>2 or Memory>2048 - VI Admin.
    2. In the Description text box, enter VI Admin approval for CPU and Memory.
    3. Select Required based on conditions.
    4. In the Clause drop-down list, select Any of the following.
    5. In the new Clause drop-down list, select CPUs and configure the clause with the values CPU > 2.
    6. Click Add expression and configure the clause with the values Memory (MB) > 2048.
    7. Select Specific Users and Groups.
    8. Enter the name of the vSphere virtual infrastructure administrator or administrator group in the search text box and click the search icon (Browse).
    9. Select the user or group.
    10. Select Anyone can approve.

      The request only needs one virtual infrastructure administrator to verify the resources and approve the request.

  5. Click the System Properties tab and select the properties that allow the approver to modify the requested CPU and Memory values before approving a request.
    1. Select the CPUs and Memory (MB) check boxes.
    2. Click OK.
  6. Click OK.

Results

You created an approval policy for virtual machine requests, but you still want to create an approval for the MySQL component. Until you apply the policies to an entitlement, no approvals are triggered.