VirtualMachineStorageDataDisk

data class VirtualMachineStorageDataDisk(val caching: String? = null, val createOption: String, val diskSizeGb: Int? = null, val lun: Int, val managedDiskId: String? = null, val managedDiskType: String? = null, val name: String, val vhdUri: String? = null, val writeAcceleratorEnabled: Boolean? = null)

Constructors

Link copied to clipboard
constructor(caching: String? = null, createOption: String, diskSizeGb: Int? = null, lun: Int, managedDiskId: String? = null, managedDiskType: String? = null, name: String, vhdUri: String? = null, writeAcceleratorEnabled: Boolean? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val caching: String? = null

Specifies the caching requirements for the Data Disk. Possible values include None, ReadOnly and ReadWrite.

Link copied to clipboard

Specifies how the data disk should be created. Possible values are Attach, FromImage and Empty.

Link copied to clipboard
val diskSizeGb: Int? = null

Specifies the size of the data disk in gigabytes.

Link copied to clipboard
val lun: Int

Specifies the logical unit number of the data disk. This needs to be unique within all the Data Disks on the Virtual Machine.

Link copied to clipboard
val managedDiskId: String? = null

Specifies the ID of an Existing Managed Disk which should be attached to this Virtual Machine. When this field is set create_option must be set to Attach. The following properties apply when using Unmanaged Disks:

Link copied to clipboard
val managedDiskType: String? = null

Specifies the type of managed disk to create. Possible values are either Standard_LRS, StandardSSD_LRS, Premium_LRS or UltraSSD_LRS.

Link copied to clipboard

The name of the Data Disk.

Link copied to clipboard
val vhdUri: String? = null

Specifies the URI of the VHD file backing this Unmanaged Data Disk.

Link copied to clipboard

Specifies if Write Accelerator is enabled on the disk. This can only be enabled on Premium_LRS managed disks with no caching and M-Series VMs. Defaults to false. The following properties apply when using Managed Disks: