How to: Create and Configure a Policy-Based Management Policy
A Policy-Based Management policy contains a Policy-Based Management condition and a target set that can be a server instance, a server object, a database, or a database object that is affected by the condition. A policy can use a condition that was created earlier, or you can create a condition when you are creating the policy. A single condition can be used in many policies. A policy can only contain a single condition. Policies also contain an evaluation mode property that is set by using the Evaluation Mode box.
To create a policy
In Object Explorer, expand Management, expand Policy Management, right-click Policies, and then click New Policy.
On the Create NewPolicy,General page, in the Name box, type the name of the new policy.
If you want the policy to be enabled as soon as it is created, select the Enabled check box. If the evaluation mode is On demand, the Enabled check box is not available.
In the Check condition box, select one of the existing conditions, or select New Condition. To edit a condition, select the condition and then click the build (...) button. For more information, see How to: Create and Configure a Policy-Management Condition.
In the Against targets box, select one or more target types for this policy. Some conditions and facets can only be applied to certain types of targets. The available target sets appear in the associated box. Expand Every to select a filtering condition for some types of the targets. If no targets appear in this box, the check condition is scoped at the server level.
In the Evaluation Mode box, select how this policy will behave. Different conditions can have different valid evaluation modes. For more information about which evaluation modes are valid, see Administering Servers by Using Policy-Based Management.
If the policy will be evaluated on a schedule, set the evaluation mode to On schedule, and then click Pick to select a schedule, or click New to create a new schedule.
To limit the policy to subset of the target types, in the Server restriction box, select from limiting conditions or create a new condition.
On the Description page, in the Category box, select an optional policy category or create a new one.
Type an optional description of the policy.
In the Additional help hyperlink: Text to display box, type the text to appear as a hyperlink.
In the Additional help hyperlink: Address box, type a hyperlink. You can provide a link to a Web page that starts with http:// or https://, or provide a mail link that starts with mailto://.
After you type a hyperlink, click the Test Link button to check the validity of the hyperlink.
To create the policy, click OK.
To view or modify a policy
In Object Explorer, expand Management, expand Policy Management, expand Policies, right-click a policy, and then click Properties.
View the policy in the Policy, General page. Modify as needed.
To delete a policy
- In Object Explorer, expand Management, expand Policy Management, expand Policies, right-click a policy, and then click Delete.
Requires membership in the PolicyAdministratorRole role in the msdb database.