## PowerCLI Reference

# New-ResourcePool

## Synopsis

This cmdlet creates a new resource pool.

Syntax

New-ResourcePool -Location <VIContainer> -Name <String> [-CpuExpandableReservation <Boolean>] [-CpuLimitMhz <Int64>] [-CpuReservationMhz <Int64>] [-CpuSharesLevel <SharesLevel>] [-MemExpandableReservation <Boolean>] [-MemLimitMB <Int64>] [-MemLimitGB <Decimal>] [-MemReservationMB <Int64>] [-MemReservationGB <Decimal>] [-MemSharesLevel <SharesLevel>] [-NumCpuShares <Int32>] [-NumMemShares <Int32>] [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-ResourcePool
Move-ResourcePool
Remove-ResourcePool
Set-ResourcePool

Detailed Description

This cmdlet creates a new resource pool with the provided inputs on the location that is specified by the Location parameter.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
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
CpuExpandableReservation | Boolean | Indicates that the CPU reservation can grow beyond the specified value if the parent resource pool has unreserved 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 pool. This property is used in relative allocation between resource consumers. The valid values are Custom, High, Low, and Normal. | false | false
Location | VIContainer | Specifies a container object (ResourcePool, Cluster, or VMHost) where you want to place the new resource pool. If a host or a cluster is specified for the Location parameter, the resource pool is created in the "Resources" resource pool. The "Resources" resource pool is a system resource pool and is guaranteed to exist. | true | true (ByValue)
MemExpandableReservation | Boolean | If the value is $true, the memory reservation can grow beyond the specified value if the parent resource pool has unreserved 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 pool. This property is used in relative allocation between resource consumers. The valid values are Custom, High, Low, and Normal. | false | false
Name | String | Specifies a name for the new resource pool. | true | false
NumCpuShares | Int32 | Specifies the CPU allocation level for this pool. 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 pool. This property is used in relative allocation between resource consumers. This parameter is ignored unless the MemSharesLevel parameter is set to Custom. | false | false
Server | VIServer[] | 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. | 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 ResourcePool object

Notes

Examples

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

    $resourcepool1 = Get-ResourcePool -Location Cluster -Name ResourcePool1

    New-ResourcePool -Location $resourcepool1 -Name ResourcePool2 -CpuExpandableReservation $true -CpuReservationMhz 500 -CpuSharesLevel high -MemExpandableReservation $true -MemReservationGB 5 -MemSharesLevel high

Creates a new resource pool named ResourcePool2 in the cluster's root resource pool ResourcePool1.

Copyright © VMware, Inc. All rights reserved.