Syntax
New-VApp [[-Name] <String>] -ContentLibraryItem <ContentLibraryItem> [-Datastore <Datastore>] [-DiskStorageFormat <VirtualDiskStorageFormat>] [-InventoryLocation <FolderContainer>] -Location <VIContainer> [-RunAsync] [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet creates a new vApp.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String | Specifies a name for the new vApp. | true | False | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
ContentLibraryItem | ContentLibraryItem | Specifies the content library template to deploy the vApp from. | true | True (ByValue) | |
CpuExpandableReservation | Boolean | Indicates that the CPU reservation can grow beyond the specified value if there are available resources. | false | False | |
CpuLimitMhz | Int64 | Specifies a CPU usage limit in MHz. Utilization will not exceed this limit even if there are available resources. | false | False | |
CpuReservationMhz | Int64 | Specifies the CPU size in MHz that is guaranteed to be available. | false | False | |
CpuSharesLevel | SharesLevel | Specifies the CPU allocation level for this vApp. This property is used in relative allocation between resource consumers. The valid values are Custom, High, Low, and Normal. | false | False | |
Datastore | Datastore | Specifies the datastore where you want to store the copied vApp. If you do not specify a datastore, the cmdlet takes the first datastore of the host or cluster. | false | False | |
DiskStorageFormat | VirtualDiskStorageFormat | Specifies the storage format of the disks of the vApp. | false | False | |
InventoryLocation | FolderContainer | Specifies a datacenter or a virtual machine folder where you want to place the new vApp. | false | False | |
Location | VIContainer | Specifies a VApp, ResourcePool, VMHost, or Cluster object where you want to place the new vApp. | true | True (ByValue) | |
MemExpandableReservation | Boolean | If the value is $true, the memory reservation can grow beyond the specified value if there are available resources. | false | False | |
MemLimitGB | Decimal | Specifies a memory usage limit in gigabytes (GB). If this parameter is set, utilization will not exceed the specified limit even if there are available resources. | false | False | |
MemLimitMB | Int64 | This parameter is obsolete. Use MemLimitGB instead. Specifies a memory usage limit in megabytes (MB). If this parameter is set, utilization will not exceed the specified limit even if there are available resources. | false | False | |
MemReservationGB | Decimal | Specifies the guaranteed available memory in gigabytes (GB). | false | False | |
MemReservationMB | Int64 | This parameter is obsolete. Use MemReservationGB instead. Specifies the guaranteed available memory in megabytes (MB). | false | False | |
MemSharesLevel | SharesLevel | Specifies the memory allocation level for this vApp. This property is used in relative allocation between resource consumers. The valid values are Custom, High, Low, and Normal. | false | False | |
NumCpuShares | Int32 | Specifies the CPU allocation level for this vApp. This property is used in relative allocation between resource consumers. This parameter is ignored unless the CpuSharesLevel parameter is set to Custom. | false | False | |
NumMemShares | Int32 | Specifies the memory allocation level for this vApp. This property is used in relative allocation between resource consumers. This parameter is ignored unless the MemSharesLevel parameter is set to Custom. | false | False | |
RunAsync | SwitchParameter | Indicates that the command returns immediately without waiting for the task to complete. In this mode, the output of the cmdlet is a Task object. For more information about the RunAsync parameter run "help About_RunAsync" in the VMware PowerCLI console. | false | False | |
Server | VIServer[] | Specifies the Center Server systems 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. | false | False | |
VApp | VApp | Specifies a vApp you want to copy. | true | True (ByValue) | |
VMHost | VMHost | Specifies the host where you want to run the copied vApp. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
The newly created VApp objectNotes
Examples
-------------------------- Example 1 --------------------------
New-VApp -Name MyVApp1 -CpuLimitMhz 4000 -CpuReservationMhz 1000 -Location MyVMHost1
Creates a new vApp on the MyVMHost1 host.