Get-DeployRule Command | Vmware PowerCLI Reference

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

Get-DeployRule
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Name String[] named
Name of the deploy rule to retrieve. Wildcard patterns can be used here to retrieve multiple rules at a time.
optional ProgressAction ActionPreference named

Output

Examples

Example 1

$rule = Get-DeployRule "testrule"

Gets the deploy rule called "testrule".

Related Commands

DeployRule

Adds one or more rules to the rule set.

Clones an existing rule.

Gets a DeployRule object.

Creates a new rule.

Removes a rule from the working rule set.

Updates an existing 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.