ภาษา

CapacityReservationType Struct

Definition

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. Future capacity reservations can be created in 'Targeted' or 'Open' capacity reservation groups. The reservation type is immutable and cannot be changed after the capacity reservation group is created.

public readonly struct CapacityReservationType : IEquatable<Azure.ResourceManager.Compute.Models.CapacityReservationType>
type CapacityReservationType = struct
Public Structure CapacityReservationType
Implements IEquatable(Of CapacityReservationType)
Inheritance
CapacityReservationType
Implements

Constructors

Name Description
CapacityReservationType(String)

Initializes a new instance of CapacityReservationType.

Properties

Name Description
Block

Block capacity reservations that enable a VM to consume capacity only from this capacity block when it is associated using a capacity reservation group.

Open

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. Minimum api-version: 2026-04-01.

Targeted

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.

Methods

Name Description
Equals(CapacityReservationType)

Indicates whether the current object is equal to another object of the same type.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(CapacityReservationType, CapacityReservationType)

Determines if two CapacityReservationType values are the same.

Implicit(String to CapacityReservationType)

Converts a string to a CapacityReservationType.

Implicit(String to Nullable<CapacityReservationType>)
Inequality(CapacityReservationType, CapacityReservationType)

Determines if two CapacityReservationType values are not the same.

Applies to