VirtualMachineStorageOsDiskArgs

data class VirtualMachineStorageOsDiskArgs(val caching: Output<String>? = null, val createOption: Output<String>, val diskSizeGb: Output<Int>? = null, val imageUri: Output<String>? = null, val managedDiskId: Output<String>? = null, val managedDiskType: Output<String>? = null, val name: Output<String>, val osType: Output<String>? = null, val vhdUri: Output<String>? = null, val writeAcceleratorEnabled: Output<Boolean>? = null) : ConvertibleToJava<VirtualMachineStorageOsDiskArgs>

Constructors

Link copied to clipboard
constructor(caching: Output<String>? = null, createOption: Output<String>, diskSizeGb: Output<Int>? = null, imageUri: Output<String>? = null, managedDiskId: Output<String>? = null, managedDiskType: Output<String>? = null, name: Output<String>, osType: Output<String>? = null, vhdUri: Output<String>? = null, writeAcceleratorEnabled: Output<Boolean>? = null)

Properties

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

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

Link copied to clipboard
val createOption: Output<String>

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

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

Specifies the size of the OS Disk in gigabytes.

Link copied to clipboard
val imageUri: Output<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: Output<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: Output<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
val name: Output<String>

Specifies the name of the OS Disk.

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

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

Link copied to clipboard
val vhdUri: Output<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
val writeAcceleratorEnabled: Output<Boolean>? = null

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:

Functions

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