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
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
DeployRuleWrapper[] | named |
|
The array of rules that will make up the rule set. | optional |
|
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]
[-NoActivate]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
SwitchParameter | named |
|
Removes all rules from the working rule set. | optional |
|
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
DeployRule
Gets a DeployRule object.
Adds one or more rules to the rule set.
Clones an existing rule.
Updates an existing rule.
Removes a rule from the working rule set.
Creates a new 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.