Share via


ComputeBatchModelFactory.DataDisk Method

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.

public static Azure.Compute.Batch.DataDisk DataDisk(int logicalUnitNumber = 0, Azure.Compute.Batch.CachingType? caching = default, int diskSizeGb = 0, Azure.Compute.Batch.ManagedDisk managedDisk = default);
static member DataDisk : int * Nullable<Azure.Compute.Batch.CachingType> * int * Azure.Compute.Batch.ManagedDisk -> Azure.Compute.Batch.DataDisk
Public Shared Function DataDisk (Optional logicalUnitNumber As Integer = 0, Optional caching As Nullable(Of CachingType) = Nothing, Optional diskSizeGb As Integer = 0, Optional managedDisk As ManagedDisk = Nothing) As DataDisk

Parameters

logicalUnitNumber
Int32

The logical unit number. The logicalUnitNumber is used to uniquely identify each data disk. If attaching multiple disks, each should have a distinct logicalUnitNumber. The value must be between 0 and 63, inclusive.

caching
Nullable<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/.

diskSizeGb
Int32

The initial disk size in gigabytes.

managedDisk
ManagedDisk

The managed disk parameters.

Returns

A new DataDisk instance for mocking.

Applies to