Package version:

Interface DataDisksToAttach

Describes the data disk to be attached.

interface DataDisksToAttach {
    caching?: CachingTypes;
    deleteOption?: string;
    diskEncryptionSet?: DiskEncryptionSetParameters;
    diskId: string;
    lun?: number;
    writeAcceleratorEnabled?: boolean;
}

Properties

caching?: CachingTypes

Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.

deleteOption?: string

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.

diskEncryptionSet?: DiskEncryptionSetParameters

Specifies the customer managed disk encryption set resource id for the managed disk.

diskId: string

ID of the managed data disk.

lun?: number

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.

writeAcceleratorEnabled?: boolean

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