Syntax
Remove-DeployRule [-DeployRule] <DeployRule[]> [-Delete] [-NoActivate] [<CommonParameters>]Related Commands
Add-DeployRuleDetailed Description
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.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
At | UInt32 | Index in the rule set that you want to remove. | true | false | |
DeployRule | DeployRule[] | Rule to remove from the working rule set. | true | true (ByValue) | |
Delete | 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. | false | false | ||
NoActivate | SwitchParameter | Specify this parameter to only remove the rule to the working rule set. By default, the working rule set is activated after the change. | false | false |
Return Type
Notes
Examples
-------------- Example 1 --------------
C:\PS> Get-DeployRule "testrule" | Remove-DeployRule