共用方式為


VirtualMachineSize Class

Definition

Describes the properties of a VM size.

public class VirtualMachineSize
type VirtualMachineSize = class
Public Class VirtualMachineSize
Inheritance
VirtualMachineSize

Constructors

VirtualMachineSize()

Initializes a new instance of the VirtualMachineSize class.

VirtualMachineSize(String, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the VirtualMachineSize class.

Properties

MaxDataDiskCount

Gets or sets the maximum number of data disks that can be attached to the virtual machine size.

MemoryInMB

Gets or sets the amount of memory, in MB, supported by the virtual machine size.

Name

Gets or sets the name of the virtual machine size.

NumberOfCores

Gets or sets 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

Gets or sets the OS disk size, in MB, allowed by the virtual machine size.

ResourceDiskSizeInMB

Gets or sets the resource disk size, in MB, allowed by the virtual machine size.

Applies to