diff --git a/modules/python/clients/aks_machine_client.py b/modules/python/clients/aks_machine_client.py index 158f5e32c2..b760fe3ddd 100644 --- a/modules/python/clients/aks_machine_client.py +++ b/modules/python/clients/aks_machine_client.py @@ -31,7 +31,7 @@ _ARM_BASE = "https://management.azure.com" _ARM_SCOPE = "https://management.azure.com/.default" -_AGENTPOOL_API_VERSION = "2024-06-02-preview" +_AGENTPOOL_API_VERSION = "2025-06-02-preview" _MACHINE_API_VERSION = "2025-06-02-preview" _POLL_INTERVAL_SECONDS = 10 # Per-request HTTP timeout is capped so that a single slow PUT/GET cannot diff --git a/modules/python/tests/test_aks_machine_client.py b/modules/python/tests/test_aks_machine_client.py index 062420ad02..fb3f34e5e2 100644 --- a/modules/python/tests/test_aks_machine_client.py +++ b/modules/python/tests/test_aks_machine_client.py @@ -78,7 +78,7 @@ def test_create_machine_agentpool_success(self, mock_make_request, _mock_wait): mock_make_request.assert_called_once() call_args = mock_make_request.call_args - self.assertEqual(call_args.args[0], "PUT") + self.assertTrue(call_args.args[1].endswith("api-version=2025-06-02-preview")) self.assertEqual(call_args.kwargs["data"], {"properties": {"mode": "Machines"}}) metadata_keys = { call.args[0] for call in self.mock_operation.add_metadata.call_args_list