vRA Reservation Policy

With SovLabs Property Toolkit for vRealize Automation (vRA), define vRA Reservation Policy with custom properties.

Using VMware’s vRealize Automation’s Approval Policies, we are able to update the vRA Reservation Policy.


Compatibility

VMware vRealize Automation (vRA) 7.5 and 7.6
VMware vRealize Orchestrator (vRO) 7.5 and 7.6
Minimum SovLabs Plug-in 2019.18.0

Highlights

  • Manage Active vRA Approval Policies with SovLabs Property Toolkit
  • Use SovLabs Property Toolkit to set the vRA Reservation Policy
  • Use vRA Deployment Properties to influence the vRA Reservation Policy (Custom Properties from the vRA Business Group, Property Groups and vRA Deployment for the vRA Blueprint)

Known Behavior

vRA Approval Policies

  • Multiple vRA Approval Policies with the same name can exist
  • Once the Status field is set to Active and the Approval Policy is saved, the user will not be able to edit the policy
    • In order to edit the Approval Policy, will have to Copy/Clone

vRA Deployment Properties

  • Able to obtain vRA Custom Properties from:
    • vRA Business Group
    • vRA Property Groups
    • vRA Deployment for the vRA Blueprint
  • Unable to obtain vRA Custom Properties from:
    • vRA Reservation
    • vRA Compute Resource
    • vRA Endpoint
    • Machines/Components on the vRA Blueprint
  • If utilizing SovLabs Property Toolkit (e.g. SovLabs_CreateProperties_ and/or SVL_), vRA Deployment properties are rendered 3 times

vRA Reservation Policy

  • If the user has an Approval Policy with a SovLabs Property Toolkit level but the expected vRA custom property is not defined:
    • The vRA Reservation Policy will not get set
    • The Approval Policy will approve the deployment request
  • If an invalid Reservation Policy name is defined, an error will occur and the Approval Policy will get rejected

Prerequisites

  1. (Optional) Customers can have and use existing vRA Approval Policies to update vRA Reservation Policy.
  2. An Approval Policy with Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine
  3. Successful vRA Blueprint
  4. All properties necessary to affect the vRA Deployment Names set at the 1) vRA Business Group, 2) vRA Property Groups and/or 3) vRA Deployment for the vRA Blueprint
  5. Valid Reservation Policy and Reservation

Setup

  1. Use the Manage Property Toolkit Approval Policies - SovLabs Modules vRA Catalog Request to create or update an Approval Policy
  2. Attach the Approval Policy to the vRA Blueprint(s) in order to affect the vRA Deployment Names
    • Administration > Catalog Management > Entitlements
    • Click {tenant}
    • Click Items & Approvals
      • Click +Entitled Items
        • Select the desired vRA Blueprints
        • Apply this policy to selected items: Select desired Approval Policy created/updated with the SovLabs Property Toolkit level
        • Click Ok
      • Click Finish

Usage

Update the vRA Reservation Policy on the blueprint:

  1. SovLabs Property Toolkit
    • Set a custom property on one of the following: vRA Business Group of the blueprint or on the Deployment Level Properties of the vRA Blueprint
    • Name: SovLabs_vRAReservationPolicy
    • Value: *user defined using SovLabs Property Toolkit of the Reservation Policy NAME

*NOTE: Can use SovLabs_CreateProperties_ and SVL_ to set the Name/Value to update the vRA Deployment Name


Manage Property Toolkit Approval Policies - SovLabs Modules

Perform the below in vRA > Catalog > Manage Property Toolkit Approval Policies - SovLabs Modules

Create

Create vRA Approval Policies with Policy Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine

  • Creates a vRA Approval Policy with Policy Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine
  • Creates a SovLabs Property Toolkit level in the Pre Approval Phase
    • The level is set at Order 1
    • The level has a ReservationPolicyID Custom Property that enables the vRA Reservation Policy to be updated
    • The level calls the vRA EBS: Property Toolkit Pre Approval Policy - Catalog Item Request or Service Catalog - Virtual Machine
      • The level automatically approves this level
  • This option is recommended for customers who do not rely on vRA Approval Policies but would like to update vRA Reservation Policy

View

View vRA Approval Policies with Policy Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine

  • View selected vRA Approval Policies
    • Details field will list all Pre Approval levels for the Approval Policy
    • Submitting the form will not make any changes to the Approval Policy

Update

Update vRA Approval Policies with Policy Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine

  • Updates selected vRA Approval Policies, regardless of state/status (e.g. Active/Inactive)
  • Add a SovLabs Property Toolkit level in the Pre Approval Phase
    • The level is set at Order 1
    • The level has a ReservationPolicyID Custom Property that enables the vRA Reservation Policy to be updated
    • The level calls the vRA EBS: Property Toolkit Pre Approval Policy - Catalog Item Request or Service Catalog - Virtual Machine
      • The level automatically approves this level
    • If the SovLabs Property Toolkit level already exists, it will skip adding it to the Approval Policy. The Details field will notate the skip.
    • Remove a SovLabs Property Toolkit level in the Pre Approval Phase
      • The SovLabs Property Toolkit level in the Pre Approval Phase is removed
      • All subsequent levels are shifted up a level (e.g. Level 2 becomes Level 1)
      • If the SovLabs Property Toolkit level is the only level that exists, it will skip removing it from the Approval Policy. The Details field will notate the skip.
        • At least 1 level must exist for an Active Approval Policy
      • If the SovLabs Property Toolkit level does not exist, it will skip removing it from the Approval Policy. The Details field will notate the skip.
        • The Remove action only removes a SovLabs Property Toolkit level

Delete

Delete vRA Approval Policies with Policy Type: Service Catalog - Catalog Item Request or Service Catalog - Virtual Machine

  • Deletes a vRA Approval Policy
  • Confirm checkbox must be checked in order to submit form since this is a destructive action and cannot be undone