PowerCLI Reference

Get-VApp

Synopsis

This cmdlet retrieves vApps.

Syntax

Get-VApp -Id <String[]> [-Server <VIServer[]>] [<CommonParameters>]

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

Related Commands

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

Detailed Description

This cmdlet retrieves vApps.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the names of the vApps that you want to retrieve.falseFalse
IdString[]Specifies the IDs of the vApps that you want to retrieve.


Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list.
trueFalse
LocationVIContainer[]Specifies Folder, Cluster, Datacenter, VMHost, and ResourcePool objects you want to search for vApps.falseTrue (ByValue)
NoRecursionSwitchParameterIndicates that you want to disable the recursive behavior of the command.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse
TagTag[]Returns only the vApps that are associated with any of the specified tags.falseFalse

Return Type

Zero or more VApp objects

Notes

Examples

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

Get-ResourcePool MyResourcePool1 | Get-VApp -NoRecursion

Retrieves all the vApps in the ResourcePool resource pool with no recursion.


Copyright © VMware, Inc. All rights reserved.