共用方式為


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

Initializes a new instance of the VirtualMachineScaleSetDataDisk class.

Properties

Caching

Gets or sets specifies the caching requirements. &lt;br&gt;&lt;br&gt; Possible values are: &lt;br&gt;&lt;br&gt; None &lt;br&gt;&lt;br&gt; ReadOnly &lt;br&gt;&lt;br&gt; ReadWrite &lt;br&gt;&lt;br&gt; Default: 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'

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. &lt;br&gt;&lt;br&gt; This value cannot be larger than 1023 GB

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