DataVirtualHardDisk Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Objects that are used to create a data disk for a virtual machine.
public class DataVirtualHardDisk
type DataVirtualHardDisk = class
Public Class DataVirtualHardDisk
- Inheritance
-
DataVirtualHardDisk
Constructors
DataVirtualHardDisk() |
Initializes a new instance of the DataVirtualHardDisk class. |
Properties
HostCaching |
Optional. Specifies the platform caching behavior of the data disk blob for read/write efficiency. The default value is ReadOnly. |
IOType |
Optional. Gets or sets the IO type. |
Label |
Optional. Specifies the friendly name of the VHD used to create the data disk for the virtual machine. |
LogicalDiskSizeInGB |
Optional. Specifies the size, in GB, of an empty VHD to be attached to the virtual machine. The VHD can be created as part of an attached disk or created as a virtual machine call by specifying the value for this property. Azure creates the empty VHD based on the size preference and attaches the newly created VHD to the virtual machine. |
LogicalUnitNumber |
Optional. Specifies the Logical Unit Number (LUN) for the data disk. The LUN specifies the slot in which the data drive appears when mounted for usage by the virtual machine. This element is only listed when more than one data disk is attached to a virtual machine. |
MediaLink |
Optional. Optional. If the disk that is being added is already registered in the subscription or the VHD for the disk already exists in blob storage, this element is ignored. If a VHD file does not exist in blob storage, this element defines the location of the new VHD that is created when the new disk is added.Example: http://example.blob.core.windows.net/disks/mydatadisk.vhd |
Name |
Optional. Specifies the name of the VHD used to create the data disk for the virtual machine. |
SourceMediaLink |
Optional. Optional. If the disk that is being added is already registered in the subscription or the VHD for the disk does not exist in blob storage, this element is ignored. If the VHD file exists in blob storage, this element defines the path to the VHD and a disk is registered from it and attached to the virtual machine. |