CapacityReservationUtilization 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.
Represents the capacity reservation utilization in terms of resources allocated.
public class CapacityReservationUtilization : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.CapacityReservationUtilization>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.CapacityReservationUtilization>
type CapacityReservationUtilization = class
interface IJsonModel<CapacityReservationUtilization>
interface IPersistableModel<CapacityReservationUtilization>
Public Class CapacityReservationUtilization
Implements IJsonModel(Of CapacityReservationUtilization), IPersistableModel(Of CapacityReservationUtilization)
- Inheritance
-
CapacityReservationUtilization
- Implements
Properties
| Name | Description |
|---|---|
| CurrentCapacity |
The value provides the current capacity of the VM size which was reserved successfully and for which the customer is getting billed. Minimum api-version: 2022-08-01. |
| UsedReservedCountBySubscription |
For open capacity reservations, this provides a map of the used reserved capacity count keyed by the subscription id (a GUID) that is consuming the capacity, i.e. each entry maps a consuming subscription id to the count of reserved capacity it is currently using. This is populated only for open capacity reservations and is not reported for targeted and block capacity reservations, which instead report allocation through virtualMachinesAllocated. Minimum api-version: 2026-04-01. |
| VirtualMachinesAllocated |
A list of all virtual machines resource ids allocated against the capacity reservation. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<CapacityReservationUtilization>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<CapacityReservationUtilization>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<CapacityReservationUtilization>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<CapacityReservationUtilization>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<CapacityReservationUtilization>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |