Sdílet prostřednictvím


BatchVmDataDisk 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 BatchVmDataDisk : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Batch.Models.BatchVmDataDisk>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Batch.Models.BatchVmDataDisk>
public class BatchVmDataDisk
type BatchVmDataDisk = class
    interface IJsonModel<BatchVmDataDisk>
    interface IPersistableModel<BatchVmDataDisk>
type BatchVmDataDisk = class
Public Class BatchVmDataDisk
Implements IJsonModel(Of BatchVmDataDisk), IPersistableModel(Of BatchVmDataDisk)
Public Class BatchVmDataDisk
Inheritance
BatchVmDataDisk
Implements

Constructors

BatchVmDataDisk(Int32, Int32)

Initializes a new instance of BatchVmDataDisk.

Properties

Caching

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

DiskSizeInGB

The initial disk size in GB when creating new data disk.

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.

StorageAccountType

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.

Explicit Interface Implementations

IJsonModel<BatchVmDataDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchVmDataDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchVmDataDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchVmDataDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchVmDataDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to