VirtualMachineDataDisk 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.
Describes a data disk.
public class VirtualMachineDataDisk : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.ComputeSchedule.Models.VirtualMachineDataDisk>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.ComputeSchedule.Models.VirtualMachineDataDisk>
type VirtualMachineDataDisk = class
interface IJsonModel<VirtualMachineDataDisk>
interface IPersistableModel<VirtualMachineDataDisk>
Public Class VirtualMachineDataDisk
Implements IJsonModel(Of VirtualMachineDataDisk), IPersistableModel(Of VirtualMachineDataDisk)
- Inheritance
-
VirtualMachineDataDisk
- Implements
Constructors
| Name | Description |
|---|---|
| VirtualMachineDataDisk(Int32, DiskCreateOptionType) |
Initializes a new instance of VirtualMachineDataDisk. |
Properties
| Name | Description |
|---|---|
| Caching |
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage. |
| CreateOption |
Specifies how the virtual machine disk should be created. Possible values are Attach, FromImage, Empty, Copy, Restore. |
| DeleteOption |
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete, Detach. The default value is set to Detach. |
| DetachOption |
Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: ForceDetach. This feature is still in preview. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'. |
| DiskSizeGB |
Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. |
| ImageUri |
Specifies the virtual hard disk's uri. |
| Lun |
Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. |
| ManagedDisk |
The managed disk parameters. |
| Name |
The disk name. |
| SourceResourceId |
The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... |
| ToBeDetached |
Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset. |
| VhdUri |
Specifies the virtual hard disk's uri. |
| WriteAcceleratorEnabled |
Specifies whether writeAccelerator should be enabled or disabled on the disk. |