{Batchai} Migrate vm size completer of calling Compute module to aaz-based implementation#32948
{Batchai} Migrate vm size completer of calling Compute module to aaz-based implementation#32948william051200 wants to merge 3 commits intoAzure:devfrom
Conversation
❌AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
This PR updates the BatchAI --vm-size completer to stop using the Compute SDK client factory and instead call the VM module’s AAZ-based implementation for listing VM sizes, aligning BatchAI with ongoing AAZ migration work.
Changes:
- Replaced
mgmt.computeclient usage withVMListSizes(AAZ-backed) to fetch VM sizes. - Adjusted the completer to extract size names from AAZ-deserialized dict output.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az batchai cluster createaz batchai file-server createDescription
Migration from mgmt.compute to aaz-based
Updating vm list size version to 2024-11-01 to avoid breaking change
aaz Azure/aaz#967
Testing Guide
History Notes
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.