你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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 server.
Constructor
CapacityReservationGroup(*, location: str, tags: Dict[str, str] | None = None, zones: List[str] | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
location
|
Resource location. Required. |
tags
|
Resource tags. Default value: None
|
zones
|
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. Default value: None
|
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource name. |
type
|
Resource type. |
location
|
Resource location. Required. |
tags
|
Resource tags. |
zones
|
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. |
capacity_reservations
|
A list of all capacity reservation resource ids that belong to capacity reservation group. |
virtual_machines_associated
|
A list of references to all virtual machines associated to the capacity reservation group. |
instance_view
|
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. |