Remove-DeployRule
Removes a rule from the working rule set. By default, the working rule set is then activated. Use the "-Delete" parameter to permanently delete the rule from the Auto Deploy server.You must have the "AutoDeploy.RuleSet.Edit" privilege on the root folder of vCenter Server to remove a rule from the rule set and the "AutoDeploy.Rule.Delete" privilege to delete the rule.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
DeployRuleWrapper[] | named |
|
Rule to remove from the working rule set. | optional |
|
SwitchParameter | named |
|
Delete the rule object. This flag will permanently delete the rule from the AutoDeploy server and remove it from any RuleSets that it was in. | optional |
|
SwitchParameter | named |
|
Specify this parameter to only remove the rule to the working rule set. By default, the working rule set is activated after the change. |
-At
<UInt32>
[-Delete]
[-NoActivate]
[CommonParameters]
[-Delete]
[-NoActivate]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
UInt32 | named |
|
Index in the rule set that you want to remove. | optional |
|
SwitchParameter | named |
|
Delete the rule object. This flag will permanently delete the rule from the AutoDeploy server and remove it from any RuleSets that it was in. | optional |
|
SwitchParameter | named |
|
Specify this parameter to only remove the rule to the working rule set. By default, the working rule set is activated after the change. |
Output
Examples
Example 1
C:\PS> Get-DeployRule "testrule" | Remove-DeployRule
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.