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
@@ -4,7 +4,7 @@ titleSuffix: Microsoft Cost Management
4
4
description: This article has information to help you migrate from the EA Marketplace Store Charge API.
5
5
author: bandersmsft
6
6
ms.author: banders
7
-
ms.date: 04/23/2024
7
+
ms.date: 06/14/2024
8
8
ms.topic: conceptual
9
9
ms.service: cost-management-billing
10
10
ms.subservice: cost-management
@@ -26,121 +26,60 @@ Endpoints to migrate off:
26
26
|`/v3/enrollments/{enrollmentNumber}/billingPeriods/{billingPeriod}/marketplacecharges`| • API method: GET <br><br> • Synchronous (non polling) <br><br> • Data format: JSON |
27
27
|`/v3/enrollments/{enrollmentNumber}/marketplacechargesbycustomdate?startTime=2017-01-01&endTime=2017-01-10`| • API method: GET <br><br> • Synchronous (non polling) <br><br> • Data format: JSON |
28
28
29
+
## New solutions generally available
30
+
31
+
We merged Azure Marketplace and Azure usage records into a single cost details dataset.
32
+
33
+
The following table provides a summary of the migration destinations that are available along with a summary of what to consider when choosing which solution is best for you.
|**Exports**| Recurring data dumps to storage on a schedule | • The most scalable solution for your workloads. <br>• Can be configured to use file partitioning for bigger datasets. <br>• Great for establishing and growing a cost dataset that can be integrated with your own queryable data stores. <br>• Requires access to a storage account that can hold the data. | • [Configure in Azure portal](../costs/tutorial-export-acm-data.md) <br>[Automate Export creation with the API](../costs/ingest-azure-usage-at-scale.md) <br>• [Export API Reference](/rest/api/cost-management/exports/create-or-update)|
38
+
|**Cost Details API**| On demand download | • Useful for small cost datasets. <br>• Useful for scenarios when Exports to Azure storage aren't feasible due to security or manageability concerns. | • [Get small cost datasets on demand](get-small-usage-datasets-on-demand.md) <br>• [Cost Details](/rest/api/cost-management/generate-cost-details-report) API |
39
+
40
+
We recommend using Exports if you have ongoing data ingestion needs or a large monthly cost details dataset. For more information, see [Ingest cost details data](automation-ingest-usage-details-overview.md). If you need additional information to help you make a decision for your workload, see [Choose a cost details solution](usage-details-best-practices.md).
41
+
29
42
## Assign permissions to a service principal to call the API
30
43
31
44
Before calling the API, you need to configure a service principal with the correct permission. You use the service principal to call the API. For more information, see [Assign permissions to Cost Management APIs](cost-management-api-permissions.md).
32
45
33
-
### Call the Marketplaces API
34
-
35
-
Use the following request URIs when calling the new Marketplaces API. All Azure and Marketplace charges are merged into a single file that is available through the new solutions. You can identify which charges are *Azure* versus *Marketplace* charges by using the `PublisherType` field that is available in the new dataset.
36
-
37
-
Your enrollment number should be used as the `billingAccountId`.
For subscription, billing account, department, enrollment account, and management group scopes you can also add a billing period to the scope using `/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}`. For example, to specify a billing period at the department scope, use `/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}`.
> The new response is missing the `AccountId`, `AccountOwnerId`, and `DepartmentId` fields. For account and department information, use the `AccountName` and `DepartmentName` fields.
## Avoid the Microsoft Consumption Marketplaces API
47
+
48
+
The Consumption Marketplaces API is another endpoint that currently supports EA customers. Don't migrate to this API. Migrate to either Exports or the Cost Details API, as outlined earlier in this document. The Consumption Marketplaces API will be deprecated in the future.
49
+
50
+
## Field differences
51
+
52
+
The following table summarizes the field mapping needed to transition from the data provided by the Marketplaces API to Exports and the Cost Details API. Both of the solutions provide a CSV file download as opposed to the paginated JSON response that gets provided by the Consumption API.
53
+
54
+
Usage records can be identified as marketplace records in the combined dataset through the `PublisherType` field. Also, there are many new fields in the newer solutions that might be useful to you. For more information about available fields, see [Understand usage details fields](understand-usage-details-fields.md).
55
+
56
+
|**Old Property**|**New Property**|**Notes**|
57
+
| --- | --- | --- |
58
+
|| PublisherType | Used to identify a marketplace usage record |
59
+
| accountName | AccountName ||
60
+
| additionalProperties | AdditionalInfo ||
61
+
| costCenter | CostCenter ||
62
+
| departmentName | BillingProfileName ||
63
+
| billingPeriodId || Use BillingPeriodStartDate / BillingPeriodEndDate |
64
+
| usageStart || Use Date |
65
+
| usageEnd || Use Date |
66
+
| instanceName | ResourceName ||
67
+
| instanceId | ResourceId ||
68
+
| currency | BillingCurrencyCode ||
69
+
| consumedQuantity | Quantity ||
70
+
| pretaxCost | CostInBillingCurrency ||
71
+
| isEstimated || Not available |
72
+
| meterId | MeterId ||
73
+
| offerName | OfferId ||
74
+
| resourceGroup | ResourceGroup ||
75
+
| orderNumber || Not available |
76
+
| publisherName | PublisherName ||
77
+
| planName | PlanName ||
78
+
| resourceRate | EffectivePrice ||
79
+
| subscriptionGuid | SubscriptionId ||
80
+
| subscriptionName | SubscriptionName ||
81
+
| unitOfMeasure | UnitOfMeasure ||
82
+
| isRecurringCharge || Where applicable, use the Frequency and Term fields moving forward. |
0 commit comments