CapacityReservationGroup Class

Specifies information about the capacity reservation group that the capacity reservations should be assigned to. <br>``<br> 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.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2021_07_01.models._models_py3.Resource
CapacityReservationGroup

Constructor

CapacityReservationGroup(*, location: str, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

zones
list[str]
Required

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.

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

capacity_reservations
list[SubResourceReadOnly]

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

virtual_machines_associated
list[SubResourceReadOnly]

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

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