Skip to main content

lots

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

Overview

Namelots
TypeResource
Idazure.consumption.lots

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
propertiesobjectThe lot properties. (title: Lot summary properties)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_billing_profileselectbillingAccountId, billingProfileIdLists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts.
list_by_customerselectbillingAccountId, customerId$filterLists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.
list_by_billing_accountselectbillingAccountId$filterLists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts.

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
billingProfileIdstringAzure Billing Profile ID.
customerIdstringCustomer ID
$filterstringMay be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:).

SELECT examples

Lists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts.

SELECT
properties
FROM azure.consumption.lots
WHERE billingAccountId = '{{ billingAccountId }}' -- required
AND billingProfileId = '{{ billingProfileId }}' -- required
;