Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,35 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------

from azure.cli.core.breaking_change import register_default_value_breaking_change
from azure.cli.core.breaking_change import (
AzCLIOtherChange,
register_default_value_breaking_change,
register_conditional_breaking_change,
)

register_default_value_breaking_change(
'aks create',
'--node-vm-size',
'Standard_DS2_V2 (Linux), Standard_DS2_V3 (Windows)',
'Dynamically Selected By Azure'
)

register_conditional_breaking_change(
tag="aks_create_cluster_autoscaler_profile",
breaking_change=AzCLIOtherChange(
cmd="aks create",
message="The option `--cluster-autoscaler-profile` in command `az aks create` will be changed to "
"allow multiple values for the same key, separated by commas. Different key-value pairs will be separated by "
"spaces.",
),
)

register_conditional_breaking_change(
tag="aks_update_cluster_autoscaler_profile",
breaking_change=AzCLIOtherChange(
cmd="aks update",
message="The option `--cluster-autoscaler-profile` in command `az aks update` will be changed to "
"allow multiple values for the same key, separated by commas. Different key-value pairs will be separated by "
"spaces.",
),
)
Original file line number Diff line number Diff line change
Expand Up @@ -6282,6 +6282,13 @@ def set_up_auto_scaler_profile(self, mc: ManagedCluster) -> ManagedCluster:
self._ensure_mc(mc)

cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()
if cluster_autoscaler_profile is not None:
from azure.cli.core.breaking_change import print_conditional_breaking_change
print_conditional_breaking_change(
self.cmd.cli_ctx,
tag="aks_create_cluster_autoscaler_profile",
custom_logger=logger
)
mc.auto_scaler_profile = cluster_autoscaler_profile
return mc

Expand Down Expand Up @@ -7076,6 +7083,12 @@ def update_auto_scaler_profile(self, mc):
cluster_autoscaler_profile = self.context.get_cluster_autoscaler_profile()
if cluster_autoscaler_profile is not None:
# update profile (may clear profile with empty dictionary)
from azure.cli.core.breaking_change import print_conditional_breaking_change
print_conditional_breaking_change(
self.cmd.cli_ctx,
tag="aks_update_cluster_autoscaler_profile",
custom_logger=logger
)
mc.auto_scaler_profile = cluster_autoscaler_profile
return mc

Expand Down
11 changes: 10 additions & 1 deletion src/azure-cli/azure/cli/command_modules/acs/version_history.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@

| azure-cli | API version | azure-mgmt-containerservice |
|-|-|-|
| 2.55.0 (estimated) | 2023-10-01 | 28.0.0 |
| 2.71.0 | 2025-01-01 | 34.2.0 |
| 2.70.0 | 2024-10-01 | 34.1.0 |
| 2.67.0 | 2024-09-01 | 33.0.0 |
| 2.66.0 | 2024-08-01 | 32.1.0 |
| 2.65.0 | 2024-07-01 | 32.0.0 |
| 2.63.0 | 2024-05-01 | 31.0.0 |
| 2.59.0 | 2024-02-01 | 30.0.0 |
| 2.58.0 | 2024-01-01 | 29.1.0 |
| 2.57.0 | 2023-11-01 | 29.0.0 |
| 2.55.0 | 2023-10-01 | 28.0.0 |
| 2.54.0 | 2023-08-01 | 27.0.0 |
| 2.52.0, 2.53.0, 2.53.1 | 2023-07-01 | 26.0.0 |
| 2.51.0 | 2023-06-01 | 25.0.0 |
Expand Down
Loading