Repository navigation
feat: Add az aiinfraoptimization initial setup - #10540
Naga Nandyala (naga-nandyala) merged 6 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The new VM recommendation command lacks executable scenario coverage, and its published summary does not describe the functionality as required by the linked guidelines.
2 open issues
What changed in this PR
Introduces the aiinfraoptimization Azure CLI extension with an experimental command for recommending Azure virtual machine sizes for AI inference workloads.
Changes:
- Adds
az aiinfraoptimization recommendvmskuwith model, workload, deployment, and optimization inputs. - Implements request serialization and response handling for the
2026-06-01-previewAPI. - Adds extension packaging, loader integration, documentation scaffolding, and a placeholder scenario test.
| File | Description |
|---|---|
src/aiinfraoptimization/setup.py |
Defines package metadata and initial beta version. |
src/aiinfraoptimization/setup.cfg |
Adds a configuration placeholder. |
src/aiinfraoptimization/README.md |
Introduces the extension with a usage placeholder. |
src/aiinfraoptimization/HISTORY.rst |
Records the initial release. |
src/aiinfraoptimization/azext_aiinfraoptimization/tests/latest/test_aiinfraoptimization.py |
Adds an empty scenario-test class. |
src/aiinfraoptimization/azext_aiinfraoptimization/tests/latest/__init__.py |
Initializes the latest-version test package. |
src/aiinfraoptimization/azext_aiinfraoptimization/tests/__init__.py |
Initializes the test package. |
src/aiinfraoptimization/azext_aiinfraoptimization/custom.py |
Adds custom-command scaffolding. |
src/aiinfraoptimization/azext_aiinfraoptimization/commands.py |
Adds a custom command-registration hook. |
src/aiinfraoptimization/azext_aiinfraoptimization/azext_metadata.json |
Marks preview status and minimum CLI version. |
src/aiinfraoptimization/azext_aiinfraoptimization/aaz/latest/aiinfraoptimization/_recommendvmsku.py |
Implements recommendation arguments, HTTP requests, and response schemas. |
src/aiinfraoptimization/azext_aiinfraoptimization/aaz/latest/aiinfraoptimization/__init__.py |
Exports the generated command and group. |
src/aiinfraoptimization/azext_aiinfraoptimization/aaz/latest/aiinfraoptimization/__cmd_group.py |
Registers the experimental command group. |
src/aiinfraoptimization/azext_aiinfraoptimization/aaz/latest/__init__.py |
Initializes the latest generated-command package. |
src/aiinfraoptimization/azext_aiinfraoptimization/aaz/__init__.py |
Initializes the generated-command package. |
src/aiinfraoptimization/azext_aiinfraoptimization/_params.py |
Adds a custom argument-loading hook. |
src/aiinfraoptimization/azext_aiinfraoptimization/_help.py |
Adds help-registration scaffolding. |
src/aiinfraoptimization/azext_aiinfraoptimization/__init__.py |
Connects the extension loader to generated commands. |
Review effort: Balanced
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 10540 in repo Azure/azure-cli-extensions |
|
Aditya Pujara (@a0x1ab) please could you execute |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
Aditya Pujara (@a0x1ab) please could you execute |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
aaz: Azure/aaz#1150 |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
Kunal Karmakar (@kkarmakarMS) No confirmed semantic findings at this head. The existing Copilot description concern is resolved: Reviewed command registration, request/output mappings, error propagation, packaging, help and release history. The author-provided scenarios in Not verified: live execution, independent recording provenance, generator reproducibility, minimum-core runtime compatibility or sovereign-cloud availability. Owning-squad review remains required. Review detailsUpstream CICI reports six completed checks, five passed, zero failed and none pending. Committed scenarios and recordings are author-provided evidence, not Agent live-test results. Test validation
Risk assessment94/100 · Critical The Critical rating is driven by security-sensitive behavior, public CLI behavior, dependency or supply chain and 2 additional signal(s).
Ask the Agent Tick a box to queue an action. Requires write access to this repository.
|
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
Naga Nandyala (@naga-nandyala) Addressed all the comments raised by |
|
Naga Nandyala (@naga-nandyala) last PR comment has been addressed. |
There was a problem hiding this comment.
Kunal Karmakar (@kkarmakarMS) Ready for human review. See the X Engineering Agent Report.
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
[Release] Update index.json for extension [ aiinfraoptimization-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=189100094&view=results |

This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
az aiinfraoptimization
aaz PR: Azure/aaz#1150
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (pip install azdevrequired)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.jsonautomatically.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.