Skip to main content

balances

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

Overview

Namebalances
TypeResource
Idazure.consumption.balances

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
namestringThe name of the resource
propertiesobjectThe properties of the balance. (title: Balance properties)
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_by_billing_accountselectbillingAccountIdGets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

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
billingAccountIdstringBillingAccount ID

SELECT examples

Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

SELECT
id,
name,
properties,
type
FROM azure.consumption.balances
WHERE billingAccountId = '{{ billingAccountId }}' -- required
;