다음을 통해 공유


VirtualMachineHardwareProfile Class

Definition

Specifies the hardware settings for the virtual machine.

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

Constructors

VirtualMachineHardwareProfile()

Initializes a new instance of VirtualMachineHardwareProfile.

Properties

VmSize

Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: List all available virtual machine sizes in an availability set, List all available virtual machine sizes in a region, List all available virtual machine sizes for resizing. For more information about virtual machine sizes, see Sizes for virtual machines. The available VM sizes depend on region and availability set.

VmSizeProperties

Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in VM Customization for more details.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<VirtualMachineHardwareProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<VirtualMachineHardwareProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VirtualMachineHardwareProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VirtualMachineHardwareProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<VirtualMachineHardwareProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to