Set-VDisk

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?