Skip to content

Commit 654fe37

Browse files
committed
moved faq and other updates per jojo
1 parent b6009ed commit 654fe37

File tree

4 files changed

+54
-58
lines changed

4 files changed

+54
-58
lines changed

articles/cost-management-billing/costs/export-cost-data-storage-account-sas-key.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -81,48 +81,6 @@ The following are common issues that might happen when you configure or use SAS
8181
- Your export fails because of a SAS token-related error.
8282
- Your export works only while the SAS token remains valid. Create a new key and run the export.
8383

84-
## SAS token-based exports FAQ
85-
86-
Here are some frequently asked questions and answers about SAS token-based exports.
87-
88-
### Why do I see garbled characters when I open exported cost files with Microsoft Excel?
89-
90-
If you see garbled characters in Excel and you use an Asian-based language, such as Japanese or Chinese, you can resolve this issue with the following steps:
91-
92-
For new versions of Excel:
93-
94-
1. Open Excel.
95-
1. Select the **Data** tab at the top.
96-
1. Select the **From Text/CSV** option.
97-
:::image type="content" source="./media/export-cost-data-storage-account-sas-key/new-excel-from-text.png" alt-text="Screenshot showing the Excel From Text/CSV option." lightbox="./media/export-cost-data-storage-account-sas-key/new-excel-from-text.png" :::
98-
1. Select the CSV file that you want to import.
99-
1. In the next box, set **File origin** to **65001: Unicode (UTF-8)**.
100-
:::image type="content" source="./media/export-cost-data-storage-account-sas-key/new-excel-file-origin.png" alt-text="Screenshot showing the Excel File origin option." lightbox="./media/export-cost-data-storage-account-sas-key/new-excel-file-origin.png" :::
101-
1. Select **Load**.
102-
103-
For older versions of MS Excel:
104-
105-
1. Open Excel.
106-
1. Select the **Data** tab at the top.
107-
1. Select the **From Text** option and then select the CSV file that you want to import.
108-
1. Excel shows the Text Import Wizard.
109-
1. In the wizard, select the **Delimited** option.
110-
1. In the **File origin** field, select **65001 : Unicode (UTF-8)**.
111-
1. Select **Next**.
112-
1. Next, select the **Comma** option and then select **Finish**.
113-
1. In the dialog window that appears, select **OK**.
114-
115-
### Why does the aggregated cost from the exported file differ from the cost displayed in Cost Analysis?
116-
117-
You might have discrepancies between the aggregated cost from the exported file and the cost displayed in Cost Analysis. Determine if the tool you use to read and aggregate the total cost is truncating decimal values. This issue can happen in tools like Power BI and Microsoft Excel. Determine if decimal places are getting dropped when cost values are converted into integers. Losing decimal values can result in a loss of precision and misrepresentation of the aggregated cost.
118-
119-
To manually transform a column to a decimal number in Power BI, follow these steps:
120-
121-
1. Go to the Table view.
122-
1. Select **Transform data**.
123-
1. Right-click the required column.
124-
1. Change the type to a decimal number.
125-
12684
## Next steps
12785

12886
- For more information about exporting Cost Management data, see [Create and export data](tutorial-export-acm-data.md).

articles/cost-management-billing/costs/tutorial-export-acm-data.md

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ Data export is available for various Azure account types, including [Enterprise
4040
For Azure Storage accounts:
4141
- Write permissions are required to change the configured storage account, independent of permissions on the export.
4242
- Your Azure storage account must be configured for blob or file storage.
43-
- Don't configure exports to a storage container that's configured as a destination in an [object replication rule](../../storage/blobs/object-replication-overview.md#object-replication-policies-and-rules).
43+
- Don't configure exports to a storage container when configured as a destination in an [object replication rule](../../storage/blobs/object-replication-overview.md#object-replication-policies-and-rules).
4444
- To export to storage accounts with configured firewalls, you need other privileges on the storage account. The other privileges are only required during export creation or modification. They are:
4545
- Owner role on the storage account.
4646
Or
4747
- Any custom role with `Microsoft.Authorization/roleAssignments/write` and `Microsoft.Authorization/permissions/read` permissions.
4848
Additionally, ensure that you enable [Allow trusted Azure service access](../../storage/common/storage-network-security.md#grant-access-to-trusted-azure-services) to the storage account when you configure the firewall.
4949
- The storage account configuration must have the **Permitted scope for copy operations (preview)** option set to **From any storage account**.
50-
:::image type="content" source="./media/tutorial-export-acm-data/permitted-scope-copy-operations.png" alt-text="Screenshot showing the From any storage account option set." lightbox="./media/tutorial-export-acm-data/permitted-scope-copy-operations.png" :::
50+
:::image type="content" source="./media/tutorial-export-acm-data/permitted-scope-copy-operations.png" alt-text="Screenshot showing From any storage account option set." lightbox="./media/tutorial-export-acm-data/permitted-scope-copy-operations.png" :::
5151

5252
If you have a new subscription, you can't immediately use Cost Management features. It might take up to 48 hours before you can use all Cost Management features.
5353

@@ -252,13 +252,13 @@ If you need to export to a storage account behind the firewall for security and
252252

253253
Enable **Allow trusted Azure services access** on the storage account. You can turn that on while configuring the firewall of the storage account, from the Networking page. Here's a screenshot showing the page.
254254

255-
:::image type="content" source="./media/tutorial-export-acm-data/allow-trusted-access.png" alt-text="Screenshot showing the Allow Azure services on the trusted services list exception option." lightbox="./media/tutorial-export-acm-data/allow-trusted-access.png" :::
255+
:::image type="content" source="./media/tutorial-export-acm-data/allow-trusted-access.png" alt-text="Screenshot showing Allow Azure services on the trusted services list exception option." lightbox="./media/tutorial-export-acm-data/allow-trusted-access.png" :::
256256

257257
If you missed enabling that setting, you can easily do so from the **Exports** page when creating a new export.
258258

259259
:::image type="content" source="./media/tutorial-export-acm-data/allow-trusted-access-export.png" alt-text="Screenshot showing the Allow trusted Azure services access option." lightbox="./media/tutorial-export-acm-data/allow-trusted-access-export.png" :::
260260

261-
A system-assigned managed identity is created for a new job export when it's created or modified. You must have permissions because Cost Management uses the privilege to assign the *StorageBlobDataContributor* role to the managed identity. The permission is restricted to the storage account container scope. After the export job is created or updated, the user doesn't require Owner permissions for regular runtime operations.
261+
A system-assigned managed identity is created for a new job export when created or modified. You must have permissions because Cost Management uses the privilege to assign the *StorageBlobDataContributor* role to the managed identity. The permission is restricted to the storage account container scope. After the export job is created or updated, the user doesn't require Owner permissions for regular runtime operations.
262262

263263
> [!NOTE]
264264
> - When a user updates destination details or deletes an export, the *StorageBlobDataContributor* role assigned to the managed identity is automatically removed. To enable the system to remove the role assignment, the user must have `microsoft.Authorization/roleAssignments/delete` permissions. If the permissions aren't available, the user needs to manually remove the role assignment on the managed identity.
@@ -268,7 +268,7 @@ Add exports to the list of trusted services. For more information, see [Trusted
268268

269269
### Export schedule
270270

271-
Scheduled exports are affected by the time and day of week of when you initially create the export. When you create a scheduled export, the export runs at the same frequency for each export that runs later. For example, for a daily export of month-to-date costs export set at a daily frequency, the export runs during once each UTC day. Similarly for a weekly export, the export runs every week on the same UTC day as it is scheduled. Individual export runs can occur at different times throughout the day. So, avoid taking a firm dependency on the exact time of the export runs. Run timing depends on the active load present in Azure during a given UTC day. When an export run begins, your data should be available within 4 hours.
271+
Scheduled exports get affected by the time and day of week of when you initially create the export. When you create a scheduled export, the export runs at the same frequency for each export that runs later. For example, for a daily export of month-to-date costs export set at a daily frequency, the export runs during once each UTC day. Similarly for a weekly export, the export runs every week on the same UTC day as it is scheduled. Individual export runs can occur at different times throughout the day. So, avoid taking a firm dependency on the exact time of the export runs. Run timing depends on the active load present in Azure during a given UTC day. When an export run begins, your data should be available within 4 hours.
272272

273273
Exports are scheduled using Coordinated Universal Time (UTC). The Exports API always uses and displays UTC.
274274

@@ -281,15 +281,11 @@ Each export creates a new file, so older exports aren't overwritten.
281281

282282
#### Create an export for multiple subscriptions
283283

284-
If you have an Enterprise Agreement, then you can use a management group to aggregate subscription cost information in a single container. Then you can export cost management data for the management group. When you create an export in the Azure portal, select the **Actual Costs** option. When you create a management group export using the API, create a *usage export*.
284+
You can use a management group to aggregate subscription cost information in a single container. Exports support management group scope for Enterprise Agreement but not for Microsoft Customer Agreement or other subscription types. Multiple currencies are also not supported in management group exports.
285285

286-
Currently, exports at the management group scope only support usage charges. Purchases including reservations and savings plans aren't present in your exports file.
286+
Exports at the management group scope support only usage charges, purchases (including reservations and savings plans). Amortized cost reports aren't supported. When you create an export from the Azure portal for a management group scope, the metric field isn't shown because it defaults to the usage type. When you create a management group scope export using the REST API, choose [ExportType](/rest/api/cost-management/exports/create-or-update?view=rest-cost-management-2023-08-01#exporttype) as `Usage`.
287287

288-
Exports for management groups of other subscription types aren't supported.
289-
290-
Multiple currencies are not supported in management group exports.
291-
292-
1. If you haven't already created a management group, create one group and assign subscriptions to it.
288+
1. Create one management group and assign subscriptions to it, if you haven't already.
293289
1. In cost analysis, set the scope to your management group and select **Select this management group**.
294290
:::image type="content" source="./media/tutorial-export-acm-data/management-group-scope.png" alt-text="Example showing the Select this management group option" lightbox="./media/tutorial-export-acm-data/management-group-scope.png":::
295291
1. Create an export at the scope to get cost management data for the subscriptions in the management group.
@@ -307,9 +303,9 @@ Partitioning isn't currently supported for resource groups or management group s
307303

308304
#### Update existing exports to use file partitioning
309305

310-
If you have existing exports and you want to set up file partitioning, create a new export. File partitioning is only available with the latest Exports version. There may be minor changes to some of the fields in the usage files that get created.
306+
If you have existing exports and you want to set up file partitioning, create a new export. File partitioning is only available with the latest Exports version. There might be minor changes to some of the fields in the usage files that get created.
311307

312-
If you enable file partitioning on an existing export, you may see minor changes to the fields in file output. Any changes are due to updates that were made to Exports after you initially set yours up.
308+
If you enable file partitioning on an existing export, you might see minor changes to the fields in file output. Any changes are due to updates that were made to Exports after you initially set yours up.
313309

314310
#### Partitioning output
315311

@@ -354,7 +350,7 @@ In Storage Explorer, navigate to the container that you want to open and select
354350

355351
![Example information shown in Storage Explorer](./media/tutorial-export-acm-data/storage-explorer.png)
356352

357-
The file opens with the program or application that's set to open CSV file extensions. Here's an example in Excel.
353+
The file opens with the program or application set to open CSV file extensions. Here's an example in Excel.
358354

359355
![Example exported CSV data shown in Excel](./media/tutorial-export-acm-data/example-export-data.png)
360356

@@ -383,7 +379,7 @@ Select an export to view the run history.
383379

384380
### Export runs twice a day for the first five days of the month
385381

386-
If you've created a daily export, you have two runs per day for the first five days of each month. One run executes and creates a file with the current month’s cost data. It's the run that's available for you to see in the run history. A second run also executes to create a file with all the costs from the prior month. The second run isn't currently visible in the run history. Azure executes the second run to ensure that your latest file for the past month contains all charges exactly as seen on your invoice. It runs because there are cases where latent usage and charges are included in the invoice up to 72 hours after the calendar month has closed. To learn more about Cost Management usage data updates, see [Cost and usage data updates and retention](understand-cost-mgt-data.md#cost-and-usage-data-updates-and-retention).
382+
There are two runs per day for the first five days of each month after you create a daily export. One run executes and creates a file with the current month’s cost data. It's the run that's available for you to see in the run history. A second run also executes to create a file with all the costs from the prior month. The second run isn't currently visible in the run history. Azure executes the second run to ensure that your latest file for the past month contains all charges exactly as seen on your invoice. It runs because there are cases where latent usage and charges are included in the invoice up to 72 hours after the calendar month is closed. To learn more about Cost Management usage data updates, see [Cost and usage data updates and retention](understand-cost-mgt-data.md#cost-and-usage-data-updates-and-retention).
387383

388384
>[!NOTE]
389385
> Daily export created between 1st to 5th of the current month would not generate data for the previous month as the export schedule starts from the date of creation.
@@ -392,6 +388,48 @@ If you've created a daily export, you have two runs per day for the first five d
392388

393389
One of the purposes of exporting your Cost Management data is to access the data from external systems. You might use a dashboard system or other financial system. Such systems vary widely so showing an example wouldn't be practical. However, you can get started with accessing your data from your applications at [Introduction to Azure Storage](../../storage/common/storage-introduction.md).
394390

391+
## Exports FAQ
392+
393+
Here are some frequently asked questions and answers about exports.
394+
395+
### Why do I see garbled characters when I open exported cost files with Microsoft Excel?
396+
397+
If you see garbled characters in Excel and you use an Asian-based language, such as Japanese or Chinese, you can resolve this issue with the following steps:
398+
399+
For new versions of Excel:
400+
401+
1. Open Excel.
402+
1. Select the **Data** tab at the top.
403+
1. Select the **From Text/CSV** option.
404+
:::image type="content" source="./media/tutorial-export-acm-data/new-excel-from-text.png" alt-text="Screenshot showing the Excel From Text/CSV option." lightbox="./media/tutorial-export-acm-data/new-excel-from-text.png" :::
405+
1. Select the CSV file that you want to import.
406+
1. In the next box, set **File origin** to **65001: Unicode (UTF-8)**.
407+
:::image type="content" source="./media/tutorial-export-acm-data/new-excel-file-origin.png" alt-text="Screenshot showing the Excel File origin option." lightbox="./media/tutorial-export-acm-data/new-excel-file-origin.png" :::
408+
1. Select **Load**.
409+
410+
For older versions of MS Excel:
411+
412+
1. Open Excel.
413+
1. Select the **Data** tab at the top.
414+
1. Select the **From Text** option and then select the CSV file that you want to import.
415+
1. Excel shows the Text Import Wizard.
416+
1. In the wizard, select the **Delimited** option.
417+
1. In the **File origin** field, select **65001 : Unicode (UTF-8)**.
418+
1. Select **Next**.
419+
1. Next, select the **Comma** option and then select **Finish**.
420+
1. In the dialog window that appears, select **OK**.
421+
422+
### Why does the aggregated cost from the exported file differ from the cost displayed in Cost Analysis?
423+
424+
You might have discrepancies between the aggregated cost from the exported file and the cost displayed in Cost Analysis. Determine if the tool you use to read and aggregate the total cost is truncating decimal values. This issue can happen in tools like Power BI and Microsoft Excel. Determine if decimal places are getting dropped when cost values are converted into integers. Losing decimal values can result in a loss of precision and misrepresentation of the aggregated cost.
425+
426+
To manually transform a column to a decimal number in Power BI, follow these steps:
427+
428+
1. Go to the Table view.
429+
1. Select **Transform data**.
430+
1. Right-click the required column.
431+
1. Change the type to a decimal number.
432+
395433
## Next steps
396434

397435
In this tutorial, you learned how to:

0 commit comments

Comments
 (0)