VirtualMachineStorageOsDisk

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

Constructors

Link copied to clipboard
constructor(caching: String? = null, createOption: String, diskSizeGb: Int? = null, imageUri: String? = null, managedDiskId: String? = null, managedDiskType: String? = null, name: String, osType: String? = null, 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 OS Disk. Possible values include None, ReadOnly and ReadWrite.

Link copied to clipboard

Specifies how the OS Disk should be created. Possible values are Attach (managed disks only) and FromImage.

Link copied to clipboard
val diskSizeGb: Int? = null

Specifies the size of the OS Disk in gigabytes.

Link copied to clipboard
val imageUri: String? = null

Specifies the Image URI in the format publisherName:offer:skus:version. This field can also specify the VHD URI of a custom VM image to clone. When cloning a Custom (Unmanaged) Disk Image the os_type field must be set.

Link copied to clipboard
val managedDiskId: String? = null

Specifies the ID of an existing Managed Disk which should be attached as the OS Disk of this Virtual Machine. If this is set then the create_option must be set to Attach. Changing this forces a new resource to be created.

Link copied to clipboard
val managedDiskType: String? = null

Specifies the type of Managed Disk which should be created. Possible values are Standard_LRS, StandardSSD_LRS or Premium_LRS. The following properties apply when using Unmanaged Disks:

Link copied to clipboard

Specifies the name of the OS Disk.

Link copied to clipboard
val osType: String? = null

Specifies the Operating System on the OS Disk. Possible values are Linux and Windows.

Link copied to clipboard
val vhdUri: String? = null

Specifies the URI of the VHD file backing this Unmanaged OS Disk. Changing this forces a new resource to be created.

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: