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.v2021_07_01.models._compute_management_client_enums.DiskCreateOptionTypes], name: Optional[str] = None, caching: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.CachingTypes]] = None, write_accelerator_enabled: Optional[bool] = None, diff_disk_settings: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.DiffDiskSettings] = None, disk_size_gb: Optional[int] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2021_07_01.models._compute_management_client_enums.OperatingSystemTypes]] = None, image: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.VirtualHardDisk] = None, vhd_containers: Optional[List[str]] = None, managed_disk: Optional[azure.mgmt.compute.v2021_07_01.models._models_py3.VirtualMachineScaleSetManagedDiskParameters] = None, **kwargs)
Parameters
- caching
- str or CachingTypes
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
Specifies whether writeAccelerator should be enabled or disabled on the disk.
- create_option
- str or DiskCreateOptionTypes
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
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 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
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
Specifies information about the unmanaged user image to base the scale set on.
Specifies the container urls that are used to store operating system disks for the scale set.
Feedback
Submit and view feedback for