CapacityReservation Class

Specifies information about the capacity reservation.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.compute.v2021_04_01.models._models_py3.Resource
CapacityReservation

Constructor

CapacityReservation(*, location: str, sku: azure.mgmt.compute.v2021_04_01.models._models_py3.Sku, tags: Optional[Dict[str, str]] = None, zones: Optional[List[str]] = None, **kwargs)

Parameters

location
str
Required

Required. Resource location.

tags
dict[str, str]
Required

A set of tags. Resource tags.

sku
Sku
Required

Required. 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.

zones
list[str]
Required

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.

Variables

id
str

Resource Id.

name
str

Resource name.

type
str

Resource type.

reservation_id
str

A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.

virtual_machines_associated
list[SubResourceReadOnly]

A list of all virtual machine resource ids that are associated with the capacity reservation.

provisioning_time
datetime

The date time when the capacity reservation was last updated.

provisioning_state
str

The provisioning state, which only appears in the response.

instance_view
CapacityReservationInstanceView

The Capacity reservation instance view.