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/tutorial-seed-historical-cost-dataset-exports-api.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ To learn how to get a bearer token with a service principal, see [Acquire an Acc
39
39
See the following example request and create your own one-time data Export. The following example request creates a one-month Actual Cost dataset in the specified Azure storage account. We recommend that you request no more than one month's of data per report. If you have a large dataset every month, we recommend setting `partitionData = true` for your one-time export to split it into multiple files. For more information, see [File partitioning for large datasets](../costs/tutorial-export-acm-data.md#file-partitioning-for-large-datasets).
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{enrollmentId}/providers/Microsoft.CostManagement/exports/{ExportName}?api-version=2021-10-01
We recommend creating one-time data exports in one month chunks. If you want to seed a one-year historical dataset, then you should execute 12 Exports API requests - one for each month. After you've seeded your historical dataset, you can then create a scheduled export to continue populating your cost data in Azure storage as your charges accrue over time.
87
87
88
+
## Run each Export
89
+
90
+
Now that you have created the Export for each month, you need to manually run each by calling the [Execute API](https://docs.microsoft.com/en-us/rest/api/cost-management/exports/execute?tabs=HTTP). An example request to the API is below.
91
+
92
+
```http
93
+
POST https://management.azure.com/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run?api-version=2021-10-01
94
+
```
95
+
88
96
## Next steps
89
97
90
98
In this tutorial, you learned how to:
@@ -96,4 +104,4 @@ In this tutorial, you learned how to:
96
104
97
105
To learn more about cost details, see [ingest cost details data](automation-ingest-usage-details-overview.md).
98
106
99
-
To learn more about what data is available in the cost details dataset, see [Understand cost details data fields](understand-usage-details-fields.md).
107
+
To learn more about what data is available in the cost details dataset, see [Understand cost details data fields](understand-usage-details-fields.md).
0 commit comments