VirtualMachineScaleSetDataDisk Class

Describes a virtual machine scale set data disk.

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

Inheritance
VirtualMachineScaleSetDataDisk

Constructor

VirtualMachineScaleSetDataDisk(*, lun: int, create_option: typing.Union[str, _ForwardRef('DiskCreateOptionTypes')], name: typing.Union[str, NoneType] = None, caching: typing.Union[str, _ForwardRef('CachingTypes'), NoneType] = None, write_accelerator_enabled: typing.Union[bool, NoneType] = None, disk_size_gb: typing.Union[int, NoneType] = None, managed_disk: typing.Union[_ForwardRef('VirtualMachineScaleSetManagedDiskParameters'), NoneType] = None, disk_iops_read_write: typing.Union[int, NoneType] = None, disk_m_bps_read_write: typing.Union[int, NoneType] = None, **kwargs)

Parameters

name
str
Required

The disk name.

lun
int
Required

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

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

write_accelerator_enabled
bool
Required

Specifies whether writeAccelerator should be enabled or disabled on the disk.

create_option
str or DiskCreateOptionTypes
Required

Required. The create option. Possible values include: "FromImage", "Empty", "Attach".

disk_size_gb
int
Required

Specifies the size of an empty data 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.

managed_disk
VirtualMachineScaleSetManagedDiskParameters
Required

The managed disk parameters.

disk_iops_read_write
<xref:long>
Required

Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

disk_m_bps_read_write
<xref:long>
Required

Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.