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/costs/tutorial-improved-exports.md
+37-16Lines changed: 37 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,10 +174,10 @@ You can perform the following actions on individual exports.
174
174
When you create a scheduled export, the export runs at the same frequency for each export that runs later. For instance, if the export is scheduled to run once every UTC day, it creates a daily export of costs accumulated from the start of the month to the current date. Individual export runs can occur at different times throughout the day, so avoid relying on the exact time of the export runs. The run timing depends on the active load present in Azure during a given UTC day. Once an export run begins, your data should be available within 4 hours. Exports are scheduled using Coordinated Universal Time (UTC). The Exports API always uses and displays UTC.
175
175
176
176
When you create an export using the [Exports API](/rest/api/cost-management/exports/create-or-update?tabs=HTTP), specify the `recurrencePeriod` in UTC time. The API doesn’t convert your local time to UTC.
177
-
- Example - A daily export is scheduled on Friday, August 19 with `recurrencePeriod` set to 2:00 PM. The API receives the input as 2:00 PM UTC, Friday, August 19.
177
+
- Example - A daily export is scheduled on Friday, August 19 with `recurrencePeriod` set to 2:00 PM. The API receives the input as 2:00 PM UTC, Friday, August 19.
178
178
179
179
When you create an export in the Azure portal, its start date time is automatically converted to the equivalent UTC time.
180
-
- Example - A daily export is scheduled on Friday, August 19 with the local time of 2:00 AM IST (UTC+5:30) from the Azure portal. The API receives the input as 8:30 PM, Thursday, August 18.
180
+
- Example - A daily export is scheduled on Friday, August 19 with the local time of 2:00 AM IST (UTC+5:30) from the Azure portal. The API receives the input as 8:30 PM, Thursday, August 18.
181
181
182
182
Various datasets support different schedule frequency options as described in the following table.
183
183
@@ -330,27 +330,48 @@ Here are some frequently asked questions and answers about exports.
330
330
### Why is file partitioning enabled in exports?
331
331
The file partitioning is a feature that is activated by default to facilitate the management of large files. This functionality divides larger files into smaller segments, which enhances the ease of file transfer, download, ingestion, and overall readability. It's advantageous for customers whose cost files increase in size over time. The specifics of the file partitions are described in a manifest.json file provided with each export run, enabling you to rejoin the original file.
332
332
333
-
####How does the enhanced export experience handle missing attributes like subscription IDs?
333
+
### How does the enhanced export experience handle missing attributes like subscription IDs?
334
334
335
335
In the new export experience, missing attributes such as subscription IDs are set to null or empty rather than using a default empty GUID (00000000-0000-0000-0000-000000000000). The null or empty values more accurately indicate the absence of a value. It affects charges pertaining to unused reservations, unused savings plan, and rounding adjustments.
336
336
337
-
####How much historical data can I retrieve using Exports?
337
+
### How much historical data can I retrieve using exports?
338
338
339
-
You can retrieve up to 13 months of historical data through the Azure portal for all datasets, except for reservation recommendations, which are limited to the current recommendation snapshot. To access data older than 13 months, you can use the REST API.
339
+
You can retrieve historical data using exports through either the **Azure portal** or the **REST API**, depending on your dataset and time range requirements.
340
340
341
-
- Cost and usage (Actual), Cost and usage (Amortized), and Cost and usage (FOCUS): Up to seven years of data.
341
+
#### Retrieve historical data via Azure portal
342
342
343
-
- Reservation transactions: Up to seven years of data across all channels.
343
+
The Azure portal supports retrieval of up to **13 months** of historical data for most datasets.
344
344
345
-
- Reservation recommendations, Reservation details: Up to 13 months of data.
345
+
To retrieve historical data:
346
346
347
-
- All available prices:
348
-
349
-
- MCA/MPA: Up to 13 months.
347
+
1. Create a one-time or custom export (e.g., Actual cost, Amortized cost, or Price sheet).
348
+
2. After saving the export, go to **Cost Management > Exports**, and select your export.
349
+
3. Click **Export selected dates** to rerun the export for specific historical months — note that data can be retrieved **one month at a time**, up to the 13-month limit.
350
350
351
-
- EA: Up to 25 months (starting from December 2022).
351
+
> [!NOTE]
352
+
> Reservation recommendations are based on the current snapshot only and do not support historical backfill.
353
+
354
+
#### Retrieve data via REST API
355
+
356
+
- To access data older than 13 months, use the [Exports - Execute REST API](/rest/api/cost-management/exports/execute?view=rest-cost-management-2025-03-01&preserve-view=true).
357
+
- This method allows programmatic backfill of data for specific date ranges, depending on dataset availability.
| Cost and usage (Actual, Amortized, FOCUS) | Up to 13 months | Up to 7 years |
364
+
| Reservation transactions | Up to 13 months | Up to 7 years |
365
+
| Reservation details | Up to 13 months | Up to 13 months |
366
+
| Reservation recommendations | Current snapshot only | Current snapshot only |
367
+
| Price sheet | Up to 13 months | MCA/MPA: 13 months<br>EA: 25 months |
368
+
369
+
> [!TIP]
370
+
> For retrieving more than 13 months of historical data, or automating backfills at scale, the REST API is recommended.
371
+
372
+
352
373
353
-
####Which datasets support Parquet format and compression?
374
+
### Which datasets support Parquet format and compression?
354
375
355
376
The following table captures the supported formats and compression formats for each of the exported datasets. If you're creating an export with multiple datasets, Parquet & compression options only appear in the dropdown if all of the selected datasets support them.
356
377
@@ -370,7 +391,7 @@ The following table captures the supported formats and compression formats for e
370
391
|Price Sheet|CSV|None, Gzip|
371
392
||Parquet|None, Snappy|
372
393
373
-
####Why do I get the 'Unauthorized' error while trying to create an Export?
394
+
### Why do I get the 'Unauthorized' error while trying to create an Export?
374
395
375
396
When attempting to create an Export to a storage account with a firewall, the user must have the Owner role or a custom role with `Microsoft.Authorization/roleAssignments/write` and `Microsoft.Authorization/permissions/read` permissions. If these permissions are missing, you encounter an error similar to:
376
397
@@ -386,7 +407,7 @@ When attempting to create an Export to a storage account with a firewall, the us
386
407
387
408
You can check for the permissions on the storage account by referring to the steps in [Check access for a user to a single Azure resource](../../role-based-access-control/check-access.md).
388
409
389
-
####What is the maximum number of subscriptions allowed within a management group (MG) when creating an export?
410
+
### What is the maximum number of subscriptions allowed within a management group (MG) when creating an export?
390
411
391
412
The maximum limit is **3,000 subscriptions** per management group in Cost Management, including exports.
392
413
@@ -396,7 +417,7 @@ To manage more than 3,000 subscriptions:
396
417
397
418
- Alternatively, if all subscriptions are under the same billing account, create an export at the **billing account scope** to get combined data.
398
419
399
-
####How are the exported files organized in the blob storage folders?
420
+
### How are the exported files organized in the blob storage folders?
400
421
401
422
The exported files are organized in a structured hierarchy within the storage folders. The naming and hierarchy of the folders are as follows:
0 commit comments