You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cost-management-billing/automate/understand-usage-details-fields.md
+38-7Lines changed: 38 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,12 +95,12 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
95
95
| ResellerMpnId | MPA | ID for the reseller associated with the subscription. |
96
96
| ReservationId¹ | EA, MCA | Unique identifier for the purchased reservation instance. |
97
97
| ReservationName | EA, MCA | Name of the purchased reservation instance. |
98
-
| ResourceGroup | All | Name of the [resource group](../../azure-resource-manager/management/overview.md) the resource is in. Not all charges come from resources deployed to resource groups. Charges that don't have a resource group will be shown as null or empty, **Others**, or **Not applicable**. |
98
+
| ResourceGroup | All | Name of the [resource group](../../azure-resource-manager/management/overview.md) the resource is in. Not all charges come from resources deployed to resource groups. Charges that don't have a resource group are shown as null or empty, **Others**, or **Not applicable**. |
99
99
| ResourceId¹ | All | Unique identifier of the [Azure Resource Manager](/rest/api/resources/resources) resource. |
100
100
| ResourceLocation¹ | All | Datacenter location where the resource is running. See `Location`. |
101
-
| ResourceName | EA, pay-as-you-go | Name of the resource. Not all charges come from deployed resources. Charges that don't have a resource type will be shown as null/empty, **Others** , or **Not applicable**. |
102
-
| ResourceType | MCA | Type of resource instance. Not all charges come from deployed resources. Charges that don't have a resource type will be shown as null/empty, **Others** , or **Not applicable**. |
103
-
| RoundingAdjustment | EA, MCA | Rounding adjustment represents the quantization that occurs during cost calculation. When the calculated costs are converted to the invoiced total, small rounding errors can occur. The rounding errors are represented as `rounding adjustment` to ensure that the costs shown in Cost Management align to the invoice. |
101
+
| ResourceName | EA, pay-as-you-go | Name of the resource. Not all charges come from deployed resources. Charges that don't have a resource type are shown as null/empty, **Others** , or **Not applicable**. |
102
+
| ResourceType | MCA | Type of resource instance. Not all charges come from deployed resources. Charges that don't have a resource type are shown as null/empty, **Others** , or **Not applicable**. |
103
+
| RoundingAdjustment | EA, MCA | Rounding adjustment represents the quantization that occurs during cost calculation. When the calculated costs are converted to the invoiced total, small rounding errors can occur. The rounding errors are represented as `rounding adjustment` to ensure that the costs shown in Cost Management align to the invoice. For more information, see [Rounding adjustment details](#rounding-adjustment-details).|
104
104
| ServiceFamily | MCA | Service family that the service belongs to. |
105
105
| ServiceInfo¹ | All | Service-specific metadata. |
106
106
| ServiceInfo2 | All | Legacy field with optional service-specific metadata. |
@@ -109,17 +109,48 @@ MPA accounts have all MCA terms, in addition to the MPA terms, as described in t
109
109
| SubscriptionId¹ | All | Unique identifier for the Azure subscription. |
110
110
| SubscriptionName | All | Name of the Azure subscription. |
111
111
| Tags¹ | All | Tags assigned to the resource. Doesn't include resource group tags. Can be used to group or distribute costs for internal chargeback. For more information, see [Organize your Azure resources with tags](https://azure.microsoft.com/updates/organize-your-azure-resources-with-tags/). |
112
-
| Term | All | Displays the term for the validity of the offer. For example: In case of reserved instances, it displays 12 months as the Term. For one-time purchases or recurring purchases, Term is one month (SaaS, Marketplace Support). Not applicable for Azure consumption. |
112
+
| Term | All | Displays the term for the validity of the offer. For example: For reserved instances, it displays 12 months as the Term. For one-time purchases or recurring purchases, Term is one month (SaaS, Marketplace Support). Not applicable for Azure consumption. |
113
113
| UnitOfMeasure | All | The unit of measure for billing for the service. For example, compute services are billed per hour. |
114
114
| UnitPrice | EA, pay-as-you-go | The price per unit for the charge. |
115
115
116
-
117
116
¹ Fields used to build a unique ID for a single cost record. Every record in your cost details file should be considered unique.
118
117
119
-
The cost details file itself doesn’t uniquely identify individual records with an ID. Instead, you can use fields in the file flagged with ¹ to create a unique ID yourself.
118
+
The cost details file itself doesn’t uniquely identify individual records with an ID. Instead, you can use fields in the file flagged with ¹ to create a unique ID yourself.
120
119
121
120
Some fields might differ in casing and spacing between account types. Older versions of pay-as-you-go cost details files have separate sections for the statement and daily cost.
122
121
122
+
### Rounding adjustment details
123
+
124
+
Rounding adjustment isn't available in the cost details file during an open month. The adjustment is visible when the month closes and the invoice gets generated.
125
+
126
+
The rounding adjustment record is available in the Cost Details file at the Billing Profile scope for an MCA or at the Enrollment scope for EA. Because it's an aggregated value available at the invoice level, there's no lower-scope-level information available for the record. The following fields are the only valid ones for a record on rounding adjustment:
127
+
128
+
-`BillingAccountId`
129
+
-`BillingAccountName`
130
+
-`BillingPeriodStartDate`
131
+
-`BillingPeriodEndDate`
132
+
-`BillingProfileId`
133
+
-`BillingProfileName`
134
+
135
+
`MeterCategory`, `MeterSubCategory`, and `ChargeType` fields have the value as `RoundingAdjustment`.
136
+
137
+
Here's an example of how rounding adjustment works in practice:
138
+
139
+
Suppose you have two resources in your subscription, A and B. Resource A costs $0.1234 per hour and resource B costs $0.5678 per hour. You use both resources for 10 hours in a day, so the total cost for each resource is:
140
+
141
+
- Resource A: $0.1234 x 10 = $1.234
142
+
- Resource B: $0.5678 x 10 = $5.678
143
+
144
+
The total cost for the day is $1.234 + $5.678 = $6.912.
145
+
146
+
However, when the invoice is generated, the costs are rounded to two decimal places, so the invoice shows:
147
+
148
+
- Resource A: $1.23
149
+
- Resource B: $5.68
150
+
- Total: $6.91
151
+
152
+
The difference between the invoice total and the actual total is $0.002, which is the rounding adjustment. To make sure that Cost Management costs match the invoice, the amount is shown in the cost details file.
153
+
123
154
### List of terms from older APIs
124
155
125
156
The following table maps terms used in older APIs to the new terms. Refer to the above table for those descriptions.
0 commit comments