Create New VHD
This Automation Manager object creates new virtual hard disk.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
VHD File Path | String | Yes | Path to the new virtual hard disk file(s) that is being created as a result of a command. If a filename or relative path is specified, the new virtual hard disk path is calculated relative to the current working directory. |
Parent VHD File Path | String | No | Specifies the path to the parent of the differencing disk to be created (this parameter may be specified only for the creation of a differencing disk). |
VHD Type | Dropdown | No | |
Block Size Bytes | String | No | Specifies the block size, in bytes, of the virtual hard disk to be created. |
Logical Sector Size (Bytes) | String | No | Specifies the logical sector size, in bytes, of the virtual hard disk to be created. Valid values are 512 and 4096. |
Physical Sector Size | String | No | Specifies the physical sector size, in bytes. Valid values are 512 and 4096. |
Drive Size | String | No | The maximum size, in bytes, of the virtual hard disk to be created. |
VHD Source Disk (ID or Path) | String | No | Specifies the physical disk to be used as the source for the virtual hard disk to be created. |
Output Parameters
Name | Type | Description |
---|---|---|
Result | Number | Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
VHD File Path | String | Yes | c:\Base.vhdx |
VHD Parent File Path | String | No | ??? |
VHD Type | Dropdown | Yes | ??? |
Block Size (bytes) | String | No | 128MB |
Logical Sector Size (bytes) | String | No | 4KB |
Physical Sector Size (bytes) | String | No | 4096MB |
Drive Size | String | No | 25GB |
VHD Source Disk (ID or Path) | String | No |
c:\test\testvhdx.vhdx 6 |