Skip to content

Commit

Permalink
{AKS} az aks upgrade: Fix the validation bug of tier switch (Azure#29949
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wenxuan0923 authored Oct 8, 2024
1 parent b922a96 commit c8abe8b
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 680 deletions.
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/acs/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def aks_upgrade(cmd,
if k8s_support_plan is not None:
instance.support_plan = k8s_support_plan

if (instance.support_plan == KubernetesSupportPlan.AKS_LONG_TERM_SUPPORT and instance.tier is not None and instance.tier.lower() != CONST_MANAGED_CLUSTER_SKU_TIER_PREMIUM.lower()):
if (instance.support_plan == KubernetesSupportPlan.AKS_LONG_TERM_SUPPORT and instance.sku.tier is not None and instance.sku.tier.lower() != CONST_MANAGED_CLUSTER_SKU_TIER_PREMIUM.lower()):
raise CLIError("AKS Long Term Support is only available for Premium tier clusters.")

instance = _update_upgrade_settings(
Expand Down
Loading

0 comments on commit c8abe8b

Please sign in to comment.