Set-VDisk Command | Vmware PowerCLI Reference

Set-VDisk

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 sizeVDisk objects cannot be extended to a size that is smaller than or equal to the existing size.

Syntax

Set-VDisk
-VDisk < VDisk[] >
[-CapacityGB < Decimal > ]
[-Inflate ]
[-Name < String > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VDisk VDisk[] named
  • pipeline
Specifies the VDisk objects you want to modify.
optional CapacityGB Decimal named
Specifies the new capacity of the VDisk object in gigabytes (GB).
optional Inflate SwitchParameter named
Indicates to inflate the specified VDisk object. Inflating is supported only on thin-provisioned VDisk objects.
optional Name String named
Specifies the new name you want to set for the VDisk object.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.ViCore.Types.V1.Storage.VDisk.VDisk

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.

Related Commands

VDisk

This cmdlet copies the specified VDisk objects to the specified datastore.

This cmdlet lists VDisk objects based on the specified filters.

This cmdlet moves the specified VDisk objects to the specified datastore.

This cmdlet creates a managed VDisk object whose lifecycle is independent of a virtual machine`s lifecycle on the specified datastore.

This cmdlet removes VDisk objects and the associated backings from the datastore.

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