powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Set-DeployRuleSet



NAME
Set-DeployRuleSet

SYNOPSIS
Sets the list of rules in the working rule set.

SYNTAX
Set-DeployRuleSet [-DeployRule] [-NoActivate] []

Set-DeployRuleSet -Clear [-NoActivate] []


DESCRIPTION
Explicitly sets the list of rules in the working rule set. By default, the change to the working set is immediatel
y 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.


PARAMETERS
-DeployRule
The array of rules that will make up the rule set.

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

-NoActivate
Specify the NoActivate parameter to apply the change to the working rule set but not to the active rule set.

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

-Clear
Removes all rules from the working rule set.

Required? true
Position? named
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
VMware.DeployAutomation.Types.DeployRuleSet


NOTES




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

C:\PS> Get-DeployRule "testrule", "rule2" | SetDeployRuleSet


Removes all rules from the working rule set and adds the rules named testrule and rule2.






RELATED LINKS
Add-DeployRule
Remove-DeployRule