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.
PayG monthly export columns not matching documentation
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
1 answer
Sort by: Most helpful
-
Ryan Hill 30,326 Reputation points Microsoft Employee Moderator2023-07-03T21:44:37.1533333+00:00