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

CapacityReservationGroup 构造函数

定义

重载

CapacityReservationGroup()

初始化 CapacityReservationGroup 类的新实例。

CapacityReservationGroup(String, String, String, String, IDictionary<String, String>, IList<SubResourceReadOnly>, IList<SubResourceReadOnly>, CapacityReservationGroupInstanceView, IList<String>)

初始化 CapacityReservationGroup 类的新实例。

CapacityReservationGroup()

初始化 CapacityReservationGroup 类的新实例。

public CapacityReservationGroup ();
Public Sub New ()

适用于

CapacityReservationGroup(String, String, String, String, IDictionary<String, String>, IList<SubResourceReadOnly>, IList<SubResourceReadOnly>, CapacityReservationGroupInstanceView, IList<String>)

初始化 CapacityReservationGroup 类的新实例。

public CapacityReservationGroup (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> capacityReservations = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> virtualMachinesAssociated = default, Microsoft.Azure.Management.Compute.Models.CapacityReservationGroupInstanceView instanceView = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Models.SubResourceReadOnly> * Microsoft.Azure.Management.Compute.Models.CapacityReservationGroupInstanceView * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional capacityReservations As IList(Of SubResourceReadOnly) = Nothing, Optional virtualMachinesAssociated As IList(Of SubResourceReadOnly) = Nothing, Optional instanceView As CapacityReservationGroupInstanceView = Nothing, Optional zones As IList(Of String) = Nothing)

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

capacityReservations
IList<SubResourceReadOnly>

属于容量预留组的所有容量预留资源 ID 的列表。

virtualMachinesAssociated
IList<SubResourceReadOnly>

对与容量预留组关联的所有虚拟机的引用列表。

instanceView
CapacityReservationGroupInstanceView

容量预留组实例视图,其中包含属于容量预留组的所有容量预留的实例视图列表。

zones
IList<String>

可用性区域用于此容量预留组。 只能在创建期间分配区域。 如果未提供,则组仅支持区域中的区域资源。 如果提供,则强制组中的每个容量预留位于其中一个区域中。

适用于