Skip to content

{AKS} Remove readOnly for nodeImageVersion#9742

Draft
FumingZhang wants to merge 2 commits intoAzure:mainfrom
FumingZhang:fuming/remove-nodeimageversion-readonly-extended
Draft

{AKS} Remove readOnly for nodeImageVersion#9742
FumingZhang wants to merge 2 commits intoAzure:mainfrom
FumingZhang:fuming/remove-nodeimageversion-readonly-extended

Conversation

@FumingZhang
Copy link
Copy Markdown
Member


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

Related command

{AKS} Remove readOnly for nodeImageVersion

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

indu and others added 2 commits March 27, 2026 18:45
… rollback

The TypeSpec conversion in Azure/azure-rest-api-specs#38641 incorrectly
re-added readOnly to nodeImageVersion in agent pool models. This was
intentionally removed in Azure/azure-rest-api-specs#37229 to enable
agentpool rollback functionality.

The upstream spec fix is tracked in Azure/azure-rest-api-specs#41598 but
vendoring may take a week+. This is a temporary SDK-level workaround to
unblock the rollback feature that is already in preview for customers.

Removes readonly from nodeImageVersion in:
- AgentPool
- ManagedClusterAgentPoolProfileProperties
- ManagedClusterAgentPoolProfile

MachineProperties and Snapshot retain readonly as nodeImageVersion is
genuinely read-only on those resources.
@azure-client-tools-bot-prd
Copy link
Copy Markdown

Hi @FumingZhang,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Mar 30, 2026

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Mar 30, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown
Contributor

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).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Copy Markdown
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

@github-actions
Copy link
Copy Markdown
Contributor

Hi @FumingZhang

Release Suggestions

Module: aks-preview

  • Please log updates into to src/aks-preview/HISTORY.rst
  • Update VERSION to 19.0.0b29 in src/aks-preview/setup.py

Notes

InduSridhar pushed a commit to InduSridhar/azure-cli-extensions that referenced this pull request Mar 30, 2026
Per reviewer feedback (FumingZhang), in addition to removing readonly
from _validation, the __init__ methods need to accept node_image_version
as a parameter and assign it instead of hardcoding None. Without this,
the serializer still cannot pass the value through during rollback.

Changes for AgentPool, ManagedClusterAgentPoolProfileProperties, and
ManagedClusterAgentPoolProfile (matching Azure#9742 pattern).
MachineProperties and Snapshot are unchanged (genuinely read-only).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants