Skip to content

feat: add azure reservation related tables#985

Open
jmapro wants to merge 1 commit into
turbot:mainfrom
jmapro:feat/add-azure-reservation
Open

feat: add azure reservation related tables#985
jmapro wants to merge 1 commit into
turbot:mainfrom
jmapro:feat/add-azure-reservation

Conversation

@jmapro
Copy link
Copy Markdown

@jmapro jmapro commented Apr 21, 2026

Integration test logs

Logs
No unit test due to cost involved with reservations

Example query results

Results

Query on table azure_capacity_reservation_order

steampipe query "select
  md5(name) as name,
  md5(id) as id,
  md5(display_name) as display_name,
  provisioning_state,
  billing_plan,
  term,
  original_quantity,
  created_date_time
from
  azure_capacity_reservation_order;"
+----------------------------------+----------------------------------+----------------------------------+--------------------+--------------+------+-------------------+----------------------+
| name                             | id                               | display_name                     | provisioning_state | billing_plan | term | original_quantity | created_date_time    |
+----------------------------------+----------------------------------+----------------------------------+--------------------+--------------+------+-------------------+----------------------+
| 95fbc235a59e14ed6a4362fd6212385b | 8c4d7fdb4f49c278b3ffaf47898f4d9d | afcff449e783a1afce80c011648b2a37 | Succeeded          | Monthly      | P3Y  | 2                 | 2026-01-12T08:08:47Z |
| a2ccff231cffd247736996b6c20d7d7b | 1f731103f06be3440f4cf89f392ddd99 | 684c9d1e7790f8e0d4a12ba438efeb00 | Succeeded          | Monthly      | P3Y  | 1                 | 2026-01-12T08:08:38Z |
| f3d9470a6f05ef403a7e7f5ff083d8ba | 4b6d9dfd2e44ea91cbc4feb42395ecf5 | ae9ebd72678b436293d29a895f71c42c | Succeeded          | Monthly      | P3Y  | 5                 | 2026-01-12T08:08:26Z |
| f4ad120c1f200dd7cb72a30be460207c | 45f63471fa6d641d02522c3eba32b2a4 | a0c6a889fd44a35f6dfdc9d9bb701cb6 | Succeeded          | Monthly      | P3Y  | 2                 | 2026-01-12T08:08:22Z |
| 9240c2f8506b98e8ea622a27a5e6da8d | 394454c0d63af65322dfeafa8028b2ff | 898c661243833101c14a53403776ed21 | Succeeded          | Monthly      | P3Y  | 2                 | 2026-01-12T08:08:22Z |
+----------------------------------+----------------------------------+----------------------------------+--------------------+--------------+------+-------------------+----------------------+

Query on table azure_capacity_reservation

 steampipe query "select
  md5(name),
  md5(reservation_order_id),
  md5(reservation_id),
  md5(display_name),
  provisioning_state,
  sku_name,
  quantity,
  region
from
 azure_capacity_reservation;"
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+--------------------+------------------+----------+---------------+
| md5                              | md5                              | md5                              | md5                              | provisioning_state | sku_name         | quantity | region        |
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+--------------------+------------------+----------+---------------+
| eb7a46b2b062769801033a848203b1a8 | a2ccff231cffd247736996b6c20d7d7b | 6779f944cd6df3887f8c2ae3e921e3d1 | 684c9d1e7790f8e0d4a12ba438efeb00 | Succeeded          | Standard_D4ds_v5 | 1        | francecentral |
| 4d950bbae9f4906d176a33619b32dbeb | f4ad120c1f200dd7cb72a30be460207c | 12496a6ed85cad9320b5e7a7f219dd41 | a0c6a889fd44a35f6dfdc9d9bb701cb6 | Succeeded          | Standard_D8ds_v5 | 2        | francecentral |
| c906956ff48951c8b4c0d4af23057f7f | 9240c2f8506b98e8ea622a27a5e6da8d | 0da4cb63fad4908031f71edab6c1ce6a | 898c661243833101c14a53403776ed21 | Succeeded          | Standard_D2s_v5  | 2        | francecentral |
| 02dad3b59cd07af416e7553a8d003594 | 95fbc235a59e14ed6a4362fd6212385b | c044197f557b9d25d280f22e47eb01c5 | afcff449e783a1afce80c011648b2a37 | Succeeded          | Standard_D2as_v5 | 2        | francecentral |
| 1edc7a465aca20afd3d5620029b8ea4e | f3d9470a6f05ef403a7e7f5ff083d8ba | 75d01a0968aa4bf823df134667870a8e | ae9ebd72678b436293d29a895f71c42c | Succeeded          | Standard_B2s_v2  | 5        | francecentral |
+----------------------------------+----------------------------------+----------------------------------+----------------------------------+--------------------+------------------+----------+---------------+

Closes #986

azure_capacity_reservation_order tables

* Add list/get support for Azure Capacity Reservations via
  armreservations SDK
* Add list/get support for Azure Capacity Reservation Orders
* Handle malformed Azure API responses for empty reservation lists
* Include docs with SQL examples for common use cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add table azure_capacity_reservation

1 participant