共用方式為


VirtualMachineScaleSetDataDisk Constructors

Definition

Overloads

VirtualMachineScaleSetDataDisk()

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

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

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, DiskCreateOptionTypes, String, Nullable<CachingTypes>, Nullable<Boolean>, Nullable<Int32>, VirtualMachineScaleSetManagedDiskParameters, Nullable<Int64>, Nullable<Int64>)

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

public VirtualMachineScaleSetDataDisk (int lun, Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOptionTypes createOption, string name = default, Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes? caching = default, bool? writeAcceleratorEnabled = default, int? diskSizeGB = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetManagedDiskParameters managedDisk = default, long? diskIOPSReadWrite = default, long? diskMBpsReadWrite = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetDataDisk : int * Microsoft.Azure.Management.Compute.Fluent.Models.DiskCreateOptionTypes * string * Nullable<Microsoft.Azure.Management.Compute.Fluent.Models.CachingTypes> * Nullable<bool> * Nullable<int> * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetManagedDiskParameters * Nullable<int64> * Nullable<int64> -> Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetDataDisk
Public Sub New (lun As Integer, createOption As DiskCreateOptionTypes, 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)

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
DiskCreateOptionTypes

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

name
String

The disk name.

caching
Nullable<CachingTypes>

Specifies the caching requirements. <br><br> Possible values are: <br><br> None <br><br> ReadOnly <br><br> ReadWrite <br><br> Default: 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. <br><br> This value cannot be larger than 1023 GB

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.

Applies to