VirtualMachineScaleSetDataDisk Class
Describes a virtual machine scale set data disk.
Constructor
VirtualMachineScaleSetDataDisk(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
name
|
The disk name. |
|
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. |
|
caching
|
str or
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". |
|
write_accelerator_enabled
|
Specifies whether writeAccelerator should be enabled or disabled on the disk. |
|
create_option
|
The create option. Required. Known values are: "FromImage", "Empty", "Attach", "Copy", and "Restore". |
|
disk_size_gb
|
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. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023. |
|
storage_fault_domain_alignment
|
Specifies the storage fault domain alignment type for the disk. Known values are: "Aligned" and "BestEffortAligned". |
|
managed_disk
|
The managed disk parameters. |
|
disk_iops_read_write
|
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
|
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. |
|
delete_option
|
Specifies whether data disk should be deleted or detached upon VMSS Flex
deletion (This feature is available for VMSS with Flexible OrchestrationMode only). |
Attributes
caching
None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage.. Known values are: "None", "ReadOnly", and "ReadWrite".
caching: str | _models.CachingTypes | None
create_option
"FromImage", "Empty", "Attach", "Copy", and "Restore".
create_option: str | _models.DiskCreateOptionTypes
delete_option
Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature
is available for VMSS with Flexible OrchestrationMode only).
Possible values:
Delete If this value is used, the data disk is deleted when the VMSS Flex VM is
deleted.
Detach If this value is used, the data disk is retained after VMSS Flex VM
is deleted.
The default value is set to Delete. Known values are: "Delete" and
"Detach".
delete_option: str | _models.DiskDeleteOptionTypes | None
disk_iops_read_write
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_iops_read_write: int | None
disk_m_bps_read_write
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.
disk_m_bps_read_write: int | None
disk_size_gb
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. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023.
disk_size_gb: int | None
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: int
managed_disk
The managed disk parameters.
managed_disk: _models.VirtualMachineScaleSetManagedDiskParameters | None
name
The disk name.
name: str | None
storage_fault_domain_alignment
"Aligned" and "BestEffortAligned".
storage_fault_domain_alignment: str | _models.StorageFaultDomainAlignmentType | None
write_accelerator_enabled
Specifies whether writeAccelerator should be enabled or disabled on the disk.
write_accelerator_enabled: bool | None