ImageDataDisk Class

Describes a data disk.

Constructor

ImageDataDisk()

Variables

Name Description
snapshot
<xref:<xref:"SubResource">>

The snapshot.

managed_disk
<xref:<xref:"SubResource">>

The managedDisk.

blob_uri
str

The Virtual Hard Disk.

caching
Union[str, <xref:"CachingTypes">]

Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: 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. This value cannot be larger than 1023 GB.

storage_account_type
Union[str, <xref:"StorageAccountTypes">]

Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values are: "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS", "Premium_ZRS", "StandardSSD_ZRS", and "PremiumV2_LRS".

disk_encryption_set
<xref:<xref:"DiskEncryptionSetParameters">>

Specifies the customer managed disk encryption set resource id for the managed image disk.

lun
int

Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.

Attributes

lun

Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. Required.

lun: Required[int]

blobUri

blobUri: str

caching

caching: str | CachingTypes

diskEncryptionSet

diskEncryptionSet: DiskEncryptionSetParameters

diskSizeGB

diskSizeGB: int

managedDisk

managedDisk: SubResource

snapshot

snapshot: SubResource

storageAccountType

storageAccountType: str | StorageAccountTypes