The deployment criteria narrows the scope of a policy so that it is applied only to the deployments where the criteria is true. For example, you can use the deployment criteria to create a policy that is applied only to a particular catalog item or template.

Constructing deployment criteria

You use the graphical interface to construct the deployment criteria expression. To construct complex expressions, you can use AND and OR. You can also use parenthetical operators to group expressions.

Here is an example of an expression.
catalogItem equals Multi-tier five machine with LB AND (createdBy equals jan@mycompany.com OR createdBy kris@mycompany.com)
Using the deployment criteria components, it looks like the following example.
Example of the deployment criteria.

Deployment criteria properties

To create a functional deployment criteria, you must understand the syntax.

The deployment criteria text box has various drop-down menus that provide the available properties and operators. How you construct your expression depends on the available values and on the order of operations.

The drop-down menus include the following properties. Some properties vary between policy types.

Property Description Available in these policy types
blueprint Identifier for the vRealize Automation Cloud Assembly cloud template that was used to create the deployment.
  • Approvals
  • Day 2
  • Lease
catalogItem Identifier for the vRealize Automation Service Broker catalog item that was used to request the deployment.
  • Approvals
  • Day 2
  • Lease
createdBy Name of the user who requested the deployment. The format is username@mycompany.com.
  • Day 2
  • Lease
deploymentID Identifier for the deployment.
  • Approvals
name Deployment name.
  • Day 2
  • Lease
requestedBy Name of the user who requested a day 2 action. The format is username@mycompany.com.
  • Approvals
resources Resources that are part of a deployment.

You can define the deployment criteria based on the following resources.

  • Cloud Type
  • Flavor
  • Region
  • Resource Type
  • Day 2
  • Lease

You can define the approval criteria based on the following resources.

  • Cloud Account
  • Cloud Type
  • Flavor
  • Image
  • Region
  • Resource Type
  • Approvals

What is the difference between blueprint and catalogItem?

  • Use blueprint when your policy is specific to vRealize Automation Cloud Assembly cloud templates. For example, an Amazon Web Services template does not have a blueprint.
  • Use catalogItem when your policy can include vRealize Automation Service Broker catalog items based on any template, extensibility workflow, or other content type. For example, vRealize Automation Cloud Assembly cloud templates and Amazon Web Services CloudFormation templates deployed from the catalog have a catalogItem.

Order of operations for the expression

An expression is processed in the following order:

  1. Expressions in parentheses
  2. AND
  3. OR

Use the following examples to understand the order.

  • X OR Y AND Z. In this example, Y AND Z is evaluated before X OR Y. Next, the X OR is evaluated against the results of Y AND Z.
  • (X OR Y) AND Z. In this example, X OR Y is evaluated before AND because the expression in the parentheses is always evaluated first. Next the AND Z is evaluated against the results of X OR Y.