VirtualMachineScaleSetOSDisk Class

Describes a virtual machine scale set operating system disk.

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

Inheritance
VirtualMachineScaleSetOSDisk

Constructor

VirtualMachineScaleSetOSDisk(*, create_option: Union[str, azure.mgmt.compute.v2019_03_01.models._compute_management_client_enums.DiskCreateOptionTypes], name: Optional[str] = None, caching: Optional[Union[str, azure.mgmt.compute.v2019_03_01.models._compute_management_client_enums.CachingTypes]] = None, write_accelerator_enabled: Optional[bool] = None, diff_disk_settings: Optional[azure.mgmt.compute.v2019_03_01.models._models_py3.DiffDiskSettings] = None, disk_size_gb: Optional[int] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2019_03_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, image: Optional[azure.mgmt.compute.v2019_03_01.models._models_py3.VirtualHardDisk] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional[azure.mgmt.compute.v2019_03_01.models._models_py3.VirtualMachineScaleSetManagedDiskParameters] = None, **kwargs)

Parameters

name
str
Required

The disk name.

caching
str or CachingTypes
Required

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. Possible values include: "None", "ReadOnly", "ReadWrite".

write_accelerator_enabled
bool
Required

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

create_option
str or DiskCreateOptionTypes
Required

Required. Specifies how the virtual machines in the scale set should be created.:code:
<br> The only allowed value is: FromImage – 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. Possible values include: "FromImage", "Empty", "Attach".

diff_disk_settings
DiffDiskSettings
Required

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

disk_size_gb
int
Required

Specifies the size of the operating system disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. <br>``<br> This value cannot be larger than 1023 GB.

os_type
str or OperatingSystemTypes
Required

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. Possible values include: "Windows", "Linux".

image
VirtualHardDisk
Required

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

vhd_containers
list[str]
Required

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

managed_disk
VirtualMachineScaleSetManagedDiskParameters
Required

The managed disk parameters.