VirtualMachineScaleSetDataDiskArgs

data class VirtualMachineScaleSetDataDiskArgs(val caching: Output<Either<String, CachingTypes>>? = null, val createOption: Output<Either<String, DiskCreateOptionTypes>>, val deleteOption: Output<Either<String, DiskDeleteOptionTypes>>? = null, val diskIOPSReadWrite: Output<Double>? = null, val diskMBpsReadWrite: Output<Double>? = null, val diskSizeGB: Output<Int>? = null, val lun: Output<Int>, val managedDisk: Output<VirtualMachineScaleSetManagedDiskParametersArgs>? = null, val name: Output<String>? = null, val writeAcceleratorEnabled: Output<Boolean>? = null) : ConvertibleToJava<VirtualMachineScaleSetDataDiskArgs>

Describes a virtual machine scale set data disk.

Constructors

Link copied to clipboard
constructor(caching: Output<Either<String, CachingTypes>>? = null, createOption: Output<Either<String, DiskCreateOptionTypes>>, deleteOption: Output<Either<String, DiskDeleteOptionTypes>>? = null, diskIOPSReadWrite: Output<Double>? = null, diskMBpsReadWrite: Output<Double>? = null, diskSizeGB: Output<Int>? = null, lun: Output<Int>, managedDisk: Output<VirtualMachineScaleSetManagedDiskParametersArgs>? = null, name: Output<String>? = null, writeAcceleratorEnabled: Output<Boolean>? = null)

Properties

Link copied to clipboard
val caching: Output<Either<String, CachingTypes>>? = null

Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.

Link copied to clipboard

The create option.

Link copied to clipboard
val deleteOption: Output<Either<String, DiskDeleteOptionTypes>>? = null

Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).

Possible values:

Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.

Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.

The default value is set to Delete.

Link copied to clipboard
val diskIOPSReadWrite: Output<Double>? = null

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.

Link copied to clipboard
val diskMBpsReadWrite: Output<Double>? = null

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.

Link copied to clipboard
val diskSizeGB: Output<Int>? = null

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.

Link copied to clipboard
val lun: Output<Int>

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.

Link copied to clipboard

The managed disk parameters.

Link copied to clipboard
val name: Output<String>? = null

The disk name.

Link copied to clipboard
val writeAcceleratorEnabled: Output<Boolean>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): VirtualMachineScaleSetDataDiskArgs