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

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

    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

    Feedback

    Was this page helpful?