ArmComputeModelFactory.CapacityReservationUtilization Method
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 static Azure.ResourceManager.Compute.Models.CapacityReservationUtilization CapacityReservationUtilization(int? currentCapacity, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> virtualMachinesAllocated, System.Collections.Generic.IReadOnlyDictionary<string,int> usedReservedCountBySubscription);
static member CapacityReservationUtilization : Nullable<int> * seq<Azure.ResourceManager.Resources.Models.SubResource> * System.Collections.Generic.IReadOnlyDictionary<string, int> -> Azure.ResourceManager.Compute.Models.CapacityReservationUtilization
Public Shared Function CapacityReservationUtilization (currentCapacity As Nullable(Of Integer), virtualMachinesAllocated As IEnumerable(Of SubResource), usedReservedCountBySubscription As IReadOnlyDictionary(Of String, Integer)) As CapacityReservationUtilization
Parameters
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.
- virtualMachinesAllocated
- IEnumerable<SubResource>
A list of all virtual machines resource ids allocated against the capacity reservation.
- usedReservedCountBySubscription
- IReadOnlyDictionary<String,Int32>
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.
Returns
A new CapacityReservationUtilization instance for mocking.