CapacityReservationGroup Constructors

Definition

Overloads

CapacityReservationGroup()

Initializes a new instance of the CapacityReservationGroup class.

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

Initializes a new instance of the CapacityReservationGroup class.

CapacityReservationGroup()

Initializes a new instance of the CapacityReservationGroup class.

public CapacityReservationGroup ();
Public Sub New ()

Applies to

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

Initializes a new instance of the CapacityReservationGroup class.

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)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

capacityReservations
IList<SubResourceReadOnly>

A list of all capacity reservation resource ids that belong to capacity reservation group.

virtualMachinesAssociated
IList<SubResourceReadOnly>

A list of references to all virtual machines associated to the capacity reservation group.

instanceView
CapacityReservationGroupInstanceView

The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.

zones
IList<String>

Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones.

Applies to