ComputeCapacityReservationType Struct
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.
Specifies which type of capacity reservation the virtual machine will consume capacity from if eligible or whether it is explicitly opted out from being associated and consuming capacity from any reserved capacity available in the subscription. Minimum api-version: 2026-04-01.
public readonly struct ComputeCapacityReservationType : IEquatable<Azure.ResourceManager.Compute.Models.ComputeCapacityReservationType>
type ComputeCapacityReservationType = struct
Public Structure ComputeCapacityReservationType
Implements IEquatable(Of ComputeCapacityReservationType)
- Inheritance
-
ComputeCapacityReservationType
- Implements
Constructors
| Name | Description |
|---|---|
| ComputeCapacityReservationType(String) |
Initializes a new instance of ComputeCapacityReservationType. |
Properties
| Name | Description |
|---|---|
| Block |
The virtual machine consumes capacity from a specific matching capacity reservation when associated with a capacity reservation group resource of type block, and will hit capacity failures if there is no available capacity in the block reservation. |
| Disabled |
The virtual machine has capacity reservation assignment disabled and will not be allowed to implicitly or explicitly associate with any type of capacity reservation. |
| NotEligible |
The virtual machine is not eligible to be implicitly associated with an open capacity reservation and is not explicitly associated with any capacity reservation group, so it will consume capacity from the publicly available capacity. |
| Open |
The virtual machine if eligible will implicitly associate and consume any available capacity from a matching open capacity reservation created or shared in the subscription. Note: The VM should not be explicitly associated with the open capacity reservation group resource containing the matching reservation. |
| Targeted |
The virtual machine will consume capacity from a specific matching capacity reservation when associated with a capacity reservation group resource of type targeted, but can fall back to consume capacity from the publicly available capacity if there is no capacity available in the targeted reservation. |
Methods
| Name | Description |
|---|---|
| Equals(ComputeCapacityReservationType) |
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(ComputeCapacityReservationType, ComputeCapacityReservationType) |
Determines if two ComputeCapacityReservationType values are the same. |
| Implicit(String to ComputeCapacityReservationType) |
Converts a string to a ComputeCapacityReservationType. |
| Implicit(String to Nullable<ComputeCapacityReservationType>) | |
| Inequality(ComputeCapacityReservationType, ComputeCapacityReservationType) |
Determines if two ComputeCapacityReservationType values are not the same. |