Set-DeployRuleSet Command | Vmware PowerCLI Reference

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

Set-DeployRuleSet
-Clear
[-NoActivate ]
[-ProgressAction < ActionPreference > ]
[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.
optional ProgressAction ActionPreference named
Set-DeployRuleSet
-DeployRule < DeployRuleWrapper[] >
[-NoActivate ]
[-ProgressAction < ActionPreference > ]
[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.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

Set-DeployRuleSet "testrule"

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

Related Commands

DeployRule

Adds one or more rules to the rule set.

Clones an existing rule.

Gets a DeployRule object.

Creates a new rule.

Removes a rule from the working rule set.

Updates an existing rule.

DeployRuleSet

Gets the current working rule set or the current active rule set.

Sets the list of rules in the working rule set.

DeployRuleSetCompliance

Remediate any non-compliant associations discovered by Test-DeployRuleSetCompliance

Checks whether hosts are compliant with rules.