Udostępnij za pośrednictwem


VirtualMachineScaleSetDataDisk Class

Definition

Describes a virtual machine scale set data disk.

public class VirtualMachineScaleSetDataDisk
type VirtualMachineScaleSetDataDisk = class
Public Class VirtualMachineScaleSetDataDisk
Inheritance
VirtualMachineScaleSetDataDisk

Constructors

VirtualMachineScaleSetDataDisk()

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

VirtualMachineScaleSetDataDisk(Int32, String, String, Nullable<CachingTypes>, Nullable<Boolean>, Nullable<Int32>, VirtualMachineScaleSetManagedDiskParameters, Nullable<Int64>, Nullable<Int64>, String)

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

Properties

Caching

Gets or sets specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

CreateOption

Gets or sets the create option. Possible values include: 'FromImage', 'Empty', 'Attach'

DeleteOption

Gets or sets specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).&lt;br&gt;&lt;br&gt; Possible values: &lt;br&gt;&lt;br&gt; Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.&lt;br&gt;&lt;br&gt; Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.&lt;br&gt;&lt;br&gt; The default value is set to Delete. Possible values include: 'Delete', 'Detach'

DiskIOPSReadWrite

Gets or sets specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

DiskMBpsReadWrite

Gets or sets specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

DiskSizeGB

Gets or sets 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.

Lun

Gets or sets 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

Gets or sets the managed disk parameters.

Name

Gets or sets the disk name.

WriteAcceleratorEnabled

Gets or sets specifies whether writeAccelerator should be enabled or disabled on the disk.

Methods

Validate()

Validate the object.

Applies to