Skip to content

Conversation

@matthchr
Copy link
Member

Related command
az aks

Description
Add two new options to the AKS CLI --node-provisioning-mode and --node-provisioning-default-pools.

These options are related to the node auto-provisioning (aka.ms/nap) feature GA.

Testing Guide

# Create an AKS cluster with node auto-provisioning
aks create --resource-group={resource_group} --name={name} --location={location}
  --ssh-key-value={ssh_key_value} --node-count=1 --enable-managed-identity --network-plugin azure
  --network-plugin-mode overlay --network-dataplane cilium --node-provisioning-mode=Auto
  --node-provisioning-default-pools=Auto

# Update an existing cluster to enable node auto-provisioning
aks update --resource-group={resource_group} --name={name} --node-provisioning-mode=Auto

This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings July 17, 2025 18:36
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 17, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 17, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️acs
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter node_provisioning_default_pools
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter node_provisioning_mode
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter node_provisioning_default_pools
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter node_provisioning_mode

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 17, 2025

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

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

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 adds support for the --node-provisioning-mode and --node-provisioning-default-pools parameters to the AKS CLI, enabling the new node auto-provisioning feature. The changes include parameter definitions, decorator functions for setting up and updating node provisioning profiles, and comprehensive test coverage.

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
custom.py Added parameter definitions for node provisioning mode and default pools
managed_cluster_decorator.py Implemented core functionality for setting up and updating node provisioning profiles
test_managed_cluster_decorator.py Added unit tests for node provisioning profile setup and update functions
test_aks_commands.py Added integration tests for create/update commands with node provisioning parameters
test_aks_create_node_provisioning_profile.yaml Test recording file for node provisioning profile creation
Comments suppressed due to low confidence (1)

src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_aks_commands.py:10845

  • Remove the stray '-' character on line 12952. This appears to be a formatting artifact that should be cleaned up.
        # find the latest non-LTS version in the

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot AKS az aks/acs/openshift labels Jul 17, 2025
@matthchr matthchr force-pushed the matthchr/nap-ga branch 2 times, most recently from 57fbd39 to 28eb0ce Compare July 17, 2025 18:47
@matthchr matthchr requested a review from kairu-ms as a code owner July 17, 2025 18:47
@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, queued live test to validate the change, test passed!

  • test_aks_create_node_provisioning_profile
  • test_aks_update_node_provisioning_profile

@matthchr matthchr changed the title [AKS] az aks: Add --node-provisioning-mode and --node-provisioning-default-pools parameters [AKS] az aks: Add --node-provisioning-mode and --node-provisioning-default-pools parameters Jul 18, 2025
@matthchr matthchr force-pushed the matthchr/nap-ga branch 2 times, most recently from d1b53ac to 50983db Compare July 18, 2025 18:17
@matthchr
Copy link
Member Author

I fixed the test/lint issues:

  • Title of PR
  • One unit test that was still using preview class names rather than GA class names
  • The two live tests which I mistakenly recorded with the aks-preview extension installed so they were using the wrong api version (2025-05-02-preview rather than 2025-05-01)

@matthchr
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 31836 in repo Azure/azure-cli

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 19, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

FumingZhang
FumingZhang previously approved these changes Jul 21, 2025
@yanzhudd
Copy link
Contributor

please resolve the code conflicts.

--node-provisioning-mode and --node-provisioning-default-pools
@matthchr
Copy link
Member Author

Conflicts resolved and I rebased.

Please merge when you can to avoid additional conflicts

@FumingZhang
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@zhoxing-ms zhoxing-ms merged commit ab839e7 into Azure:dev Jul 23, 2025
48 checks passed
@matthchr matthchr deleted the matthchr/nap-ga branch July 23, 2025 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS az aks/acs/openshift Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants