Skip to content

[AKS] az aks nodepool add: Add --enable-managed-gpu for Managed GPU GA - #34260

Closed
sulixu wants to merge 1 commit into
Azure:devfrom
sulixu:sulixu/managed-gpu-ga-cli
Closed

sulixu wants to merge 1 commit into
Azure:devfrom
sulixu:sulixu/managed-gpu-ga-cli

Conversation

@sulixu

@sulixu sulixu commented Oct 22, 2026

Copy link
Copy Markdown

Related command

az aks nodepool add
az aks nodepool update (preserve the existing GPU profile only)

Description

Move basic Managed GPU enablement from aks-preview into the built-in AKS command module.

  • Add the non-preview --enable-managed-gpu three-state argument to az aks nodepool add.
  • When enabled, send gpuProfile.driver=Install and gpuProfile.nvidia.managementMode=Managed.
  • Preserve the existing default when the argument is omitted or false.
  • Reject --enable-managed-gpu true --gpu-driver None before submitting a node-pool write.
  • Preserve the complete GPU profile when setting the driver, including during unrelated autoscaler, label, and tag updates.
  • Add core help, focused regression tests, and a live-only creation/tag-update scenario.

Scope and service contract

The existing azure-mgmt-containerservice==41.8.0 dependency and stable 2026-08-01 API already contain GPUProfile.nvidia.managementMode. No SDK version change is needed.

This PR does not promote DRA/driver-mode or managed MIG strategy/profile arguments. Those fields are not in this stable API's NVIDIA GPU profile.

This PR also does not expose a new Managed GPU enable/disable argument on nodepool update. The current published service contract makes GPU management mode immutable. An unrelated update must preserve the existing value, not attempt to convert a pool.

References:

Testing Guide

Completed locally against this checkout's CLI/core sources and the exact stable Container Service SDK 41.8.0:

  • test_managed_gpu: 10 tests passed, with subtests for argument values, driver conflicts, both agent-pool model shapes, and preservation during unrelated updates.
  • test_agentpool_decorator: 201 tests passed.
  • test_custom: 167 tests run; 166 passed and 1 skipped.
  • Core az aks nodepool add --help: verified that the new argument and example are present without loading aks-preview.
  • Python compilation of all changed Python files and git diff --check: passed.
python -m unittest \
  azure.cli.command_modules.acs.tests.latest.test_managed_gpu \
  azure.cli.command_modules.acs.tests.latest.test_agentpool_decorator \
  azure.cli.command_modules.acs.tests.latest.test_custom -q

The normal clean development-environment installation was blocked by package download failures. The checks above used an isolated configuration/extension directory, the checked-out source packages, a locally installed 41.8.0 SDK, and the existing CLI installation's remaining dependencies. No system package was changed.

Before marking ready

  • Confirm Managed GPU GA release timing and any feature-registration requirements with the service owner.
  • Run the new live-only test_aks_nodepool_add_with_managed_gpu scenario in an approved GPU test subscription. No Azure resources were provisioned during local validation.
  • Run azdev style acs and azdev linter acs in the normal development/CI environment. Local style-tool downloads were unavailable.
  • Validate with aks-preview installed; schedule extension deduplication/minimum-core-version changes after the core release.

History Notes

[AKS] az aks nodepool add: Add --enable-managed-gpu for AKS-managed NVIDIA GPU components
[AKS] az aks nodepool add/update: Preserve NVIDIA GPU settings when setting --gpu-driver


  • The PR title and description follow the submitting-pull-requests guidelines.
  • The change follows the command guidelines.
  • The change follows the error-handling guidelines.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 22, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution sulixu! We will review the pull request and get back to you soon.

@yonzhan

Copy link
Copy Markdown
Collaborator

AKS

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

Labels

act-observability-squad act-platform-engineering-squad AKS az aks/acs/openshift Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Installation Reservations az reservations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants