Skip to main content

reservation_transactions

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

Overview

Namereservation_transactions
TypeResource
Idazure.consumption.reservation_transactions

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource name.
propertiesobjectThe properties of a modern reservation transaction.
tagsarrayResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
listSELECTbillingAccountIdList of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.
list_by_billing_profileSELECTbillingAccountId, billingProfileIdList of transactions for reserved instances on billing profile scope. The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.

SELECT examples

List of transactions for reserved instances on billing account scope. Note: The refund transactions are posted along with its purchase transaction (i.e. in the purchase billing month). For example, The refund is requested in May 2021. This refund transaction will have event date as May 2021 but the billing month as April 2020 when the reservation purchase was made. Note: ARM has a payload size limit of 12MB, so currently callers get 400 when the response size exceeds the ARM limit. In such cases, API call should be made with smaller date ranges.

SELECT
id,
name,
properties,
tags,
type
FROM azure.consumption.reservation_transactions
WHERE billingAccountId = '{{ billingAccountId }}';