Share via


CapacityReservationGroup Class

Definition

Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group.

[Microsoft.Rest.Serialization.JsonTransformation]
public class CapacityReservationGroup : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type CapacityReservationGroup = class
    inherit Resource
Public Class CapacityReservationGroup
Inherits Resource
Inheritance
CapacityReservationGroup
Attributes

Constructors

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.

Properties

CapacityReservations

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

Id

Gets resource Id

(Inherited from Resource)
InstanceView

Gets 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.

Location

Gets or sets resource location

(Inherited from Resource)
Name

Gets resource name

(Inherited from Resource)
Tags

Gets or sets resource tags

(Inherited from Resource)
Type

Gets resource type

(Inherited from Resource)
VirtualMachinesAssociated

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

Zones

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

Methods

Validate()

Validate the object.

Applies to