Skip to content

[Consumption] Fix #33907: az consumption usage list: Preserve meterDetails.totalIncludedQuantity - #33908

Open
Daz (8dazo) wants to merge 1 commit into
Azure:devfrom
8dazo:fix-33907-consumption-meterdetails
Open

[Consumption] Fix #33907: az consumption usage list: Preserve meterDetails.totalIncludedQuantity#33908
Daz (8dazo) wants to merge 1 commit into
Azure:devfrom
8dazo:fix-33907-consumption-meterdetails

Conversation

@8dazo

Copy link
Copy Markdown

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_output and pricesheet_show_properties stringified meterDetails.totalIncludedQuantity from pretaxStandardRate, 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 returns totalIncludedQuantity: 100 and pretaxStandardRate: 0.05, CLI output should be:

"meterDetails": {
  "totalIncludedQuantity": "100",
  "pretaxStandardRate": "0.05"
}

--debug already showed the correct REST payload; only the CLI transform was wrong.

History Notes
[Consumption] az consumption usage list/pricesheet show: Preserve meterDetails.totalIncludedQuantity when including meter details


This checklist is used to make sure that common guidelines for a pull request are followed.

Made with Cursor

…`meterDetails.totalIncludedQuantity`

Co-authored-by: Cursor <cursoragent@cursor.com>
@8dazo
Daz (8dazo) requested a review from a team as a code owner August 17, 2026 12:47
Copilot AI lite review requested due to automatic review settings August 17, 2026 12:47
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Daz (@8dazo),
Since the current milestone time is less than 7 days, this pr may not catch up with this release.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_output to stringify meterDetails.totalIncludedQuantity from totalIncludedQuantity.
  • Corrects pricesheet_show_properties to stringify meterDetails.totalIncludedQuantity from totalIncludedQuantity.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 17, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution Daz (@8dazo)! We will review the pull request and get back to you soon.

@yonzhan

Copy link
Copy Markdown
Collaborator

Consumption

@a0x1ab Aditya Pujara (a0x1ab) added the Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review label Aug 19, 2026
@azure-client-tools-agent

Copy link
Copy Markdown
Contributor

Live test skipped

⏭️ Skipping the live test for this revision because no new test file was added (tests/**/test_*.py).

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.

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ All Checks Passed

All CI checks and live tests have passed. This PR looks good!

@azure-client-tools-agent azure-client-tools-agent Bot added azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent and removed Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review labels Aug 19, 2026
@a0x1ab Aditya Pujara (a0x1ab) added Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review and removed azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent labels Aug 19, 2026

@azure-client-tools-agent azure-client-tools-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 #33907az consumption usage list now preserves meterDetails.totalIncludedQuantity instead of dropping/overwriting it.

No outstanding issues found. Ready for human maintainer merge decision.

@azure-client-tools-agent azure-client-tools-agent Bot added azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent and removed Azure Client Tools Agent Requested Request Azure Client Tools Agent testing and review labels Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az consumption usage list -m : meterDetails.totalIncludedQuantity is overwritten with pretaxStandardRate

4 participants