Skip to content

Adding enable ultra ssd, eviction policy, and spot max price support for machine#9696

Open
erinborders wants to merge 26 commits intoAzure:mainfrom
erinborders:erinborders/machine-preview
Open

Adding enable ultra ssd, eviction policy, and spot max price support for machine#9696
erinborders wants to merge 26 commits intoAzure:mainfrom
erinborders:erinborders/machine-preview

Conversation

@erinborders
Copy link
Copy Markdown

@erinborders erinborders commented Mar 17, 2026


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

Related command

az aks machine add

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.

Copilot AI review requested due to automatic review settings March 17, 2026 15:41
@azure-client-tools-bot-prd
Copy link
Copy Markdown

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

❌Azure CLI Extensions Breaking Change Test
❌aks-agent
rule cmd_name rule_message suggest_message
1007 - ParaRemove aks agent-cleanup cmd aks agent-cleanup removed parameter yes please add back parameter yes for cmd aks agent-cleanup
❌aks-preview
rule cmd_name rule_message suggest_message
1007 - ParaRemove aks nodepool update cmd aks nodepool update removed parameter disable_artifact_streaming please add back parameter disable_artifact_streaming for cmd aks nodepool update
⚠️ 1006 - ParaAdd aks machine add cmd aks machine add added parameter enable_ultra_ssd
⚠️ 1006 - ParaAdd aks machine add cmd aks machine add added parameter eviction_policy
⚠️ 1006 - ParaAdd aks machine add cmd aks machine add added parameter spot_max_price

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

Hi @erinborders,
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.

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Mar 17, 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

github-actions bot commented Mar 17, 2026

Hi @erinborders

Release Suggestions

Module: aks-preview

  • Update VERSION to 19.0.0b29 in src/aks-preview/setup.py

Notes

@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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Copy Markdown
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

Could you add some unit tests? It would also be helpful to include a scenario test (e2e test) in test_aks_commands.py.

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

Copy link
Copy Markdown
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

Queued live test to validate the change. Once test passed, please commit the recording file (find it from pipeline artifacts) to pass the CI check.

  • test_aks_machine_add_spot_and_ultra_ssd

@FumingZhang
Copy link
Copy Markdown
Member

fixing the linter error about az aks delete in #9703

Please rebase from main to pick up the fix, cc @erinborders

The CI GH Azdev Linter / azdev-linter (pull_request_target) sets up the test environment based on your branch's HEAD, not the merge reference, so it won't automatically pick up the fix.

@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@FumingZhang
Copy link
Copy Markdown
Member

Queued live test to validate the change. Once test passed, please commit the recording file (find it from pipeline artifacts) to pass the CI check.

  • test_aks_machine_add_spot_and_ultra_ssd

Re-queued live test

@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@FumingZhang
Copy link
Copy Markdown
Member

Re-queued live test. Don't forget to commit the recording file after the live test has passed to ensure the CI checks are successful.

@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

}

def __init__(self, *, properties: Optional["_models.MachineProperties"] = None, **kwargs: Any) -> None:
def __init__(self, *, properties: Optional["_models.MachineProperties"] = None, zones: Optional[List[str]] = None, **kwargs: Any) -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's unusual to manually update the generated SDK. If zones aren't meant to be read-only, this should be adjusted in the API specification; otherwise, the change will be overwritten the next time the SDK is generated.

operation_group="machines"
)
machineBillingProfile = MachineBillingProfile(
spot_max_price=spot_max_price
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the default value float("nan") is not standard in JSON

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

oh I modeled this off of aks_agentpool_add which also has the spot_max_price property

@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 2 pipeline(s).

@FumingZhang
Copy link
Copy Markdown
Member

Re-queued live test. Don't forget to commit the recording file after the live test has passed to ensure the CI checks are successful.

Re-queued live test

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.

6 participants