PowerCLI Reference

vSphere Auto Deploy Reference

Get-DeployRule

Synopsis

Gets a DeployRule object.

Syntax

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

Related Commands

New-DeployRule

Detailed Description

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*').

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Name of the deploy rule to retrieve. Wildcard patterns can be used here to retrieve multiple rules at a time.falsefalse

Return Type

VMware.DeployAutomation.Types.DeployRule

Notes

Examples

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

C:\PS> $rule = Get-DeployRule "testrule"


Copyright © 1998 - 2011 VMware, Inc. All rights reserved.