Condividi tramite


VirtualMachineScaleSetDataDisk Constructors

Definition

Overloads

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.

VirtualMachineScaleSetDataDisk()

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

public VirtualMachineScaleSetDataDisk ();
Public Sub New ()

Applies to

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

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

public VirtualMachineScaleSetDataDisk (int lun, string createOption, string name = default, Microsoft.Azure.Management.Compute.Models.CachingTypes? caching = default, bool? writeAcceleratorEnabled = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters managedDisk = default, long? diskIOPSReadWrite = default, long? diskMBpsReadWrite = default, string deleteOption = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetDataDisk : int * string * string * Nullable<Microsoft.Azure.Management.Compute.Models.CachingTypes> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetManagedDiskParameters * Nullable<int64> * Nullable<int64> * string -> Microsoft.Azure.Management.Compute.Models.VirtualMachineScaleSetDataDisk
Public Sub New (lun As Integer, createOption As String, Optional name As String = Nothing, Optional caching As Nullable(Of CachingTypes) = Nothing, Optional writeAcceleratorEnabled As Nullable(Of Boolean) = Nothing, Optional diskSizeGB As Nullable(Of Integer) = Nothing, Optional managedDisk As VirtualMachineScaleSetManagedDiskParameters = Nothing, Optional diskIOPSReadWrite As Nullable(Of Long) = Nothing, Optional diskMBpsReadWrite As Nullable(Of Long) = Nothing, Optional deleteOption As String = Nothing)

Parameters

lun
Int32

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.

createOption
String

The create option. Possible values include: 'FromImage', 'Empty', 'Attach'

name
String

The disk name.

caching
Nullable<CachingTypes>

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'

writeAcceleratorEnabled
Nullable<Boolean>

Specifies whether writeAccelerator should be enabled or disabled on the disk.

diskSizeGB
Nullable<Int32>

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.

managedDisk
VirtualMachineScaleSetManagedDiskParameters

The managed disk parameters.

diskIOPSReadWrite
Nullable<Int64>

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
Nullable<Int64>

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.

deleteOption
String

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

Applies to