Get-DeployRule
Gets the DeployRule object with the specified name from the VMware Auto Deploy server. If no rule names are given, all visible rules are returned. Hidden rules start with a dot and can be retrieved by using a wildcard pattern that starts with a dot (e.g. '.example*').
Syntax
[-Name
<String[]>]
[CommonParameters]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
String[] | named |
|
Name of the deploy rule to retrieve. Wildcard patterns can be used here to retrieve multiple rules at a time. |
Output
Examples
Example 1
C:\PS> $rule = Get-DeployRule "testrule"
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.