ImageOSDisk Class

Describes an Operating System disk.

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

Inheritance
azure.mgmt.compute._serialization.Model
ImageOSDisk

Constructor

ImageOSDisk(*, os_type: str | _models.OperatingSystemTypes, os_state: str | _models.OperatingSystemStateTypes, snapshot: _models.SubResource | None = None, managed_disk: _models.SubResource | None = None, blob_uri: str | None = None, caching: str | _models.CachingTypes | None = None, disk_size_gb: int | None = None, storage_account_type: str | _models.StorageAccountTypes | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
os_type

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

os_state

The OS State. Required. Known values are: "Generalized" and "Specialized".

snapshot

The snapshot.

managed_disk

The managedDisk.

blob_uri
str

The Virtual Hard Disk.

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

disk_size_gb
int

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

storage_account_type

Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS".

Variables

Name Description
os_type

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

os_state

The OS State. Required. Known values are: "Generalized" and "Specialized".

snapshot

The snapshot.

managed_disk

The managedDisk.

blob_uri
str

The Virtual Hard Disk.

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

disk_size_gb
int

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

storage_account_type

Specifies the storage account type for the managed disk. UltraSSD_LRS cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", and "UltraSSD_LRS".