[AKS] az aks create/update: Add --sku parameter to support for automatic feature#31981
[AKS] az aks create/update: Add --sku parameter to support for automatic feature#31981
az aks create/update: Add --sku parameter to support for automatic feature#31981Conversation
️✔️AzureCLI-FullTest
|
|
Hi @xmzhao0822, |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks create | cmd aks create added parameter sku |
||
| aks update | cmd aks update added parameter sku |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds the --sku parameter to the az aks create and az aks update commands to support the GA release of AKS Automatic SKU. The feature enables users to specify cluster SKU types, with support for "base" (standard clusters) and "automatic" (managed automatic clusters with enhanced features).
Key changes include:
- Addition of the
--skuparameter with support for "base" and "automatic" values - Automatic configuration of monitoring, authentication, and networking settings for automatic SKU
- Comprehensive test coverage for the new functionality
Reviewed Changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
_params.py |
Adds the --sku parameter definition and argument configuration |
_help.py |
Adds help text documentation for the new --sku parameter |
_consts.py |
Defines constants for SKU name values (base and automatic) |
custom.py |
Adds the sku parameter to function signatures |
managed_cluster_decorator.py |
Implements core logic for SKU handling, including automatic feature enablement |
agentpool_decorator.py |
Handles VM size logic for automatic SKU clusters |
test_managed_cluster_decorator.py |
Comprehensive unit tests for SKU functionality |
test_aks_commands.py |
Integration tests for the automatic SKU feature |
test_agentpool_decorator.py |
Tests for agentpool-specific SKU behavior |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Queued live test to validate the change, test passed!
- test_aks_automatic_sku
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az aks create/update: Add --sku parameter to support for automatic feature


Related command
az aks create -g -n --sku automaticaz aks update -g -n --sku baseDescription
GA the feature for AKS Automatic. Most logic are copied from AKS cli extension.
Testing Guide
az aks create -g -n --sku automaticaz aks update -g -n --sku baseHistory Notes
[AKS]
az aks create/update: Add--skuparameter to support automatic featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.