PowerCLI Reference

Set-ResourcePool

Synopsis

This cmdlet modifies the properties of the specified resource pool.

Syntax

Set-ResourcePool [-ResourcePool] <ResourcePool[]> [-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
New-ResourcePool
Remove-ResourcePool

Detailed Description

This cmdlet modifies the properties of the specified resource pool.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ResourcePoolResourcePool[]Specifies the resource pool you want to configure.truetrue (ByValue)
ConfirmSwitchParameterIf 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.falsefalse
CpuExpandableReservationBooleanIndicates that the CPU reservation can grow beyond the specified value if the parent resource pool has unreserved resources.falsefalse
CpuLimitMhzInt64Specifies a CPU usage limit in MHz. If this parameter is set, utilization will not exceed this limit even if there are available resources.falsefalse
CpuReservationMhzInt64Specifies the guaranteed available CPU in MHz.falsefalse
CpuSharesLevelSharesLevelSpecifies the CPU allocation level for this pool. This property is used in relative allocation between resource consumers. This parameter accepts Custom, High, Low, and Normal values.falsefalse
MemExpandableReservationBooleanIndicates that the memory reservation can grow beyond the specified value if the parent resource pool has unreserved resources.falsefalse
MemLimitGBDecimalSpecifies 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.falsefalse
MemLimitMBInt64This 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.
falsefalse
MemReservationGBDecimalSpecifies the guaranteed available memory in gigabytes (GB).falsefalse
MemReservationMBInt64This parameter is obsolete. Use MemReservationGB instead.
Specifies the guaranteed available memory in megabytes (MB).
falsefalse
MemSharesLevelSharesLevelSpecifies the memory allocation level for the resource pool. This property is used in relative allocation between resource consumers. This parameter accepts Custom, High, Low, and Normal values.falsefalse
NameStringSpecifies a new name for the resource pool.falsefalse
NumCpuSharesInt32Specifies the CPU allocation level for the resource pool. This property is used in relative allocation between resource consumers. This parameter is ignored unless CpuSharesLevel is set to Custom.falsefalse
NumMemSharesInt32Specifies the memory allocation level for the resource pool. This property is used in relative allocation between resource consumers. This parameter is ignored unless MemSharesLevel is set to Custom.falsefalse
ServerVIServer[]Specifies the vCenter 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.falsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

Zero or more modified ResourcePool objects

Notes

Examples

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

Set-ResourcePool -Resourcepool Resourcepool -NumCpuShares  512 -MemLimitGB 4

Sets the CPU allocation level and the limit on memory usage in GB for the resource pool named Resourcepool.


Copyright © VMware, Inc. All rights reserved.