Order Azure Reserved Instance / Savings Plan
order_azure_reservationOrders Azure Reserved Instances or Savings Plans via the ALSO portal API, validating required fields in a dry run before placing the chargeable commitment order.
Instructions
WRITE (cost!): orders an Azure Reserved Instance or Savings Plan (services with remote pricing fields, which the Simple API create_subscription cannot order). Uses the ALSO web portal API (undocumented by ALSO, same login). Default confirmOrder=false = dry run: builds the exact portal payload, applies the form rules (Ordertype Recommended hides Product/Region; Scope Shared hides ScopedSubscriptions), checks mandatory fields and runs ALSO's order validation. Nothing is ordered. confirmOrder=true places the real order (1 or 3 year commitment) — only after the user explicitly confirmed product, SKU, quantity, term and price. Get field values first with get_remote_enums (ProductCatalogue → ProductSegment → Ordertype → SKU; Ownerpermissions optional). Pass the company Account ID; the Azure Plan subscription and Microsoft tenant are resolved automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parentAccountId": "<parentAccountId>",
"serviceName": "<serviceName>",
"fields": "<fields>"
},
"name": "order_azure_reservation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field name → value, e.g. {"ProductCatalogue":"Azure Reservations","ProductSegment":"AzureReservationsVM","Ordertype":"Recommended","Lookbackperioddays":"30 days","SKU":"<exact value from get_remote_enums>","QuantityVcores":1,"ReservationName":"MyReservation"} | |
| serviceName | Yes | Technical product name, e.g. 123456_AzureReservedInstanceforAzurePlanMonthlyBilled_12345 | |
| confirmOrder | No | false (default) = dry run, nothing ordered. true = place the real, chargeable order. | |
| parentAccountId | Yes | Company Account ID (or the Azure Plan subscription ID) | |
| purchaseOrderNumber | No | Optional own purchase order number (billing reports) |