[Consumption] Fix #33907: az consumption usage list: Preserve meterDetails.totalIncludedQuantity - #33908
[Consumption] Fix #33907: az consumption usage list: Preserve meterDetails.totalIncludedQuantity#33908Daz (8dazo) wants to merge 1 commit into
az consumption usage list: Preserve meterDetails.totalIncludedQuantity#33908Conversation
…`meterDetails.totalIncludedQuantity` Co-authored-by: Cursor <cursoragent@cursor.com>
|
Hi Daz (@8dazo), |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Fixes incorrect serialization of meterDetails.totalIncludedQuantity by reading from the correct source field instead of pretaxStandardRate.
Changes:
- Corrects
transform_usage_outputto stringifymeterDetails.totalIncludedQuantityfromtotalIncludedQuantity. - Corrects
pricesheet_show_propertiesto stringifymeterDetails.totalIncludedQuantityfromtotalIncludedQuantity.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Thank you for your contribution Daz (@8dazo)! We will review the pull request and get back to you soon. |
|
Consumption |
Live test skipped⏭️ Skipping the live test for this revision because no new test file was added ( The live-test pipeline runs only the test files a PR changes, so there is nothing to execute for this commit. This is informational — a regression test is encouraged where it makes sense, but not required. If a test file is added in a later commit, the live test will run automatically. |
There was a problem hiding this comment.
Automated Review Summary
All checks are green for this PR.
- Live test (Tester): passed
- CI checks: 23/23 passed, 0 failed, 0 pending
Change: Fixes #33907 — az consumption usage list now preserves meterDetails.totalIncludedQuantity instead of dropping/overwriting it.
No outstanding issues found. Ready for human maintainer merge decision.
Related command
az consumption usage list -m
az consumption usage list -a -m
az consumption pricesheet show --include-meter-details
Description
Fixes #33907.
transform_usage_outputandpricesheet_show_propertiesstringifiedmeterDetails.totalIncludedQuantityfrompretaxStandardRate, so included quantity was replaced with the listing price.This restores the pre-AAZ mapping from #27152: each field is converted from its own service value.
Testing Guide
With
--include-meter-details, if the service returnstotalIncludedQuantity: 100andpretaxStandardRate: 0.05, CLI output should be:--debugalready showed the correct REST payload; only the CLI transform was wrong.History Notes
[Consumption]
az consumption usage list/pricesheet show: PreservemeterDetails.totalIncludedQuantitywhen including meter detailsThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.
Made with Cursor