A policy instance allows an existing policy definition to take effect for all of the application provisioning activities in a specific deployment environment.
About this task
The composite deployment feature does not support policy compliance scans.
Log in to Application Services as an application cloud administrator.
Depending on your cloud provider, you must have at least one vCloud Director, vRealize Automation, or Amazon EC2 deployment environment mapped in Application Services. See Create a vCloud Director Deployment Environment, Create a vCloud Director Deployment Environment, Create a vRealize Automation Deployment Environment, or Create an Amazon EC2 Deployment Environment.
If you are using a custom policy, verify that it is available in the library. See Add a Policy to the Library.
- On the Application Services title bar, click the drop-down menu and select .
- Select an existing deployment environment.
- Select the Policy Instances tab and click Create Policy Instance to create a policy instance.
- Complete the policy instance information for the deployment environment.
Name and Description
Include the policy name in either of these fields. The text from these fields appears in the policy instances section for the deployment environment.
If the policy does not appear in the drop-down list, cancel the dialog box and selectto add a custom policy to the library.
Click the down arrow to select from a list of versions that are associated with the policy.
Select this check box to stop operations that can result in a non-compliant deployment, irrespective of current compliance state of deployment.
Before you use this option, it is recommended that the policy compliance is fully established in a deployment environment. A non-critical policy instance marks the compliance status of the deployment but does not stop the operation.Note:
If you specify a new property value in the policy instance, the new property value overrides the existing library value defined in the policy.
The properties and scripts defined in the policy version are automatically populated in the Properties and Actions sections.
When you create a policy action script, the policy instance makes a copy. Changes to the policy script in the library do not affect the existing policy instances associated to that policy. You need to create a policy instance for the script changes to take effect.
- Click Save.
- Click the arrow next to the policy instance name to return to the previous page.