[AKS] az aks nodepool add/update: Add --enable-managed-dranet - #10266
Conversation
|
Hi Evan Baker (@rbtr), |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
This PR adds a new preview flag --enable-managed-dranet to az aks nodepool add and az aks nodepool update in the aks-preview extension, wiring it through the decorator pipeline so the request sets networkProfile.dranet.mode=Managed using the vendored 2026-06-02-preview SDK. It also bumps the extension version and updates docs/tests accordingly.
Changes:
- Add
--enable-managed-dranetparameter to nodepool add/update, and setAgentPoolNetworkProfile.dranet.mode="Managed"when enabled. - Update help text and changelog entry for the new preview feature.
- Add unit tests covering context/getter behavior and decorator network profile setup/update behavior for Managed DRANET.
Show a summary per file
| File | Description |
|---|---|
| src/aks-preview/setup.py | Bumps aks-preview version to 22.0.0b6. |
| src/aks-preview/HISTORY.rst | Adds release notes entry documenting the new preview flag. |
| src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py | Adds tests for managed DRANET context/getter and decorator network profile behavior. |
| src/aks-preview/azext_aks_preview/custom.py | Adds enable_managed_dranet to nodepool add/update command function signatures and passes through locals() into decorators. |
| src/aks-preview/azext_aks_preview/agentpool_decorator.py | Implements getter and sets network_profile.dranet to Managed during add/update flows. |
| src/aks-preview/azext_aks_preview/_params.py | Registers enable_managed_dranet CLI argument for nodepool add/update. |
| src/aks-preview/azext_aks_preview/_help.py | Documents --enable-managed-dranet for nodepool add/update help. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Lite
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
please resolve the code conflicts. |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
[Release] Update index.json for extension [ aks-preview-22.0.0b6 ] : https://dev.azure.com/msazure/One/_build/results?buildId=179261014&view=results |
🤖 PR Validation — ❌ Action needed
❌Azure CLI Extensions Breaking Change Test
Related command
az aks nodepool addaz aks nodepool updateDescription
Adds the preview
--enable-managed-dranetflag to AKS node pool create and update commands. When specified, the command sendsnetworkProfile.dranet.mode=Managedthrough the existing2026-06-02-previewvendored SDK; when omitted during update, the existing DRANET profile is preserved.This bumps
aks-previewto22.0.0b6so the option can ship on the extension release cadence. The companion stable implementation is staged in rbtr/azure-cli:rbtr/dranet-stable-cli for the core CLI release train.Validation
azdev style aks-previewazdev linter --include-whl-extensions aks-preview --min-severity mediumazdev test azext_aks_preview -a -k managed_dranetpython scripts/ci/test_index.py -qGeneral Guidelines
src/index.jsonis unchanged; publication automation will update it after merge.