PayG monthly export columns not matching documentation

Erik Post 70 Reputation points
2023-06-29T12:59:45.8733333+00:00

Hello, I have a question on monthly exports created for a Pay-as-you-Go subscription (offer ID MS-AZR-0003P). When I run the export and look at the resulting file, the included columns do not match the documentation on https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields. For example column InvoiceId is missing, as well as BillingPeriodStart and BillingPeriodEndDate, to name a few.

Also some columns are named differently, for example UsageDateTime instead of Date.

How can I get the format as documented on https://learn.microsoft.com/en-us/azure/cost-management-billing/automate/understand-usage-details-fields?

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,326 Reputation points Microsoft Employee Moderator
    2023-07-03T21:44:37.1533333+00:00

    Trying using API outlined in Get cost details for a pay-as-you-go subscription documentation. You can also try using the CLI command az costmanagement export create --name DemoExport --type Usage \--scope "subscriptions/00000000-0000-0000-0000-000000000000" --storage-account-id cmdemo \--storage-container democontainer --timeframe MonthToDate --storage-directory demodirectory, see Get usage data with the Azure CLI. Using the API is the preferred method for PAYG. I've reached out to the team for any additional clarity and will update with any findings.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.