Partager via


ImageDataDisk Class

Definition

Describes a data disk.

public class ImageDataDisk : Azure.ResourceManager.Compute.Models.ImageDisk, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.ImageDataDisk>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.ImageDataDisk>
type ImageDataDisk = class
    inherit ImageDisk
    interface IJsonModel<ImageDataDisk>
    interface IPersistableModel<ImageDataDisk>
Public Class ImageDataDisk
Inherits ImageDisk
Implements IJsonModel(Of ImageDataDisk), IPersistableModel(Of ImageDataDisk)
Inheritance
ImageDataDisk
Implements

Constructors

ImageDataDisk(Int32)

Initializes a new instance of ImageDataDisk.

Properties

BlobUri

The Virtual Hard Disk.

(Inherited from ImageDisk)
Caching

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

(Inherited from ImageDisk)
DiskEncryptionSetId

Gets or sets Id.

(Inherited from ImageDisk)
DiskSizeGB

Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB.

(Inherited from ImageDisk)
Lun

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

ManagedDiskId

Gets or sets Id.

(Inherited from ImageDisk)
SnapshotId

Gets or sets Id.

(Inherited from ImageDisk)
StorageAccountType

Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.

(Inherited from ImageDisk)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ImageDataDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ImageDataDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ImageDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from ImageDisk)
IJsonModel<ImageDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ImageDisk)
IPersistableModel<ImageDataDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImageDataDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ImageDataDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ImageDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ImageDisk)
IPersistableModel<ImageDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from ImageDisk)
IPersistableModel<ImageDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ImageDisk)

Applies to