< Back
New-VApp
Post
NAME New-VApp
SYNOPSIS
This cmdlet creates a new vApp.
SYNTAX
New-VApp [[-Name] <String>] -ContentLibraryItem <ContentLibraryItem> [-Datastore <Datastore>] [-DiskStorageFormat
<VirtualDiskStorageFormat>] [-InventoryLocation <FolderContainer>] -Location <VIContainer> [-RunAsync] [-Server
<VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-VApp [-Name] <String> [-CpuExpandableReservation <Boolean>] [-CpuLimitMhz <Int64>] [-CpuReservationMhz
<Int64>] [-CpuSharesLevel <SharesLevel>] [-InventoryLocation <FolderContainer>] -Location <VIContainer>
[-MemExpandableReservation <Boolean>] [-MemLimitGB <Decimal>] [-MemLimitMB <Int64>] [-MemReservationGB <Decimal>]
[-MemReservationMB <Int64>] [-MemSharesLevel <SharesLevel>] [-NumCpuShares <Int32>] [-NumMemShares <Int32>]
[-RunAsync] [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-VApp [[-Name] <String>] [-Datastore <Datastore>] [-DiskStorageFormat <VirtualDiskStorageFormat>]
[-InventoryLocation <FolderContainer>] -Location <VIContainer> [-RunAsync] [-Server <VIServer[]>] -VApp <VApp>
[-VMHost <VMHost>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new vApp.
PARAMETERS
-ContentLibraryItem <ContentLibraryItem>
Specifies the content library template to deploy the vApp from.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-CpuExpandableReservation <Boolean>
Indicates that the CPU reservation can grow beyond the specified value if there are available resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CpuLimitMhz <Int64>
Specifies a CPU usage limit in MHz. Utilization will not exceed this limit even if there are available
resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CpuReservationMhz <Int64>
Specifies the CPU size in MHz that is guaranteed to be available.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-DiskStorageFormat <VirtualDiskStorageFormat>
Specifies the storage format of the disks of the vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InventoryLocation <FolderContainer>
Specifies a datacenter or a virtual machine folder where you want to place the new vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Location <VIContainer>
Specifies a VApp, ResourcePool, VMHost, or Cluster object where you want to place the new vApp.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-MemExpandableReservation <Boolean>
If the value is $true, the memory reservation can grow beyond the specified value if there are available
resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MemReservationGB <Decimal>
Specifies the guaranteed available memory in gigabytes (GB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MemReservationMB <Int64>
This parameter is obsolete. Use MemReservationGB instead. Specifies the guaranteed available memory in
megabytes (MB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies a name for the new vApp.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VApp <VApp>
Specifies a vApp you want to copy.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-VMHost <VMHost>
Specifies the host where you want to run the copied vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-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.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created VApp object
NOTES
-------------------------- Example 1 --------------------------
New-VApp -Name MyVApp1 -CpuLimitMhz 4000 -CpuReservationMhz 1000 -Location MyVMHost1
Creates a new vApp on the MyVMHost1 host.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... -VApp.html
Export-VApp
Get-VApp
Import-VApp
Remove-VApp
Set-VApp
Start-VApp
Stop-VApp
Move-VApp
SYNOPSIS
This cmdlet creates a new vApp.
SYNTAX
New-VApp [[-Name] <String>] -ContentLibraryItem <ContentLibraryItem> [-Datastore <Datastore>] [-DiskStorageFormat
<VirtualDiskStorageFormat>] [-InventoryLocation <FolderContainer>] -Location <VIContainer> [-RunAsync] [-Server
<VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-VApp [-Name] <String> [-CpuExpandableReservation <Boolean>] [-CpuLimitMhz <Int64>] [-CpuReservationMhz
<Int64>] [-CpuSharesLevel <SharesLevel>] [-InventoryLocation <FolderContainer>] -Location <VIContainer>
[-MemExpandableReservation <Boolean>] [-MemLimitGB <Decimal>] [-MemLimitMB <Int64>] [-MemReservationGB <Decimal>]
[-MemReservationMB <Int64>] [-MemSharesLevel <SharesLevel>] [-NumCpuShares <Int32>] [-NumMemShares <Int32>]
[-RunAsync] [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]
New-VApp [[-Name] <String>] [-Datastore <Datastore>] [-DiskStorageFormat <VirtualDiskStorageFormat>]
[-InventoryLocation <FolderContainer>] -Location <VIContainer> [-RunAsync] [-Server <VIServer[]>] -VApp <VApp>
[-VMHost <VMHost>] [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
This cmdlet creates a new vApp.
PARAMETERS
-ContentLibraryItem <ContentLibraryItem>
Specifies the content library template to deploy the vApp from.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-CpuExpandableReservation <Boolean>
Indicates that the CPU reservation can grow beyond the specified value if there are available resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CpuLimitMhz <Int64>
Specifies a CPU usage limit in MHz. Utilization will not exceed this limit even if there are available
resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-CpuReservationMhz <Int64>
Specifies the CPU size in MHz that is guaranteed to be available.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-DiskStorageFormat <VirtualDiskStorageFormat>
Specifies the storage format of the disks of the vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-InventoryLocation <FolderContainer>
Specifies a datacenter or a virtual machine folder where you want to place the new vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-Location <VIContainer>
Specifies a VApp, ResourcePool, VMHost, or Cluster object where you want to place the new vApp.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-MemExpandableReservation <Boolean>
If the value is $true, the memory reservation can grow beyond the specified value if there are available
resources.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MemReservationGB <Decimal>
Specifies the guaranteed available memory in gigabytes (GB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-MemReservationMB <Int64>
This parameter is obsolete. Use MemReservationGB instead. Specifies the guaranteed available memory in
megabytes (MB).
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies a name for the new vApp.
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? 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.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-VApp <VApp>
Specifies a vApp you want to copy.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByValue)
Accept wildcard characters? true
-VMHost <VMHost>
Specifies the host where you want to run the copied vApp.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? true
-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.
Required? false
Position? named
Default value $true
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are
modified.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
The newly created VApp object
NOTES
-------------------------- Example 1 --------------------------
New-VApp -Name MyVApp1 -CpuLimitMhz 4000 -CpuReservationMhz 1000 -Location MyVMHost1
Creates a new vApp on the MyVMHost1 host.
RELATED LINKS
Online Version: https://code.vmware.com/doc/preview?id= ... -VApp.html
Export-VApp
Get-VApp
Import-VApp
Remove-VApp
Set-VApp
Start-VApp
Stop-VApp
Move-VApp