DataDisksToAttach Class
Describes the data disk to be attached.
Constructor
DataDisksToAttach(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
disk_id
|
ID of the managed data disk. Required. |
|
lun
|
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. If not specified, lun would be auto assigned. |
|
caching
|
str or
CachingTypes
Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.. Known values are: "None", "ReadOnly", and "ReadWrite". |
|
delete_option
|
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach. Known values are: "Delete" and "Detach". |
|
disk_encryption_set
|
Specifies the customer managed disk encryption set resource id for the managed disk. |
|
write_accelerator_enabled
|
Specifies whether writeAccelerator should be enabled or disabled on the disk. |
Attributes
caching
None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.. Known values are: "None", "ReadOnly", and "ReadWrite".
caching: str | _models.CachingTypes | None
delete_option
Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach. Known values are: "Delete" and "Detach".
delete_option: str | _models.DiskDeleteOptionTypes | None
disk_encryption_set
Specifies the customer managed disk encryption set resource id for the managed disk.
disk_encryption_set: _models.DiskEncryptionSetParameters | None
disk_id
ID of the managed data disk. Required.
disk_id: str
lun
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. If not specified, lun would be auto assigned.
lun: int | None
write_accelerator_enabled
Specifies whether writeAccelerator should be enabled or disabled on the disk.
write_accelerator_enabled: bool | None