CapacityReservationGroup Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Azure SDK for .NET