[AKS] az aks update: Support updating load balancer sku from basic to standard#31874
[AKS] az aks update: Support updating load balancer sku from basic to standard#31874zhoxing-ms merged 1 commit intoAzure:devfrom
az aks update: Support updating load balancer sku from basic to standard#31874Conversation
️✔️AzureCLI-FullTest
|
|
Hi @nilo19, |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks update | cmd aks update added parameter load_balancer_sku |
|
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 support for updating the load balancer SKU from basic to standard in AKS clusters through the az aks update command. The implementation modifies the load balancer SKU handling logic to support update scenarios and adds the --load-balancer-sku standard parameter to the update command.
Key changes include:
- Modified load balancer SKU getter to handle UPDATE mode properly by reading from existing cluster when parameter is None
- Added load balancer SKU update logic to the network profile update method
- Extended the update command to accept the load balancer SKU parameter with validation
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| managed_cluster_decorator.py | Updated _get_load_balancer_sku method to support UPDATE mode and added SKU update logic in update_network_profile |
| custom.py | Added load_balancer_sku parameter to the aks_update function signature |
| _params.py | Added load balancer SKU argument configuration for the update command with validation |
| _help.py | Added help documentation for the new --load-balancer-sku parameter and usage example |
| test_managed_cluster_decorator.py | Added comprehensive test coverage for the new functionality including UPDATE mode scenarios |
| long-summary: Define the LoadBalancer backend pool type of managed inbound backend pool. The nodeIP means the VMs will be attached to the LoadBalancer by adding its private IP address to the backend pool. The nodeIPConfiguration means the VMs will be attached to the LoadBalancer by referencing the backend pool ID in the VM's NIC. | ||
| - name: --load-balancer-sku | ||
| type: string | ||
| short-summary: Azure Load Balancer SKU selection for your cluster. only standard is accepted. |
There was a problem hiding this comment.
The help message should start with an active voice verb. Consider changing 'Azure Load Balancer SKU selection for your cluster. only standard is accepted.' to 'Select Azure Load Balancer SKU for your cluster. Only standard is accepted.'
| - name: --load-balancer-sku | ||
| type: string | ||
| short-summary: Azure Load Balancer SKU selection for your cluster. only standard is accepted. | ||
| long-summary: Upgrade to Standard Azure Load Balancer SKU for your AKS cluster. |
There was a problem hiding this comment.
The help message should start with an active voice verb in first person. Consider changing 'Upgrade to Standard Azure Load Balancer SKU for your AKS cluster.' to 'Upgrade your AKS cluster to Standard Azure Load Balancer SKU.'
| long-summary: Define the LoadBalancer backend pool type of managed inbound backend pool. The nodeIP means the VMs will be attached to the LoadBalancer by adding its private IP address to the backend pool. The nodeIPConfiguration means the VMs will be attached to the LoadBalancer by referencing the backend pool ID in the VM's NIC. | ||
| - name: --load-balancer-sku | ||
| type: string | ||
| short-summary: Azure Load Balancer SKU selection for your cluster. only standard is accepted. |
There was a problem hiding this comment.
The word 'only' should be capitalized at the beginning of the sentence: 'Only standard is accepted.'
| short-summary: Azure Load Balancer SKU selection for your cluster. only standard is accepted. | |
| short-summary: Azure Load Balancer SKU selection for your cluster. Only standard is accepted. |
20f57de to
9b46c93
Compare
|
related: Azure/azure-cli-extensions#8731 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
az aks update: Support updating load balancer sku from basic to standard
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az aks update --load-balancer-sku standard
Description
feat: Support updating load balancer sku from basic to standard
Testing Guide
az aks update --load-balancer-sku standard # migrate from basic lb to standard
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing 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.