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

IWithVMSize.WithSize 方法

定义

重载

WithSize(VirtualMachineSizeTypes)

指定虚拟机的大小。

WithSize(String)

选择虚拟机的大小。

WithSize(VirtualMachineSizeTypes)

指定虚拟机的大小。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate WithSize (Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineSizeTypes size);
abstract member WithSize : Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineSizeTypes -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate
Public Function WithSize (size As VirtualMachineSizeTypes) As IWithCreate

参数

size
VirtualMachineSizeTypes

虚拟机可用大小列表中的大小。

返回

适用于

WithSize(String)

选择虚拟机的大小。

public Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate WithSize (string sizeName);
abstract member WithSize : string -> Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IWithCreate
Public Function WithSize (sizeName As String) As IWithCreate

参数

sizeName
String

虚拟机的大小名称(文本形式)。

返回

适用于