Share via


VirtualMachineSize Class

Definition

Describes the properties of a VM size.

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

Properties

MaxDataDiskCount

The maximum number of data disks that can be attached to the virtual machine size.

MemoryInMB

The amount of memory, in MB, supported by the virtual machine size.

Name

The name of the virtual machine size.

NumberOfCores

The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM uses. For accurate vCPU count, please refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list.

OSDiskSizeInMB

The OS disk size, in MB, allowed by the virtual machine size.

ResourceDiskSizeInMB

The resource disk size, in MB, allowed by the virtual machine size.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachineSize>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachineSize>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineSize>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineSize>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachineSize>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to