Skip to content

Update AKS agent pool API version - #1298

Merged
Karen Chen (karenychen) merged 4 commits into
mainfrom
codex/update-agentpool-api-version
Aug 24, 2026
Merged

Update AKS agent pool API version#1298
Karen Chen (karenychen) merged 4 commits into
mainfrom
codex/update-agentpool-api-version

Conversation

@karenychen

Copy link
Copy Markdown
Contributor

Summary

  • update agent pool REST requests from 2024-06-02-preview to 2025-06-02-preview
  • assert the selected API version in the Machine client unit test

Context

The K8S CLUSTER CRUD MACHINE pipeline has failed since July 23 because ARM no longer advertises 2024-06-02-preview for Microsoft.ContainerService/managedClusters in Canada Central. The current provider manifest advertises 2025-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.py
  • git diff --check
  • live validation: queue Azure DevOps definition 14 from this branch and verify the agent-pool PUT plus Machine CRUD complete

@github-actions

Copy link
Copy Markdown

For reviewers only: reply /run-tf-integration to trigger the terraform integration pipeline before approving the PR.

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 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-version from 2024-06-02-preview to 2025-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.

Comment thread modules/python/tests/test_aks_machine_client.py
@karenychen
Karen Chen (karenychen) merged commit 1d6d38e into main Aug 24, 2026
4 checks passed
@karenychen
Karen Chen (karenychen) deleted the codex/update-agentpool-api-version branch August 24, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants