lots
Creates, updates, deletes, gets or lists a lots
resource.
Overview
Name | lots |
Type | Resource |
Id | azure.consumption.lots |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
eTag | string | eTag 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. |
properties | object | The lot properties. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_billing_account | SELECT | billingAccountId | 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. |
list_by_billing_profile | SELECT | billingAccountId, billingProfileId | Lists 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_customer | SELECT | billingAccountId, customerId | Lists 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 }}';