Skip to content
dscbot edited this page Jun 4, 2022 · 1 revision

xVHD

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String Name of the VHD File
Path Key String Folder where the VHD will be created
ParentPath Write String Parent VHD file path, for differencing disk
MaximumSizeBytes Write UInt64 Maximum size of Vhd to be created
Generation Write String Virtual disk format - Vhd or Vhdx Vhd, Vhdx
Ensure Write String Should the VHD be created or deleted Present, Absent
ID Read String Virtual Disk Identifier
Type Write String Type of Vhd - Dynamic, Fixed, Differencing Dynamic, Fixed, Differencing
FileSizeBytes Read UInt64 Current size of the VHD
IsAttached Read Boolean Is the VHD attached to a VM or not

Description

Manages VHDs in a Hyper-V host.

Requirements

  • The Hyper-V Role has to be installed on the machine.
  • The Hyper-V PowerShell module has to be installed on the machine.
Clone this wiki locally