You can create policy definitions to capture a custom set of rules that assess the compliance state of an application deployment.

vCloud Application Director includes the following predefined policy definitions.

Blacklist services - checks if an unwanted service is used in the blueprint node or logical template.

Memory policy - compares the node memory values against the defined minimum and maximum memory values.

CPU policy - compares the node CPU count values against the specified minimum and maximum memory values.

Max VM count policy - checks for the total number of virtual machine instances, with the exclusion of temporary virtual machines for external services, across all of the nodes in a deployment.

Mandatory services - checks if a blueprint node is missing the specified mandatory services.

Verify that your user account has the ROLE_CATALOG_ADMIN catalog administrator role assigned to it.

Familiarize yourself with the basic concepts of defining and configuring component properties and actions. See Developing vCloud Application Director Components.

To view examples about how to name or define a policy, select Catalog > Policies to view the predefined policy.


On the vCloud Application Director title bar, click the drop-down menu and select Catalog > Policies.


Click New in the toolbar.


Set the name of the policy, add a description, and click Save.

Use a name associated to the policy definition for tracking purposes. For example, if the policy checks whether specific services are always applied to applications during deployment, you can list the service names in the description.


Click Create Policy Version to create a policy version.

You can create multiple versions for a policy.

A page for creating a policy version opens.


Complete the policy version information.

The policy version name stays the same.


Specify major, minor, or micro release versions, with or without qualifiers.

For example, you might use version numbers such as 1.0, 1.5, or 1.0.1-CPU-Policy.


(Optional) In the Description section, describe the definitions in the policy. If the policy is based on a previous version, detail the differences between the two policy versions.


For the Property Name and Description, define a variable and add an optional description.

The property name cannot begin with a digit.


To change the type, select a String or Array property type from the drop-down menu.

You cannot add types to the menu.


Type the value to substitute for this property when the script runs.

For example, for a property called max_cpu_count, you might type 10 in this field to specify the maximum number of CPU allowed in an application.


Select the Secured check box for passwords you define or to obscure the values of other properties.

If a property is changed from Secured to Unsecured, vCloud Application Director resets the property value, for security purposes. You must set a new password value for the property.


Click Delete to remove the selected row from the Properties section.


(Optional) Click Reset to revert to the original property value.


Click OK and save your changes when you are finished.

The policy you created is added to the page.

Add a policy definition script to assess the compliance state of a deployment. See Create a Policy Definition Script.