Set-DeployRuleSet

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.

Syntax

-DeployRule  <DeployRuleWrapper[]>
[-NoActivate]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
DeployRule
DeployRuleWrapper[] named The array of rules that will make up the rule set.
optional
NoActivate
SwitchParameter named Specify the NoActivate parameter to apply the change to the working rule set but not to the active rule set.

-Clear
[-NoActivate]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Clear
SwitchParameter named Removes all rules from the working rule set.
optional
NoActivate
SwitchParameter named Specify the NoActivate parameter to apply the change to the working rule set but not to the active rule set.

Output

Examples


Example 1

C:\PS> Set-DeployRuleSet "testrule"

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

Related Commands

Feedback

Was this page helpful?