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(*, name: str, create_option: Union[str, azure.mgmt.compute.v2016_03_30.models._compute_management_client_enums.DiskCreateOptionTypes], caching: Optional[Union[str, azure.mgmt.compute.v2016_03_30.models._compute_management_client_enums.CachingTypes]] = None, os_type: Optional[Union[str, azure.mgmt.compute.v2016_03_30.models._compute_management_client_enums.OperatingSystemTypes]] = None, image: Optional[azure.mgmt.compute.v2016_03_30.models._models_py3.VirtualHardDisk] = None, vhd_containers: Optional[List[str]] = 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".
- 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".
- 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
The Source User Image VirtualHardDisk. This VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.
Feedback
Submit and view feedback for