Skip to main content

events

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

Overview

Nameevents
TypeResource
Idazure.consumption.events

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 event properties.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
list_by_billing_accountSELECTbillingAccountIdLists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.
list_by_billing_profileSELECTbillingAccountId, billingProfileId, endDate, startDateLists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.

SELECT examples

Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or a billing profile for a given start and end date.

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