DataDisk class

Definition

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

DataDisk(*, lun: int, disk_size_gb: int, caching=None, storage_account_type=None, **kwargs) -> None
Inheritance
builtins.object
DataDisk

Parameters

lun
int

Required. The logical unit number. The lun is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct lun.

caching
str or CachingType

The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite'

disk_size_gb
int

Required. The initial disk size in gigabytes.

storage_account_type
str or StorageAccountType

The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs". Possible values include: 'StandardLRS', 'PremiumLRS'