## PowerCLI Reference

## vSphere Auto Deploy Reference

# Set-DeployRuleSet

## Synopsis

Sets the list of rules in the working rule set.

Syntax

Set-DeployRuleSet [-DeployRule] <DeployRule[]> [-NoActivate] [<CommonParameters>]
Set-DeployRuleSet -Clear [-NoActivate] [<CommonParameters>]

Related Commands

Add-DeployRule
Remove-DeployRule

Detailed Description

Explicitly sets the list of rules in the working rule set. By default, the change to the working set is immediately activated.
Use the -Clear option to remove all rules from the working rule set.
You must have the "AutoDeploy.RuleSet.Edit" privilege on the root folder of vCenter Server to use this cmdlet.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
DeployRule | DeployRule[] | The array of rules that will make up the rule set. | true | false |
Clear | SwitchParameter | Removes all rules from the working rule set. | true | false |
NoActivate | SwitchParameter | Specify the NoActivate parameter to apply the change to the working rule set but not to the active rule set. | false | false |

Return Type

VMware.DeployAutomation.Types.DeployRuleSet

Notes

Examples

-------------- Example 1 --------------

    C:\PS> Set-DeployRuleSet "testrule"

Removes all rules from the working rule set and adds the rule named testrule.

Copyright © 1998 - 2011 VMware, Inc. All rights reserved.