What do UsageQuantity and ResourceRate really represent in Cost Export for Functions?

Jamie Wigley 0 Reputation points
2025-12-04T17:53:06.45+00:00

Hi,

My organisation's most recent Cost Export contains some line items that have confused us, and we'd like some clarity on what they mean.

Firstly, what does the UsageQuantity column represent for Functions billing lines in the Cost Exports?

Secondly, is UsageQuantity measured in the same units for all tiers of Functions usage (Premium, Consumption, and Flex Consumption), and is that unit GB/seconds?

Thirdly, as you can see in the example below, why does the ResourceRate change for the same service?

Here are a few of the lines with inconsistent ResourceRates and UsageQuantities that have puzzled us. As you can see, the UsageQuantity is different between lines 1 and 2, but the PreTaxCost is the same, whilst UsageQuantity is the same in lines 2, 3, and 4, but PreTaxCost is different. How is this possible?

MeterSubcategory MeterId MeterName MeterRegion UsageQuantity ResourceRate PreTaxCost
Flex Consumption e2c89f7b-3884-5271-b03d-d79f7064bd88 On Demand Execution Time US West 2 4 0.000025 0.0001
Flex Consumption c91f0431-7495-5047-bd54-a4a16ecb1b70 On Demand Execution Time EU North 2 0.00005 0.0001
Flex Consumption 83e86544-f6ec-54ea-a738-7198e1c1315a On Demand Execution Time UK South 2 3.33E-05 6.67E-05
Flex Consumption 83e86544-f6ec-54ea-a738-7198e1c1315a On Demand Execution Time UK South 2 3.33E-05 6.67E-05

 Thank you!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-04T17:53:25.5233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The UsageQuantity in the Cost Export for Azure Functions represents the amount of the resource consumed during the billing period. For Functions billing lines, this typically refers to the total number of executions or the amount of execution time used, depending on the specific metric being measured.

    Regarding your second question, UsageQuantity is not measured in the same units across all tiers of Functions usage (Premium, Consumption, and Flex Consumption). Each tier may have different metrics and units of measurement. For example, in the Consumption plan, it is often measured in GB-seconds, while in other plans, it may vary based on the specific billing model used.

    As for the ResourceRate, it can change for the same service due to various factors, including different pricing models, discounts applied, or regional pricing variations. This means that even if the UsageQuantity is the same, the ResourceRate can differ based on these factors, leading to different PreTaxCosts for the same service under different conditions.

    In your example, the differences in UsageQuantity and ResourceRate can lead to the same PreTaxCost despite varying UsageQuantities, as the ResourceRate might be adjusted based on the specific conditions of each line item, such as location or pricing agreements.


    References:

    0 comments No comments

  2. Pravallika KV 3,565 Reputation points Microsoft External Staff Moderator
    2025-12-04T18:24:39.47+00:00

    Hi @Jamie Wigley,

    Thanks for reaching out to Microsoft Q&A.

    1. Understanding UsageQuantity:

    The UsageQuantity column in the cost export for Azure Functions reflects the amount of execution time your function app has consumed. For Azure Functions, especially in the Consumption plan, this value is typically measured in GB-seconds. This essentially means the total memory (in GB) multiplied by the execution time (in seconds).

    2. Measurement Units Across Tiers:

    The UsageQuantity should indeed be consistent across the various tiers (Premium, Consumption, and Flex Consumption). Each tier also measures usage in terms of GB-seconds. However, it's important to validate that you’re comparing similar scenarios, because differences in execution time or memory allocation can still lead to different UsageQuantities being reported for similar operations.

    3. Understanding ResourceRate Variations:

    About the ResourceRate changing for the same service, this can happen due to several reasons:

    • Regional Pricing: Different regions might have varying rates due to local pricing policies.
    • Different Service Tiers: Even within the same type of service, different performance tiers can affect the ResourceRate.
    • Billing Updates: Pricing can change based on updates to Azure's billing structure.

    Regarding your observation where UsageQuantities differ but the PreTaxCosts remain the same, this suggests that the rate you're charged might have also varied accordingly, balancing the cost out.

    References

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    User's image

    If you have any other questions, let me know in the "comments" and I would be happy to help you.


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.