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

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

Parameters

Required Parameter Name Type Position Features Description
required
DeployRule
DeployRuleWrapper[] named
  • pipeline
  • Rule to remove from the working rule set.
    optional
    Delete
    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
    NoActivate
    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]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    At
    UInt32 named Index in the rule set that you want to remove.
    optional
    Delete
    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
    NoActivate
    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

    Feedback

    Was this page helpful?