Partilhar via


BatchOSDisk Class

Definition

Settings for the operating system disk of the virtual machine.

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

Constructors

BatchOSDisk()

Initializes a new instance of BatchOSDisk.

Properties

Caching

The type of caching to enable for the disk.

DiskSizeGB

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

EphemeralOSDiskPlacement

This property can be used by user in the request to choose which location the operating system should be in. e.g., cache disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer to Ephemeral OS disk size requirements for Windows VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements.

IsWriteAcceleratorEnabled

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

ManagedDisk

Gets or sets the managed disk.

ManagedDiskStorageAccountType

The storage account type for use in creating data disks or OS disk.

Explicit Interface Implementations

IJsonModel<BatchOSDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchOSDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchOSDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchOSDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchOSDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to