Skip to main content

vw_balances

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

Overview

Namevw_balances
TypeView
Idazure.consumption.vw_balances

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
type as type,
JSON_EXTRACT(properties, '$.currency') as "currency",
JSON_EXTRACT(properties, '$.beginningBalance') as "beginning_balance",
JSON_EXTRACT(properties, '$.endingBalance') as "ending_balance",
JSON_EXTRACT(properties, '$.newPurchases') as "new_purchases",
JSON_EXTRACT(properties, '$.adjustments') as "adjustments",
JSON_EXTRACT(properties, '$.utilized') as "utilized",
JSON_EXTRACT(properties, '$.serviceOverage') as "service_overage",
JSON_EXTRACT(properties, '$.chargesBilledSeparately') as "charges_billed_separately",
JSON_EXTRACT(properties, '$.totalOverage') as "total_overage",
JSON_EXTRACT(properties, '$.totalUsage') as "total_usage",
JSON_EXTRACT(properties, '$.azureMarketplaceServiceCharges') as "azure_marketplace_service_charges",
JSON_EXTRACT(properties, '$.billingFrequency') as "billing_frequency",
JSON_EXTRACT(properties, '$.priceHidden') as "price_hidden",
JSON_EXTRACT(properties, '$.overageRefund') as "overage_refund",
JSON_EXTRACT(properties, '$.newPurchasesDetails') as "new_purchases_details",
JSON_EXTRACT(properties, '$.adjustmentDetails') as "adjustment_details",
billingAccountId
FROM azure.consumption.balances
WHERE billingAccountId = 'replace-me';