Update AKS agent pool API version - #1298
Merged
Karen Chen (karenychen) merged 4 commits intoAug 24, 2026
Merged
Conversation
|
For reviewers only: reply |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the AKS Machine client’s agent pool ARM REST api-version to a newer preview (2025-06-02-preview) to match what ARM advertises, and adjusts the unit test to assert the chosen API version.
Changes:
- Bump agent pool REST request
api-versionfrom2024-06-02-previewto2025-06-02-preview. - Update the Machine client unit test to validate the API version used in the agent pool request.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| modules/python/clients/aks_machine_client.py | Updates _AGENTPOOL_API_VERSION used in agent pool ARM URLs to 2025-06-02-preview. |
| modules/python/tests/test_aks_machine_client.py | Adjusts create_machine_agentpool test assertions to check the selected api-version. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Liyu Ma (liyu-ma)
approved these changes
Aug 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2024-06-02-previewto2025-06-02-previewContext
The
K8S CLUSTER CRUD MACHINEpipeline has failed since July 23 because ARM no longer advertises2024-06-02-previewforMicrosoft.ContainerService/managedClustersin Canada Central. The current provider manifest advertises2025-06-02-preview.Validation
PYTHONPATH=modules/python python3.12 -m pytest -q modules/python/tests/test_aks_machine_client.py(38 passed, 3 subtests passed)PYTHONPATH=modules/python pylint modules/python/clients/aks_machine_client.py modules/python/tests/test_aks_machine_client.py(10.00/10)python3.12 -m compileall -q modules/python/clients/aks_machine_client.py modules/python/tests/test_aks_machine_client.pygit diff --check