Dela via


ComputeFleetVmssDataDisk Class

Definition

Describes a virtual machine scale set data disk.

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

Constructors

ComputeFleetVmssDataDisk(Int32, ComputeFleetDiskCreateOptionType)

Initializes a new instance of ComputeFleetVmssDataDisk.

Properties

Caching

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

CreateOption

The create option.

DeleteOption

Specifies whether data disk should be deleted or detached upon VMSS Flex deletion (This feature is available for VMSS with Flexible OrchestrationMode only).<br><br> Possible values: <br><br> Delete If this value is used, the data disk is deleted when the VMSS Flex VM is deleted.<br><br> Detach If this value is used, the data disk is retained after VMSS Flex VM is deleted.<br><br> The default value is set to Delete.

DiskIopsReadWrite

Specifies the Read-Write IOPS for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

DiskMbpsReadWrite

Specifies the bandwidth in MB per second for the managed disk. Should be used only when StorageAccountType is UltraSSD_LRS. If not specified, a default value would be assigned based on diskSizeGB.

DiskSizeGB

Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023.

IsWriteAcceleratorEnabled

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

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.

ManagedDisk

The managed disk parameters.

Name

The disk name.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ComputeFleetVmssDataDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ComputeFleetVmssDataDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ComputeFleetVmssDataDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ComputeFleetVmssDataDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ComputeFleetVmssDataDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to