Skip to content

{Batch} Breaking Change Deprecation Warnings#32070

Merged
zhoxing-ms merged 4 commits intoAzure:devfrom
cRui861:rechen/dep-warnings
Sep 17, 2025
Merged

{Batch} Breaking Change Deprecation Warnings#32070
zhoxing-ms merged 4 commits intoAzure:devfrom
cRui861:rechen/dep-warnings

Conversation

@cRui861
Copy link
Copy Markdown
Member

@cRui861 cRui861 commented Sep 6, 2025

Description

Add breaking change descriptions for arguments --target-communication and --resource-tags in commands az batch pool create, az batch pool reset, and az batch pool set. Also set output deprecation warnings for targetNodeCommunicationMode, currentNodeCommunicationMode, and resourceTags in commands az batch pool show and az batch pool list.

History Notes


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

Copilot AI review requested due to automatic review settings September 6, 2025 00:47
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Sep 6, 2025

️✔️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
️✔️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 Sep 6, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️batch
rule cmd_name rule_message suggest_message
⚠️ 1003 - CmdPropAdd batch pool list cmd batch pool list added property deprecate_info_target
⚠️ 1003 - CmdPropAdd batch pool show cmd batch pool show added property deprecate_info_target

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Sep 6, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 6, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds breaking change deprecation warnings for Azure Batch pool commands to alert users about upcoming argument and output changes. The changes include deprecating specific arguments and output fields across batch pool operations.

  • Deprecates --target-communication and --resource-tags arguments in pool create/reset/set commands
  • Adds output deprecation warnings for specific fields in pool show/list commands
  • Modifies argument configuration to support deprecation handling

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
_breaking_change.py New file containing deprecation registrations for arguments and output fields
_params.py Updates resource_tags argument configuration with action=None parameter
test_batch_transformers.py Minor whitespace formatting change

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/azure-cli/azure/cli/command_modules/batch/_breaking_change.py
Comment thread src/azure-cli/azure/cli/command_modules/batch/_breaking_change.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/batch/_breaking_change.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/batch/_breaking_change.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/batch/_params.py Outdated
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Sep 9, 2025

Please fix CI issues

@dpwatrous dpwatrous self-requested a review September 10, 2025 15:53
Copy link
Copy Markdown
Member

@dpwatrous dpwatrous left a comment

Choose a reason for hiding this comment

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

Changes look good once the whitespace issues are fixed.

zhoxing-ms
zhoxing-ms previously approved these changes Sep 11, 2025
@zhoxing-ms
Copy link
Copy Markdown
Contributor

@ReaNAiveD Could you please help review this PR as well?

@dpwatrous
Copy link
Copy Markdown
Member

/azp run Azure.azure-cli

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 32070 in repo Azure/azure-cli

@cRui861
Copy link
Copy Markdown
Member Author

cRui861 commented Sep 11, 2025

/azp run Azure.azure-cli

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 32070 in repo Azure/azure-cli

@cRui861
Copy link
Copy Markdown
Member Author

cRui861 commented Sep 11, 2025

@zhoxing-ms Some of the checks have never finished running, do you know how we can re-run them? I don't seem to have permissions to do so

@cRui861 cRui861 force-pushed the rechen/dep-warnings branch from f099204 to f7370cc Compare September 11, 2025 20:07
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Sep 11, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@cRui861 cRui861 force-pushed the rechen/dep-warnings branch from f7370cc to cc185f6 Compare September 16, 2025 18:03
@ReaNAiveD
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@zhoxing-ms zhoxing-ms changed the title [Batch] Breaking Change Deprecation Warnings {Batch} Breaking Change Deprecation Warnings Sep 17, 2025
@zhoxing-ms zhoxing-ms merged commit b0d06b0 into Azure:dev Sep 17, 2025
48 checks passed
@cRui861 cRui861 deleted the rechen/dep-warnings branch September 17, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Batch az batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants