PowerCLI Reference

Set-VDisk

Synopsis

This cmdlet renames, inflates, or extends the size of the specified VDisk object.

Syntax

Set-VDisk [-VDisk] <VDisk[]> [-CapacityGB <Decimal>] [-Inflate] [-Name <String>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Copy-VDisk
Get-VDisk
Move-VDisk
New-VDisk
Remove-VDisk

Detailed Description

This cmdlet renames, inflates, or extends the size of the specified VDisk object. If multiple options are specified, they are performed in the following order. 1. Rename 2. Inflate 3. Extend the size


VDisk objects cannot be extended to a size that is smaller than or equal to the existing size.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VDiskVDisk[]Specifies the VDisk objects you want to modify.trueTrue (ByValue)
CapacityGBDecimalSpecifies the new capacity of the VDisk object in gigabytes (GB).falseFalse
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
InflateSwitchParameterIndicates to inflate the specified VDisk object. Inflating is supported only on thin-provisioned VDisk objects.falseFalse
NameStringSpecifies the new name you want to set for the VDisk object.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

The modified VDisk objects

Notes

Examples

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

Set-VDisk -VDisk $vDisk -Name 'NewName' -CapacityGB 2

Renames $vDisk VDisk object to 'NewName' and sets its capacity to 2 GB.

-------------------------- Example 2 --------------------------

Set-VDisk -VDisk $vDisk -Inflate

Inflates the $vDisk VDisk object.


Copyright © VMware, Inc. All rights reserved.