CapacityReservationProperties Class

Properties of the Capacity reservation.

Constructor

CapacityReservationProperties(*args: Any, **kwargs: Any)

Variables

Name Description
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.

platform_fault_domain_count
int

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.

virtual_machines_associated

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

provisioning_time

The date time when the capacity reservation was last updated.

provisioning_state
str

The provisioning state, which only appears in the response.

instance_view

The Capacity reservation instance view.

time_created

Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.

schedule_profile

Defines the schedule for Block-type capacity reservations. Specifies the schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. This property is required and only supported when the capacity reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please refer to https://aka.ms/blockcapacityreservation for more details.

Attributes

instance_view

The Capacity reservation instance view.

instance_view: _models.CapacityReservationInstanceView | None

platform_fault_domain_count

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.

platform_fault_domain_count: int | None

provisioning_state

The provisioning state, which only appears in the response.

provisioning_state: str | None

provisioning_time

The date time when the capacity reservation was last updated.

provisioning_time: datetime | None

reservation_id

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

reservation_id: str | None

schedule_profile

Defines the schedule for Block-type capacity reservations. Specifies the schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. This property is required and only supported when the capacity reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please refer to https://aka.ms/blockcapacityreservation for more details.

schedule_profile: _models.ScheduleProfile | None

time_created

Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.

time_created: datetime | None

virtual_machines_associated

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

virtual_machines_associated: list['_models.SubResourceReadOnly'] | None