Skip to main content

reservation_orders

Creates, updates, deletes, gets or lists a reservation_orders resource.

Overview

Namereservation_orders
TypeResource
Idazure.reservations.reservation_orders

Fields

The following fields are returned by SELECT queries:

Get the details of the ReservationOrder.

NameDatatypeDescription
idstringIdentifier of the reservation
namestringName of the reservation
etaginteger (int32)
propertiesobjectProperties of a reservation order.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringType of resource. "Microsoft.Capacity/reservations"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectreservationOrderId$expandGet the details of the ReservationOrder.
listselectList of all the ReservationOrders that the user has access to in the current tenant.
calculateexecCalculate price for placing a ReservationOrder.
purchaseexecreservationOrderIdPurchase ReservationOrder and create resource under the specified URI.
change_directoryexecreservationOrderIdChange directory (tenant) of ReservationOrder and all Reservation under it to specified tenant id

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
reservationOrderIdstringOrder Id of the reservation
$expandstringMay be used to expand the planInformation.

SELECT examples

Get the details of the ReservationOrder.

SELECT
id,
name,
etag,
properties,
systemData,
type
FROM azure.reservations.reservation_orders
WHERE reservationOrderId = '{{ reservationOrderId }}' -- required
AND $expand = '{{ $expand }}'
;

Lifecycle Methods

Calculate price for placing a ReservationOrder.

EXEC azure.reservations.reservation_orders.calculate 
@@json=
'{
"sku": "{{ sku }}",
"location": "{{ location }}",
"properties": "{{ properties }}"
}'
;