Skip to content

{Cost Management} Route export API version fix to azure-cli-extensions#33462

Draft
Copilot wants to merge 1 commit into
devfrom
copilot/fix-az-costmanagement-export-api-version
Draft

{Cost Management} Route export API version fix to azure-cli-extensions#33462
Copilot wants to merge 1 commit into
devfrom
copilot/fix-az-costmanagement-export-api-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2026

Related command
az costmanagement export create
az costmanagement export update
az costmanagement export list
az costmanagement export show
az costmanagement export delete

Description
az costmanagement export is failing against exports created by newer service API versions because the command still uses 2020-06-01. Investigation shows the implementation is owned by the costmanagement extension in Azure/azure-cli-extensions, not this repository.

  • Root cause

    • The hardcoded export API version lives in the extension vendored SDK, outside Azure/azure-cli.
    • A repo-local change here would not affect az costmanagement export behavior.
  • What this PR changes

    • No functional CLI change in Azure/azure-cli.
    • Documents that the required fix must be made in Azure/azure-cli-extensions/src/costmanagement.
  • Relevant upstream locations

    # Azure/azure-cli-extensions
    self.api_version = "2020-06-01"
    api_version = "2020-06-01"

Testing Guide
N/A for Azure/azure-cli. The affected command implementation is not present in this repository.

History Notes
{Cost Management}


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

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 28, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented May 28, 2026

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Auto-Assign Auto assign by bot label May 28, 2026
Copilot AI changed the title [WIP] Fix az costmanagement export API version to match latest exports {Cost Management} Route export API version fix to azure-cli-extensions May 28, 2026
Copilot finished work on behalf of a0x1ab May 28, 2026 09:34
Copilot AI requested a review from a0x1ab May 28, 2026 09:34
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented May 28, 2026

Cost Management

@a0x1ab
Copy link
Copy Markdown
Member

a0x1ab commented May 28, 2026

Live test results — azdev test costmanagement --live --series

PASS

Module: costmanagement
PR head ref: copilot/fix-az-costmanagement-export-api-version
PR head sha: a6213f69ebfca6fa76271e3f7e487ad94476026a
PR base ref: dev
New test files in PR: false

Workflow run: https://github.com/Azure/issue-sentinel/actions/runs/26569819991

Last 80 lines of azdev output

=============
| Run Tests |
=============

/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/.venv/bin/az:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  __import__('pkg_resources').require('azure-cli==2.87.0')

=====================
| Discovering Tests |
=====================

/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py:13482: SyntaxWarning: invalid escape sequence '\]'
  self.cmd('vmss application set -g {rg} -n {vmss} --app-version-ids {vid1} {vid2} --enable-automatic-upgrade True\]', checks=[

test index created: /home/runner/.azdev/env_config/home/runner/work/issue-sentinel/issue-sentinel/azure-cli/.venv/test_index/latest.json

Test on modules: costmanagement

WARNING: RUNNING TESTS LIVE
WARNING: 'costmanagement' not found. If newly added, re-run with --discover
WARNING: No tests selected to run.

Posted by agent-assist live-test workflow.

Copy link
Copy Markdown
Member

@a0x1ab a0x1ab left a comment

Choose a reason for hiding this comment

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

Agent Review — PR #33462

CI status: ✅ All 58 checks passed, 0 failed, 0 pending.

Live test: Skipped — this PR contains no functional code changes to Azure/azure-cli. The PR body explicitly states "Testing Guide: N/A for Azure/azure-cli" as the affected costmanagement implementation lives in Azure/azure-cli-extensions.

Summary: This PR correctly documents that the az costmanagement export API version fix belongs in Azure/azure-cli-extensions/src/costmanagement, not this repository. No Azure/azure-cli logic is modified. CI is fully green.

@copilot — please verify the PR title/description accurately reflects the routing decision and that no unintended files were modified before merging.


Posted by agent-assist (autonomous bug-fix pipeline).

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 28, 2026

Agent Review — PR #33462

CI status: ✅ All 58 checks passed, 0 failed, 0 pending....

Verified: the PR title/body accurately describe that the export API-version fix belongs in Azure/azure-cli-extensions, not Azure/azure-cli. I also checked the branch diff against dev and the PR file list—there are no modified files in this repo, so there are no unintended repo-local changes to merge.

Copilot finished work on behalf of a0x1ab May 28, 2026 11:09
Copilot AI requested a review from a0x1ab May 28, 2026 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az costmanagement export uses old version of Exports API incompatible with Exports created using the latest API version..

4 participants