Skip to content

Commit ab6f611

Browse files
authored
Merge pull request #40 from adwise3/patch-32
Update tutorial-seed-historical-cost-dataset-exports-api.md
2 parents add1cba + 791dd7d commit ab6f611

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

articles/cost-management-billing/automate/tutorial-seed-historical-cost-dataset-exports-api.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To learn how to get a bearer token with a service principal, see [Acquire an Acc
3939
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).
4040

4141
```http
42-
https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{enrollmentId}/providers/Microsoft.CostManagement/exports/{ExportName}?api-version=2021-10-01
42+
PUT https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{enrollmentId}/providers/Microsoft.CostManagement/exports/{ExportName}?api-version=2021-10-01
4343
```
4444

4545

@@ -81,10 +81,18 @@ Content-Type: application/json
8181
}
8282
```
8383

84-
## Execute the requests in one-month chunks
84+
## Create Exports in one-month chunks
8585

8686
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.
8787

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+
8896
## Next steps
8997

9098
In this tutorial, you learned how to:
@@ -96,4 +104,4 @@ In this tutorial, you learned how to:
96104
97105
To learn more about cost details, see [ingest cost details data](automation-ingest-usage-details-overview.md).
98106

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

Comments
 (0)