Skip to content

[AKS] az aks nodepool update: Add --zones for automatic zone placement - #33976

Closed
Alex Huang (wenhug) wants to merge 3 commits into
Azure:devfrom
wenhug:wenhug/aks-nodepool-update-zones
Closed

[AKS] az aks nodepool update: Add --zones for automatic zone placement#33976
Alex Huang (wenhug) wants to merge 3 commits into
Azure:devfrom
wenhug:wenhug/aks-nodepool-update-zones

Conversation

@wenhug

@wenhug Alex Huang (wenhug) commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests
⚠️ None ️✔️ 130/130
⚠️AzureCLI-BreakingChangeTest
⚠️acs
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks nodepool update cmd aks nodepool update added parameter zones

Related command

az aks nodepool update --zones auto

Description

Adds the preview --zones/-z argument to az aks nodepool update so a regional node pool can migrate to automatic zone placement. Omitted zones preserve the existing value.

The RP rejects this property change on API versions before 2026-01-02-preview, so only a PUT with an explicitly supplied --zones uses that preview API. The initial GET and node pool updates without --zones continue to use the normal stable client. Custom resource types such as aks-preview keep their own vendored preview client.

Companion aks-preview extension PR: Azure/azure-cli-extensions#10248

Testing Guide

  • 246 relevant unit tests passed, 1 skipped (test_agentpool_decorator.py and test_custom.py).
  • Pylint: 10.00/10; py_compile and git diff --check passed.
  • Command-loader parser verified --zones auto and -z 1 2 3; source help exposes --zones -z [Preview].
  • East US 2 live test: migrated sysnp from availabilityZones: null to ["auto"]; the operation reached Succeeded, and the replacement VMSS instance was placed in zone 1.

History Notes

[AKS] az aks nodepool update: Add --zones/-z to migrate a regional node pool to automatic zone placement.


  • The PR title and description follow the submitting pull requests guideline.
  • I adhere to the Command Guidelines.
  • I adhere to the Error Handling Guidelines.

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

This PR adds a preview --zones/-z argument to az aks nodepool update to enable migrating a regional AKS node pool to automatic zone placement (--zones auto) while preserving existing zones when the argument is omitted. To satisfy RP constraints, it scopes use of the 2026-01-02-preview API version to only the PUT update call when --zones is explicitly provided, keeping the initial GET and non-zones updates on the stable client.

Changes:

  • Add --zones/-z [Preview] to az aks nodepool update (params + help) to support --zones auto and explicit zone lists.
  • Update the agentpool update decorator to apply availability_zones only when --zones is provided and to use the preview API version only for that PUT.
  • Add unit tests covering zone update behavior and verifying preview-client selection (and preserving custom resource clients).

Reviewed changes

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

Show a summary per file
File Description
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py Adds unit tests for --zones update behavior and preview API selection logic.
src/azure-cli/azure/cli/command_modules/acs/custom.py Adds zones parameter to the aks_agentpool_update command handler signature so it flows into raw parameters.
src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py Implements update_zones() and switches to a preview mgmt client only for PUT when --zones is set.
src/azure-cli/azure/cli/command_modules/acs/_params.py Wires --zones/-z into aks nodepool update as a preview argument with updated help text.
src/azure-cli/azure/cli/command_modules/acs/_help.py Documents --zones/-z for nodepool update and adds an example for --zones auto.
src/azure-cli/azure/cli/command_modules/acs/_consts.py Introduces CONST_AGENTPOOL_UPDATE_ZONES_API_VERSION = "2026-01-02-preview".

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

@wenhug Alex Huang (wenhug) changed the title [AKS] az aks nodepool update: Add --zones for automatic zone placement [AKS] az aks nodepool update: Add --zones for automatic zone placement Aug 25, 2026
@wenhug

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 33976 in repo Azure/azure-cli

@yonzhan

Copy link
Copy Markdown
Collaborator

AKS

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

Copy link
Copy Markdown
Contributor

Live test results — azdev test --live --series (changed test files only)

PASS

Selectors: test_agentpool_decorator (module)
PR head ref: wenhug/aks-nodepool-update-zones
PR head sha: 022126c039fc02a778ecfa918b8117ee5536dfe8
PR base ref: dev
New test files in PR: false

Changed test files run
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py

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

Last 80 lines of azdev output
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_spot_max_price PASSED [ 60%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_update_enable_disable_cluster_autoscaler_and_min_max_count PASSED [ 60%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_update_enable_disable_cluster_autoscaler_and_min_max_count_vmsize_vms PASSED [ 61%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_vm_set_type PASSED [ 61%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_vm_sizes PASSED [ 62%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_vnet_subnet_id PASSED [ 63%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_get_zones PASSED [ 63%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolContextManagedClusterModeTestCase::test_validate_counts_in_autoscaler PASSED [ 64%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_add_agentpool PASSED [ 64%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_construct_agentpool_profile_default PASSED [ 65%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_ensure_agentpool PASSED [ 65%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_init_agentpool PASSED [ 66%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_remove_resotre_defaults_in_agentpool PASSED [ 66%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_agentpool_gateway_profile PASSED [ 67%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_agentpool_security_profile PASSED [ 67%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_agentpool_windows_profile PASSED [ 68%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_artifact_streaming PASSED [ 68%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_auto_scaler_properties PASSED [ 69%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_custom_node_config PASSED [ 69%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_gpu_profile PASSED [ 70%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_gpu_propertes PASSED [ 70%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_label_tag_taint PASSED [ 71%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_node_network_properties PASSED [ 71%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_osdisk_properties PASSED [ 72%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_priority_properties PASSED [ 72%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_snapshot_properties PASSED [ 73%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_upgrade_settings PASSED [ 73%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_virtual_machines_profile PASSED [ 74%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorStandaloneModeTestCase::test_set_up_vm_properties PASSED [ 75%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_construct_agentpool_profile_default PASSED [ 75%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_ensure_agentpool PASSED [ 76%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_init_agentpool PASSED [ 76%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_remove_resotre_defaults_in_agentpool PASSED [ 77%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_agentpool_gateway_profile PASSED [ 77%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_agentpool_security_profile PASSED [ 78%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_agentpool_windows_profile PASSED [ 78%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_auto_scaler_properties PASSED [ 79%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_custom_node_config PASSED [ 79%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_gpu_propertes PASSED [ 80%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_label_tag_taint PASSED [ 80%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_node_network_properties PASSED [ 81%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_osdisk_properties PASSED [ 81%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_priority_properties PASSED [ 82%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_snapshot_properties PASSED [ 82%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_upgrade_settings PASSED [ 83%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_virtual_machines_profile PASSED [ 83%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolAddDecoratorManagedClusterModeTestCase::test_set_up_vm_properties PASSED [ 84%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_ensure_agentpool PASSED [ 84%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_fetch_agentpool PASSED [ 85%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_process_dns_overrides_helper PASSED [ 85%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_agentpool PASSED [ 86%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_agentpool_profile_default PASSED [ 86%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_agentpool_with_zones_keeps_custom_resource_client PASSED [ 87%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_agentpool_with_zones_uses_preview_api PASSED [ 88%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_artifact_streaming PASSED [ 88%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_auto_scaler_properties PASSED [ 89%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_auto_scaler_properties_vms PASSED [ 89%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_fips_image PASSED [ 90%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_gpu_profile PASSED [ 90%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_label_tag_taint PASSED [ 91%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_localdns_profile PASSED [ 91%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_upgrade_settings PASSED [ 92%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_vm_properties PASSED [ 92%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorStandaloneModeTestCase::test_update_zones PASSED [ 93%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_ensure_agentpool PASSED [ 93%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_fetch_agentpool PASSED [ 94%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_process_dns_overrides_helper PASSED [ 94%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_agentpool_profile_default PASSED [ 95%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_artifact_streaming PASSED [ 95%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_auto_scaler_properties PASSED [ 96%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_auto_scaler_properties_vms PASSED [ 96%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_fips_image PASSED [ 97%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_label_tag_taint PASSED [ 97%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_localdns_profile PASSED [ 98%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_upgrade_settings PASSED [ 98%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_vm_properties PASSED [ 99%]
azure-cli/src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py::AKSAgentPoolUpdateDecoratorManagedClusterModeTestCase::test_update_zones PASSED [100%]

- generated xml file: /home/runner/work/issue-sentinel/issue-sentinel/test-output/results.xml -
============================= 192 passed in 3.88s ==============================

Posted by agent-assist live-test workflow.

@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.

Alex Huang (@wenhug)

Pass summary

All 53 CI checks passed and the live test dispatch reused a prior successful run for this head commit. The change is scoped to the acs module (agent pool parameter/decorator work) and includes a corresponding regression test update (test_agentpool_decorator.py, +169/-4), so there is no coverage gap. No review-skill findings were confirmed against the changed lines.

Risk assessment

17/100 · Low · High confidence

The Low rating is driven by public CLI behavior.

  • Change scope: 6 changed files, 222 changed lines (+216 / -6), including 5 production files.
  • Affected components: acs
  • Risk drivers: public CLI behavior (+18)
  • Regression evidence: Changed regression tests are included, reducing risk.
  • Confidence: High because changed-line patches were available for every production file.
  • Required review: Owning-squad review is recommended for acs before merge.

@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 25, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

🔔 Routing this PR to @Azure/act-observability-squad.

@wenhug

Copy link
Copy Markdown
Contributor Author

Closing in favor of Azure/azure-cli-extensions#10248. This node-pool zone migration is currently gated to the preview AKS API (>= 2026-01-02-preview), so it belongs in aks-preview. Official CLI support can be added once the feature is available through a stable AKS API.

Comment on lines +3036 to +3040
update_client = get_mgmt_service_client(
self.cmd.cli_ctx,
ResourceType.MGMT_CONTAINERSERVICE,
api_version=CONST_AGENTPOOL_UPDATE_ZONES_API_VERSION,
).agent_pools

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This sends the full AgentPool fetched with the SDK’s default stable API through a permanently pinned 2026-01-02-preview PUT. That is compatible with SDK 41.5.0 today, but future SDK bumps can add writable stable fields absent from this preview contract; 2026-06-01 already adds networkProfile.dranet. Please couple this pin to SDK upgrades (with a compatibility guard), use a sufficiently recent preview contract, or avoid round-tripping the full stable model through the older API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad AKS az aks/acs/openshift Auto-Assign Auto assign by bot azure-client-tools-agent Pull request reviewed by Azure Client Tools Agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants