Repository navigation
[AKS] az aks nodepool: Add --use-patch-api for vms agentpool scale - #10468
Conversation
|
Thank you for your contribution Shaoru Hu (@HuShaoRu)! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
🟡 Changes recommended
PATCH routing and help text unintentionally include untested AvailabilitySet and FlexNodes pools.
2 open findings
What changed in this PR
Extends PATCH-based AKS node-pool scaling to VirtualMachines pools and manual-scale operations.
Changes:
- Adds
--use-patch-apito manual-scale commands. - Builds VirtualMachines PATCH payloads.
- Adds integration tests and recordings.
| File | Description |
|---|---|
HISTORY.rst |
Documents PATCH support. |
test_aks_commands.py |
Tests VMSS and VirtualMachines scaling. |
test_aks_nodepool_scale_vmss_with_patch_api.yaml |
Records VMSS PATCH behavior. |
custom.py |
Implements PATCH payloads and routing. |
_params.py |
Registers and documents the option. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
X Engineering Agent ReportReview — CommentsReviewThe completed upstream CI snapshot has no failures. One scope regression remains in PATCH routing; the default PUT path should stay unchanged for pool types outside this feature. Scope-consistency findingPR-related: Restrict PATCH dispatch to Test validation
The changed Risk assessment31/100 · Medium · High confidence The Medium rating is driven by public CLI behavior.
Posted by x-engineering-agent (Reviewer) |
--use-patch-api for vms agentpool scaleaz aks nodepool: Add --use-patch-api for vms agentpool scale


🤖 PR Validation —⚠️ Review suggested
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
add a new bool parameter
--use-patch-api, so vms pool scale can use patch api instead of put api. (this parameter is already supported for vmss pool)General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.