vSphere PowerCLI Reference

Get-VApp

Synopsis

Retrieves virtual appliances.

Syntax

Get-VApp [-Location <VIContainer[]>] [[-Name] <String[]>] [-Id <String[]>] [-NoRecursion] [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online version
Export-VApp
Import-VApp
New-VApp
Remove-VApp
Set-VApp
Start-VApp
Stop-VApp
Move-VApp

Detailed Description

Retrieves virtual appliances.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specify the names of the virtual appliances you want to retrieve.falsefalse
IdString[]Specify the IDs of the virtual appliances you want to retrieve.falsefalse
LocationVIContainer[]Specify Folder, Cluster, Datacenter, VMHost, and ResourcePool objects you want to search for virtual appliances.falsetrue (ByValue)
NoRecursionSwitchParameterIndicate that you want to disable the recursive behavior of the command.falsefalse
ServerVIServer[]Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falsefalse

Return Type

VApp

Notes

Examples

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

Get-ResourcePool ResourcePool | Get-VApp -NoRecursion

Retrieves the virtual appliances in the ResourcePool resource pool with no recursion.


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