你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VirtualMachineScaleSetUpdateOSDisk Class

Definition

Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk.

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

Constructors

VirtualMachineScaleSetUpdateOSDisk()

Initializes a new instance of VirtualMachineScaleSetUpdateOSDisk.

Properties

Caching

The caching type.

DeleteOption

Specifies whether OS 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 OS disk is deleted when VMSS Flex VM is deleted.<br><br> Detach If this value is used, the OS disk is retained after VMSS Flex VM is deleted. <br><br> The default value is set to Delete. For an Ephemeral OS Disk, the default value is set to Delete. User cannot change the delete option for Ephemeral OS Disk.

DiffDiskSettings

Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.

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. <br><br> diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023.

ImageUri

Specifies the virtual hard disk's uri.

ManagedDisk

The managed disk parameters.

VhdContainers

The list of virtual hard disk container uris.

WriteAcceleratorEnabled

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachineScaleSetUpdateOSDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachineScaleSetUpdateOSDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineScaleSetUpdateOSDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineScaleSetUpdateOSDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachineScaleSetUpdateOSDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to