VirtualMachineScaleSetOSDisk Class

Describes a virtual machine scale set operating system disk.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.compute._serialization.Model
VirtualMachineScaleSetOSDisk

Constructor

VirtualMachineScaleSetOSDisk(*, create_option: str | _models.DiskCreateOptionTypes, name: str | None = None, caching: str | _models.CachingTypes | None = None, write_accelerator_enabled: bool | None = None, diff_disk_settings: _models.DiffDiskSettings | None = None, disk_size_gb: int | None = None, os_type: str | _models.OperatingSystemTypes | None = None, image: _models.VirtualHardDisk | None = None, vhd_containers: List[str] | None = None, managed_disk: _models.VirtualMachineScaleSetManagedDiskParameters | None = None, delete_option: str | _models.DiskDeleteOptionTypes | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The disk name.

caching

Specifies the caching requirements. <br>``<br> Possible values are: <br>``<br> None <br>``<br> ReadOnly <br>``<br> ReadWrite <br>``<br> Default: None for Standard storage. ReadOnly for Premium storage. Known values are: "None", "ReadOnly", and "ReadWrite".

write_accelerator_enabled

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

create_option

Specifies how the virtual machines in the scale set should be created.:code:
<br> The only allowed value is: FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: "FromImage", "Empty", and "Attach".

diff_disk_settings

Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.

disk_size_gb
int

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. <br>``<br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023.

os_type

This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br>``<br> Possible values are: <br>``<br> Windows <br>``<br> Linux. Known values are: "Windows" and "Linux".

image

Specifies information about the unmanaged user image to base the scale set on.

vhd_containers

Specifies the container urls that are used to store operating system disks for the scale set.

managed_disk

The managed disk parameters.

delete_option

Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br>``<br> Possible values: <br>``<br> Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.:code:
<br> Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br>``<br> The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach".

Variables

Name Description
name
str

The disk name.

caching

Specifies the caching requirements. <br>``<br> Possible values are: <br>``<br> None <br>``<br> ReadOnly <br>``<br> ReadWrite <br>``<br> Default: None for Standard storage. ReadOnly for Premium storage. Known values are: "None", "ReadOnly", and "ReadWrite".

write_accelerator_enabled

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

create_option

Specifies how the virtual machines in the scale set should be created.:code:
<br> The only allowed value is: FromImage u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Required. Known values are: "FromImage", "Empty", and "Attach".

diff_disk_settings

Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.

disk_size_gb
int

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. <br>``<br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023.

os_type

This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. <br>``<br> Possible values are: <br>``<br> Windows <br>``<br> Linux. Known values are: "Windows" and "Linux".

image

Specifies information about the unmanaged user image to base the scale set on.

vhd_containers

Specifies the container urls that are used to store operating system disks for the scale set.

managed_disk

The managed disk parameters.

delete_option

Specifies whether OS Disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only). <br>``<br> Possible values: <br>``<br> Delete If this value is used, the OS disk is deleted when VMSS Flex VM is deleted.:code:
<br> Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br>``<br> The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the delete option for Ephemeral OS Disk. Known values are: "Delete" and "Detach".