CapacityReservation Class

Definition

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
System.Object
CapacityReservation
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.

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