powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-ResourcePool



NAME
New-ResourcePool

SYNOPSIS
Creates a new resource pool.

SYNTAX
New-ResourcePool -Location -Name [-CpuExpandableReservation []] [-CpuLimitMhz 4>] [-CpuReservationMhz ] [-CpuSharesLevel ] [-MemExpandableReservation []] [-MemLimit
MB ] [-MemReservationMB ] [-MemSharesLevel ] [-NumCpuShares ] [-NumMemShares 32>] [-Server ] [-WhatIf] [-Confirm] []


DESCRIPTION
Creates a new resource pool with the provided inputs on the location that is specified by the Location parameter.


PARAMETERS
-Location
Specify 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.

Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Name
Specify a name for the new resource pool.

Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuExpandableReservation []
Indicate that the CPU reservation can grow beyond the specified value if the parent resource pool has unreserve
d resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuLimitMhz
Specify a CPU usage limit in MHz. Utilization will not exceed this limit even if there are available resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuReservationMhz
Specify the CPU size in MHz that is guaranteed to be available.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-CpuSharesLevel
Specify the CPU allocation level for this pool. This property is used in relative allocation between resource c
onsumers. The valid values are Custom, High, Low, and Normal.

Required? false
Position? named
Default value Normal
Accept pipeline input? false
Accept wildcard characters? false

-MemExpandableReservation []
If the value is $true, the memory reservation can grow beyond the specified value if the parent resource pool h
as unreserved resources.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemLimitMB
Specify a memory usage limit in MB. Utilization will not exceed this limit even if there are available resource
s.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemReservationMB
Specify the size of the memory in MB that is guaranteed to be available.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-MemSharesLevel
Specify the memory allocation level for this pool. This property is used in relative allocation between resourc
e consumers. The valid values are Custom, High, Low, and Normal.

Required? false
Position? named
Default value Normal
Accept pipeline input? false
Accept wildcard characters? false

-NumCpuShares
Specify the CPU allocation level for this pool. This property is used in relative allocation between resource c
onsumers. This parameter is ignored unless the CpuSharesLevel parameter is set to Custom.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-NumMemShares
Specify the memory allocation level for this pool. This property is used in relative allocation between resourc
e consumers. This parameter is ignored unless the MemSharesLevel parameter is set to Custom.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Server
Specify the vSphere servers on which you want to run the cmdlet. If no value is given to this parameter, the co
mmand runs on the default servers. For more information about default servers, see the description of Connect-V
IServer.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? true

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
ResourcePool


NOTES




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

C:\PS>$resourcepool1 = Get-ResourcePool -Location Cluster -Name ResourcePool1

New-ResourcePool -Location $resourcepool1 -Name ResourcePool2 -CpuExpandableReservation $true -CpuReservationMhz 50
0 -CpuSharesLevel high -MemExpandableReservation $true -MemReservationMB 500 -MemSharesLevel high


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/New-ResourcePool.html
Get-ResourcePool
Move-ResourcePool
Remove-ResourcePool
Set-ResourcePool