Skip to content

[AKS] az aks update: Fix bug where autoscale profile boolean values could be incorrectly serialized as strings - #34058

Open
Matthew Christopher (matthchr) wants to merge 1 commit into
Azure:devfrom
matthchr:matthchr/fix-autoscale-cli
Open

[AKS] az aks update: Fix bug where autoscale profile boolean values could be incorrectly serialized as strings#34058
Matthew Christopher (matthchr) wants to merge 1 commit into
Azure:devfrom
matthchr:matthchr/fix-autoscale-cli

Conversation

@matthchr

@matthchr Matthew Christopher (matthchr) commented Sep 10, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Related command
az aks update
az aks create

Description
Fix a bug in az aks update where string flags were not getting translated to booleans properly

Testing Guide

History Notes


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

Copilot AI lite review requested due to automatic review settings September 10, 2026 23:03
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

Fixes AKS autoscaler profile boolean serialization for az aks create and az aks update.

Changes:

  • Converts supported string boolean values to booleans.
  • Rejects invalid boolean values.
  • Adds focused unit tests and updates type annotations.
File summaries
File Description
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_managed_cluster_decorator.py Tests boolean conversion, existing booleans, and invalid values.
src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py Normalizes and validates autoscaler boolean fields.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tallaxes Alex Leites (tallaxes) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@yonzhan

Copy link
Copy Markdown
Collaborator

AKS

@FumingZhang

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-observability-squad 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