CapacityReservationGroupData Class
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.
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.
public class CapacityReservationGroupData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.CapacityReservationGroupData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.CapacityReservationGroupData>
type CapacityReservationGroupData = class
inherit TrackedResourceData
interface IJsonModel<CapacityReservationGroupData>
interface IPersistableModel<CapacityReservationGroupData>
Public Class CapacityReservationGroupData
Inherits TrackedResourceData
Implements IJsonModel(Of CapacityReservationGroupData), IPersistableModel(Of CapacityReservationGroupData)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| CapacityReservationGroupData(AzureLocation) |
Initializes a new instance of CapacityReservationGroupData. |
Properties
| Name | Description |
|---|---|
| AssociatedVirtualMachineResources |
A list of references to all virtual machines associated to the capacity reservation group. |
| CapacityReservationResources |
A list of all capacity reservation resource ids that belong to capacity reservation group. |
| CapacityReservations |
A list of all capacity reservation resource ids that belong to capacity reservation group. |
| Id |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. (Inherited from ResourceData) |
| InstanceView |
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 |
The geo-location where the resource lives. (Inherited from TrackedResourceData) |
| Name |
The name of the resource. (Inherited from ResourceData) |
| ReservationType |
Indicates the type of capacity reservation. Allowed values are 'Block' for block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group, 'Targeted' for reservations that enable a VM to consume capacity from an explicitly associated capacity reservation group and fall back to the publicly available capacity if the reservation is full, and 'Open' for reservations that a VM consumes when it is eligible from an implicitly associated capacity reservation group with the matching VM size and zone without associating that capacity reservation group and fall back to the publicly available capacity if the reservation is full. The reservation type is immutable and cannot be changed after the capacity reservation group is created. |
| ResourceType |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". (Inherited from ResourceData) |
| SharingSubscriptionResources |
Specifies an array of subscription resource IDs that capacity reservation group is shared with. Block Capacity Reservations does not support sharing across subscriptions. Note: Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details. |
| SystemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. (Inherited from ResourceData) |
| Tags |
Resource tags. (Inherited from TrackedResourceData) |
| VirtualMachinesAssociated |
A list of references to all virtual machines associated to the capacity reservation group. |
| Zones |
The availability zones. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<CapacityReservationGroupData>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<CapacityReservationGroupData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<CapacityReservationGroupData>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<CapacityReservationGroupData>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<CapacityReservationGroupData>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |