CapacityReservation 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.
Specifies information about the capacity reservation.
[Microsoft.Rest.Serialization.JsonTransformation]
public class CapacityReservation : Microsoft.Azure.Management.Compute.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type CapacityReservation = class
inherit Resource
Public Class CapacityReservation
Inherits Resource
- Inheritance
- Attributes
Constructors
CapacityReservation() |
Initializes a new instance of the CapacityReservation class. |
CapacityReservation(String, Sku, String, String, String, IDictionary<String, String>, String, IList<SubResourceReadOnly>, Nullable<DateTime>, String, CapacityReservationInstanceView, IList<String>) |
Initializes a new instance of the CapacityReservation class. |
CapacityReservation(String, Sku, String, String, String, IDictionary<String, String>, String, IList<SubResourceReadOnly>, Nullable<DateTime>, String, CapacityReservationInstanceView, Nullable<DateTime>, IList<String>) |
Initializes a new instance of the CapacityReservation class. |
CapacityReservation(String, Sku, String, String, String, IDictionary<String, String>, String, Nullable<Int32>, IList<SubResourceReadOnly>, Nullable<DateTime>, String, CapacityReservationInstanceView, Nullable<DateTime>, IList<String>) |
Initializes a new instance of the CapacityReservation class. |
Properties
Id |
Gets resource Id (Inherited from Resource) |
InstanceView |
Gets the Capacity reservation instance view. |
Location |
Gets or sets resource location (Inherited from Resource) |
Name |
Gets resource name (Inherited from Resource) |
PlatformFaultDomainCount |
Gets 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. |
ProvisioningState |
Gets the provisioning state, which only appears in the response. |
ProvisioningTime |
Gets the date time when the capacity reservation was last updated. |
ReservationId |
Gets a unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource. |
Sku |
Gets or sets 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. |
Tags |
Gets or sets resource tags (Inherited from Resource) |
TimeCreated |
Gets specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01. |
Type |
Gets resource type (Inherited from Resource) |
VirtualMachinesAssociated |
Gets a list of all virtual machine resource ids that are associated with the capacity reservation. |
Zones |
Gets or sets 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
Validate() |
Validate the object. |
Applies to
Azure SDK for .NET