Compartir a través de


CapacityReservationData Class

Definition

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
CapacityReservationData
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)
Sku

SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. 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

Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from TrackedResourceData)

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.

Applies to