PowerCLI Reference

Set-VDisk

Synopsis

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

Syntax

Set-VDisk [-VDisk] <VDisk[]> [-Name <String>] [-Inflate] [-CapacityGB <Decimal>] [-WhatIf] [-Confirm] [<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.