DataDisk Class
Settings which will be used by the data disks associated to Compute Nodes in the Pool. When using attached data disks, you need to mount and format the disks from within a VM to use them.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.batch._serialization.ModelDataDisk
Constructor
DataDisk(*, lun: int, disk_size_gb: int, caching: str | _models.CachingType | None = None, storage_account_type: str | _models.StorageAccountType | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
lun
|
The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive. Required. |
caching
|
str or
CachingType
Values are: none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write. The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. # pylint: disable=line-too-long Known values are: "None", "ReadOnly", and "ReadWrite". |
disk_size_gb
|
The initial disk size in GB when creating new data disk. Required. |
storage_account_type
|
If omitted, the default is "Standard_LRS". Values are: Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage. Known values are: "Standard_LRS", "Premium_LRS", and "StandardSSD_LRS". |
Variables
Name | Description |
---|---|
lun
|
The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun. The value must be between 0 and 63, inclusive. Required. |
caching
|
str or
CachingType
Values are: none - The caching mode for the disk is not enabled. readOnly - The caching mode for the disk is read only. readWrite - The caching mode for the disk is read and write. The default value for caching is none. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Known values are: "None", "ReadOnly", and "ReadWrite". |
disk_size_gb
|
The initial disk size in GB when creating new data disk. Required. |
storage_account_type
|
If omitted, the default is "Standard_LRS". Values are: Standard_LRS - The data disk should use standard locally redundant storage. Premium_LRS - The data disk should use premium locally redundant storage. Known values are: "Standard_LRS", "Premium_LRS", and "StandardSSD_LRS". |
Azure SDK for Python