Skip to main content

lots

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

Overview

Namelots
TypeResource
Idazure.consumption.lots

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource name.
eTagstringeTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
propertiesobjectThe lot properties.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
list_by_billing_accountSELECTbillingAccountIdLists 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.
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, customerIdLists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.

SELECT examples

Lists 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.

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