LegacyUsageDetail interface
Legacy usage detail.
- Extends
Properties
| account |
Account Name. |
| account |
Account Owner Id. |
| additional |
Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied. |
| benefit |
Unique identifier for the applicable benefit. |
| benefit |
Name of the applicable benefit. |
| billing |
Billing Account identifier. |
| billing |
Billing Account Name. |
| billing |
Billing Currency. |
| billing |
The billing period end date. |
| billing |
The billing period start date. |
| billing |
Billing Profile identifier. |
| billing |
Billing Profile Name. |
| charge |
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund. |
| consumed |
Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage. |
| cost | The amount of cost before tax. |
| cost |
The cost center of this department if it is a department and a cost center is provided. |
| date | Date for the usage record. |
| effective |
Effective Price that's charged for the usage. |
| frequency | Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used. |
| invoice |
Invoice Section Name. |
| is |
Is Azure Credit Eligible. |
| kind | Specifies the kind of usage details. |
| meter |
The details about the meter. By default this is not populated, unless it's specified in $expand. |
| meter |
The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName. |
| offer |
Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P. |
| part |
Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace. |
| pay |
Retail price for the resource. |
| plan |
Plan Name. |
| pricing |
Identifier that indicates how the meter is priced. |
| product | Product name for the consumed service or purchase. Not available for Marketplace. |
| product |
Product Order Id. For reservations this is the Reservation Order ID. |
| product |
Product Order Name. For reservations this is the SKU that was purchased. |
| publisher |
Publisher Name. |
| publisher |
Publisher Type. |
| quantity | The usage quantity. |
| reservation |
ARM resource id of the reservation. Only applies to records relevant to reservations. |
| reservation |
User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations. |
| resource |
Resource Group Name. |
| resource |
Unique identifier of the Azure Resource Manager usage detail resource. |
| resource |
Resource Location. |
| resource |
Resource Name. |
| service |
Service-specific metadata. |
| service |
Legacy field with optional service-specific metadata. |
| subscription |
Subscription guid. |
| subscription |
Subscription name. |
| term | Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation. |
| unit |
Unit Price is the price applicable to you. (your EA or other contract price). |
Inherited Properties
| etag | The etag for the resource. |
| id | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
| name | The name of the resource |
| system |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
| tags | Resource tags. |
| type | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Property Details
accountName
Account Name.
accountName?: string
Property Value
string
accountOwnerId
Account Owner Id.
accountOwnerId?: string
Property Value
string
additionalInfo
Additional details of this usage item. By default this is not populated, unless it's specified in $expand. Use this field to get usage line item specific details such as the actual VM Size (ServiceType) or the ratio in which the reservation discount is applied.
additionalInfo?: string
Property Value
string
benefitId
Unique identifier for the applicable benefit.
benefitId?: string
Property Value
string
benefitName
Name of the applicable benefit.
benefitName?: string
Property Value
string
billingAccountId
Billing Account identifier.
billingAccountId?: string
Property Value
string
billingAccountName
Billing Account Name.
billingAccountName?: string
Property Value
string
billingCurrency
Billing Currency.
billingCurrency?: string
Property Value
string
billingPeriodEndDate
The billing period end date.
billingPeriodEndDate?: Date
Property Value
Date
billingPeriodStartDate
The billing period start date.
billingPeriodStartDate?: Date
Property Value
Date
billingProfileId
Billing Profile identifier.
billingProfileId?: string
Property Value
string
billingProfileName
Billing Profile Name.
billingProfileName?: string
Property Value
string
chargeType
Indicates a charge represents credits, usage, a Marketplace purchase, a reservation fee, or a refund.
chargeType?: string
Property Value
string
consumedService
Consumed service name. Name of the azure resource provider that emits the usage or was purchased. This value is not provided for marketplace usage.
consumedService?: string
Property Value
string
cost
The amount of cost before tax.
cost?: number
Property Value
number
costCenter
The cost center of this department if it is a department and a cost center is provided.
costCenter?: string
Property Value
string
date
Date for the usage record.
date?: Date
Property Value
Date
effectivePrice
Effective Price that's charged for the usage.
effectivePrice?: number
Property Value
number
frequency
Indicates how frequently this charge will occur. OneTime for purchases which only happen once, Monthly for fees which recur every month, and UsageBased for charges based on how much a service is used.
frequency?: string
Property Value
string
invoiceSection
Invoice Section Name.
invoiceSection?: string
Property Value
string
isAzureCreditEligible
Is Azure Credit Eligible.
isAzureCreditEligible?: boolean
Property Value
boolean
kind
Specifies the kind of usage details.
kind: "legacy"
Property Value
"legacy"
meterDetails
The details about the meter. By default this is not populated, unless it's specified in $expand.
meterDetails?: MeterDetailsResponse
Property Value
meterId
The meter id (GUID). Not available for marketplace. For reserved instance this represents the primary meter for which the reservation was purchased. For the actual VM Size for which the reservation is purchased see productOrderName.
meterId?: string
Property Value
string
offerId
Offer Id. Ex: MS-AZR-0017P, MS-AZR-0148P.
offerId?: string
Property Value
string
partNumber
Part Number of the service used. Can be used to join with the price sheet. Not available for marketplace.
partNumber?: string
Property Value
string
payGPrice
Retail price for the resource.
payGPrice?: number
Property Value
number
planName
Plan Name.
planName?: string
Property Value
string
pricingModel
Identifier that indicates how the meter is priced.
pricingModel?: string
Property Value
string
product
Product name for the consumed service or purchase. Not available for Marketplace.
product?: string
Property Value
string
productOrderId
Product Order Id. For reservations this is the Reservation Order ID.
productOrderId?: string
Property Value
string
productOrderName
Product Order Name. For reservations this is the SKU that was purchased.
productOrderName?: string
Property Value
string
publisherName
Publisher Name.
publisherName?: string
Property Value
string
publisherType
Publisher Type.
publisherType?: string
Property Value
string
quantity
The usage quantity.
quantity?: number
Property Value
number
reservationId
ARM resource id of the reservation. Only applies to records relevant to reservations.
reservationId?: string
Property Value
string
reservationName
User provided display name of the reservation. Last known name for a particular day is populated in the daily data. Only applies to records relevant to reservations.
reservationName?: string
Property Value
string
resourceGroup
Resource Group Name.
resourceGroup?: string
Property Value
string
resourceId
Unique identifier of the Azure Resource Manager usage detail resource.
resourceId?: string
Property Value
string
resourceLocation
Resource Location.
resourceLocation?: string
Property Value
string
resourceName
Resource Name.
resourceName?: string
Property Value
string
serviceInfo1
Service-specific metadata.
serviceInfo1?: string
Property Value
string
serviceInfo2
Legacy field with optional service-specific metadata.
serviceInfo2?: string
Property Value
string
subscriptionId
Subscription guid.
subscriptionId?: string
Property Value
string
subscriptionName
Subscription name.
subscriptionName?: string
Property Value
string
term
Term (in months). 1 month for monthly recurring purchase. 12 months for a 1 year reservation. 36 months for a 3 year reservation.
term?: string
Property Value
string
unitPrice
Unit Price is the price applicable to you. (your EA or other contract price).
unitPrice?: number
Property Value
number
Inherited Property Details
etag
id
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
id?: string
Property Value
string
Inherited From UsageDetail.id
name
systemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
systemData?: SystemData
Property Value
Inherited From UsageDetail.systemData
tags
Resource tags.
tags?: Record<string, string>
Property Value
Record<string, string>
Inherited From UsageDetail.tags
type
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
type?: string
Property Value
string
Inherited From UsageDetail.type