CapacityReservationData 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.
A class representing the CapacityReservation data model. Specifies information about the capacity reservation.
public class CapacityReservationData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.CapacityReservationData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.CapacityReservationData>
type CapacityReservationData = class
inherit TrackedResourceData
interface IJsonModel<CapacityReservationData>
interface IPersistableModel<CapacityReservationData>
Public Class CapacityReservationData
Inherits TrackedResourceData
Implements IJsonModel(Of CapacityReservationData), IPersistableModel(Of CapacityReservationData)
- Inheritance
- Implements
Constructors
| CapacityReservationData(AzureLocation, ComputeSku) |
Initializes a new instance of CapacityReservationData. |
Properties
| Id |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. (Inherited from ResourceData) |
| InstanceView |
The Capacity reservation instance view. |
| Location |
The geo-___location where the resource lives. (Inherited from TrackedResourceData) |
| Name |
The name of the resource. (Inherited from ResourceData) |
| PlatformFaultDomainCount |
Specifies the value of fault ___domain count that Capacity Reservation supports for requested VM size. Note: The fault ___domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01. |
| ProvisioningOn |
The date time when the capacity reservation was last updated. |
| ProvisioningState |
The provisioning state, which only appears in the response. |
| ReservationId |
A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. |
| ResourceType |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". (Inherited from ResourceData) |
| ScheduleProfile |
Defines the schedule for Block-type capacity reservations. Specifies the schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. This property is required and only supported when the capacity reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please refer to https://aka.ms/blockcapacityreservation for more details. |
| Sku |
SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. For Block capacity reservations, sku.capacity can only accept values 1, 2, 4, 8, 16, 32, 64. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. When 'CapacityReservationSupported' is true, the SKU capability also specifies the 'SupportedCapacityReservationTypes', which lists the types of capacity reservations (such as Targeted or Block) that the SKU supports. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values. |
| SystemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. (Inherited from ResourceData) |
| Tags |
Resource tags. (Inherited from TrackedResourceData) |
| TimeCreated |
Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. |
| VirtualMachinesAssociated |
A list of all virtual machine resource ids that are associated with the capacity reservation. |
| Zones |
The availability zones. |
Methods
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
| IJsonModel<CapacityReservationData>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<CapacityReservationData>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<CapacityReservationData>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<CapacityReservationData>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<CapacityReservationData>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |