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.

public class DataDisk : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.DataDisk>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.DataDisk>
type DataDisk = class
    interface IJsonModel<DataDisk>
    interface IPersistableModel<DataDisk>
Public Class DataDisk
Implements IJsonModel(Of DataDisk), IPersistableModel(Of DataDisk)
Inheritance
DataDisk
Implements

Constructors

DataDisk(Int32, Int32)

Initializes a new instance of DataDisk.

Properties

Caching

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

The initial disk size in gigabytes.

LogicalUnitNumber

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.

StorageAccountType

The storage Account type to be used for the data disk. If omitted, the default is "standard_lrs".

Explicit Interface Implementations

IJsonModel<DataDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DataDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DataDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to