Repository navigation
[Batch] BREAKING CHANGE: az batch pool create: Remove deprecated argument --resource-tags - #34327
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Thank you for your contribution Keyan Song (@mskeyansong)! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
🔵 Needs a closer look
The CLI team must decide whether renewed notice is needed and when to remove the argument, which remained usable without warnings after its announced 2025 removal.
No open issues 🎉
What changed in this PR
Completes the previously announced removal of --resource-tags from az batch pool create. This closes the gap left by #32397, which documented the removal but still allowed the argument to be generated from the SDK model.
Changes:
- Excludes
resource_tagsfrom generated Batch CLI arguments. - Adds regression coverage for argument exclusion and parser rejection.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_data_plane_commands.py |
Adds a check that passing --resource-tags raises a parser error. |
src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_commands.py |
Updates the argument count and asserts that resource_tags is absent. |
src/azure-cli/azure/cli/command_modules/batch/_parameter_format.py |
Adds resource_tags to IGNORE_PARAMETERS. |
Review effort: Balanced
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
Please fix CI issues |
…he 2.80.0 removal Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2a81dea to
b85c7a7
Compare
|
Yong Zhang (@yonzhan) the Windows jobs failed because the PR's merge commit was built on an older dev without #34328. I rebased on the latest dev, could you run the pipelines once more? |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
In progress — X Engineering Agent is reviewing this PR at Keyan Song (@mskeyansong) The argument exclusion matches the stated removal; one regression-assertion gap remains. To addressTick each item as you address it.
Review detailsUpstream CI52/52 upstream checks completed successfully at this head. Test validation
Scope clarification: no linked issue requirement is established; this review assesses the stated Risk assessment0/100 · Low The Low rating reflects the detected change scope with no elevated security, reliability, customer, operational, dependency, sovereign-cloud, generated-output, or cross-component signal.
|
…ument Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Thanks, done in 68011a7: the Yong Zhang (@yonzhan) could you run the pipelines once more? |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
Adding mansoor sarfraz (@msarfraz) to help review/merge |
🤖 PR Validation — ❌ Action needed
❌AzureCLI-BreakingChangeTest
Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:
Related command
az batch pool createDescription
--resource-tagswas pre-announced for removal in #32070 (2.78.0), and the 2.80.0 release notes list it as removed(#32397: "
az batch pool create: Remove deprecated argument--target-communicationand--resource-tags"). Butaz batch pool createstill accepts it and still shows it in-h, now without a warning. #32397 removed the customargument settings and the
resourceTagsoutput field, and addedtarget_node_communication_modetoIGNORE_PARAMETERSin_parameter_format.py, but notresource_tags, so the argument is still built from the SDKmodel.
This PR adds
resource_tagstoIGNORE_PARAMETERSand adds tests. Help for all 128az batchcommands compared withdev: onlyaz batch pool create -hchanged, by losing--resource-tags.Question for the CLI team: this finishes a removal that was pre-announced and listed in the November 2025 breaking
change release. Can it go into the November 2026 breaking change release, or into a regular release? Or does it need a
new pre-announcement and the next breaking change window?
Testing Guide
az batch pool create -hno longer lists--resource-tags.az batch pool create ... --resource-tags key=valuefails with "unrecognized arguments: --resource-tags key=value".azdev test batch,azdev style batch,azdev linter batchHistory Notes
[Batch] BREAKING CHANGE:
az batch pool create: Remove deprecated argument--resource-tags, which 2.80.0 listed as removed but still accepted