powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-DeployRule



NAME
Remove-DeployRule

SYNOPSIS
Removes a rule from the working rule set.

SYNTAX
Remove-DeployRule [-DeployRule] [-Delete] [-NoActivate] []

Remove-DeployRule [-At] [-Delete] [-NoActivate] []


DESCRIPTION
Removes a rule from the working rule set. By default, the working rule set is then activated. Use the "-Delete" p
arameter 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 th
e rule set and the "AutoDeploy.Rule.Delete" privilege to delete the rule.


PARAMETERS
-DeployRule
Rule to remove from the working rule set.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

-NoActivate
Specify this parameter to only remove the rule to the working rule set. By default, the working rule set is act
ivated after the change.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Delete
Delete the rule object. This flag will permanently delete the rule from the AutoDeploy server and remove it fr
om any RuleSets that it was in.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-At
Index in the rule set that you want to remove.

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- Example 1 --------------

C:\PS> Get-DeployRule "testrule" | RemoveDeployRule









RELATED LINKS
Add-DeployRule