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.v2017_03_30.models._compute_management_client_enums.DiskCreateOptionTypes], name: Optional[str] = None, caching: Optional[Union[str, azure.mgmt.compute.v2017_03_30.models._compute_management_client_enums.CachingTypes]] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2017_03_30.models._compute_management_client_enums.OperatingSystemTypes]] = None, image: Optional[azure.mgmt.compute.v2017_03_30.models._models_py3.VirtualHardDisk] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional[azure.mgmt.compute.v2017_03_30.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".

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".

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.