{AKS} Vendor new SDK and bump API version to 2026-01-01#32955
{AKS} Vendor new SDK and bump API version to 2026-01-01#32955FumingZhang wants to merge 10 commits intoAzure:devfrom
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks delete | cmd aks delete added parameter if_none_match |
||
| aks delete | cmd aks delete update parameter resource_name: updated property name from resource_name to name |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
2cce8a3 to
53edac2
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the Azure CLI AKS module to use a newer azure-mgmt-containerservice SDK (v41) and bumps the recorded ARM api-version to 2026-01-01, aligning CLI behavior/tests with the updated SDK surface (notably ETag/match-condition handling and model shape changes).
Changes:
- Bump
azure-mgmt-containerservicedependency to41.0.0(range + platform pins). - Update AKS module code/tests to use the new SDK request kwargs (
etag/match_condition) and updated model fields. - Refresh test recordings to
api-version=2026-01-01and adjust related tests/commands.
Reviewed changes
Copilot reviewed 145 out of 227 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/setup.py | Updates SDK dependency range for containerservice to ~=41.0.0. |
| src/azure-cli/requirements.py3.windows.txt | Pins containerservice SDK to 41.0.0 on Windows. |
| src/azure-cli/requirements.py3.Linux.txt | Pins containerservice SDK to 41.0.0 on Linux. |
| src/azure-cli/requirements.py3.Darwin.txt | Pins containerservice SDK to 41.0.0 on macOS. |
| src/azure-cli/azure/cli/command_modules/acs/custom.py | Adapts AKS operations to new SDK args/model shapes (notably ETag kwarg handling). |
| src/azure-cli/azure/cli/command_modules/acs/commands.py | Updates operations template paths to the new SDK operations module structure. |
| src/azure-cli/azure/cli/command_modules/acs/agentpool_decorator.py | Adjusts agentpool model field access and ETag kwarg usage for create/update flows. |
| src/azure-cli/azure/cli/command_modules/acs/_helpers.py | Adds build_etag_kwargs helper and updates vnet-integration detection to typed field. |
| src/azure-cli/azure/cli/command_modules/acs/_help.py | Documents new --etag / --match-condition parameters for aks delete. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py | Updates tests to use typed enable_vnet_integration instead of additional_properties. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py | Updates tests to use --etag instead of --if-match. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_agentpool_decorator.py | Updates agentpool decorator tests for new model shapes/fields. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_list_trustedaccess_roles.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_upgrade_node_image_only_nodepool_msi.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_upgrade_node_image_only_nodepool.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_upgrade_node_image_only_cluster_msi.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_upgrade_node_image_only_cluster.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_with_oidc_issuer_enabled.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_update_outbound_from_slb_to_natgateway.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_stop_and_start_private_cluster.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_stop_and_start.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_aad_msi.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_managed_aad.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_get_version_table.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_enable_utlra_ssd.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_enable_openservicemesh_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_enable_addons_confcom_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_disable_openservicemesh_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_disable_addons_confcom_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_deployment_safeguards.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_workload_identity_enabled.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_vpa.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_pod_ip_allocation_mode_static_block.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_paid_sku.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_overlay_network_plugin_mode.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_ossku.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_openservicemesh_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_oidc_issuer_enabled.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_nsg_control.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_node_os_upgrade_channel_security_patch.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_network_plugin_none.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_network_dataplane_cilium.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_managed_disk.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_ingress_appgw_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_image_cleaner_enabled_with_interval_hours.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_image_cleaner_enabled_with_default_interval_hours.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_ephemeral_disk.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_enable_cost_analysis.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_enable_ai_toolchain_operator.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_enable_acns.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_custom_monitoring_workspace.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_confcom_addon_helper_enabled.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_confcom_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_azurekeyvaultsecretsprovider_addon.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_app_routing_enabled_and_nginx_specified_abbrv.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_app_routing_enabled_and_nginx_specified.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_app_routing_enabled.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_apiserver_vnet_integration_public.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_with_apiserver_vnet_integration.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_nonaad_and_update_with_managed_aad.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_node_resource_group.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_node_public_ip.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_node_provisioning_profile.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_no_ssh_key.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_network_cidr.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_enable_encryption.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_enable_azure_rbac.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_edge_zone.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_dualstack_with_default_network.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_disable_rbac.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_default_service_without_skip_role_assignment.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_default_service_with_skip_role_assignment_msi.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_default_service_with_skip_role_assignment.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_and_update_with_managed_nat_gateway_outbound.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_again_should_fail.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_addon_with_azurekeyvaultsecretsprovider_with_secret_rotation.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_add_nodepool_with_custom_ca_trust_certificates.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_cluster_kata.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_browse.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_azure_service_mesh_get_revisions.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_approuting_enable_with_internal_nginx_then_disable.yaml | Updates recordings to api-version=2026-01-01. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_abort.yaml | Updates recordings to api-version=2026-01-01 (and fixes abort URI casing). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
Description
{AKS} Vendor new SDK and bump API version to 2026-01-01, based on Azure/azure-sdk-for-python#45636
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.