Add cli commands for AI Manager - #10089
Conversation
Add new 'az aks inference' command group (create/delete/list/show) mapping to the Microsoft.ContainerService/aiManagers resource, plus the 'az aks inference namespace' subgroup for AIManagerNamespace child resources, targeting api-version 2026-04-02-preview. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks inference | sub group aks inference added |
|
Hi Ximeng Zhao (@xmzhao0822), |
Replace the AAZ-generated 'az aks inference' command files with a hand-written classic module (vendored SDK + custom.py + params + help + explicit command wiring) under azext_aks_preview/aks_inference/. - AIManager (Microsoft.ContainerService/aiManagers) create/show/delete/list - AIManagerNamespace child resource create/show/delete/list - api-version 2026-04-02-preview - Wired into the extension's commands.py, _params.py and _help.py Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
aks |
Rename the aks_inference command group/folder to aimanager and replace the hand-written stub SDK with the generated azure-mgmt-containerserviceaimanager package under aimanager/vendored_sdk. Commands: az aimanager create|update|list|show|delete and az aimanager namespace add|update|list|show|delete. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Register the vendored containerserviceaimanager SDK as a CustomResourceType and resolve models via cmd.get_models. Anchor command groups on the SDK operations classes, add a construct/update builder module (aimanager.py), and make the custom handlers do existence checks, raw_parameters snapshots, custom headers and sdk_no_wait - mirroring the aks namespace (managed namespace) structure. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move the `az aimanager` command group out of aks-preview into a new standalone extension at src/aimanager, mirroring the src/fleet structure: loader, _client_factory, commands, custom, _params, _help, _helpers, _validators, constants, packaging files, and a tests scaffold. The vendored azure-mgmt-containerserviceaimanager (typespec) SDK is moved to azext_aimanager/vendored_sdks and registered with api_version=None. Remove the aimanager code and wiring from aks-preview and revert its HISTORY.rst entry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Automated sensitive-information remediation ran on this pull request.
If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment. ✅ Keep the redaction · ❌ Dispute the redaction GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices. Posted by agent-assist (autonomous bug-fix pipeline). |
Move the vendored typespec SDK into azext_aimanager/vendored_sdks/v2026_05_02_preview to mirror fleet's vendored_sdks/v<version> layout, add a top-level vendored_sdks/__init__.py re-exporting the client, and point the CustomResourceType import prefix and command operation templates at the versioned package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Automated sensitive-information remediation ran on this pull request.
If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment. ✅ Keep the redaction · ❌ Dispute the redaction GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices. Posted by agent-assist (autonomous bug-fix pipeline). |
|
Automated sensitive-information remediation ran on this pull request.
If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment. ✅ Keep the redaction · ❌ Dispute the redaction GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices. Posted by agent-assist (autonomous bug-fix pipeline). |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
Automated sensitive-information remediation ran on this pull request.
If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment. ✅ Keep the redaction · ❌ Dispute the redaction GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices. Posted by agent-assist (autonomous bug-fix pipeline). |
Add an azure.cli.testsdk ScenarioTest covering the full aimanager and aimanager namespace command surface (create/wait/show/list/update/delete and namespace add/wait/show/list/update/delete), modeled on fleet's hubful scenario test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
Add new 'az aks inference' command group (create/delete/list/show) mapping to the Microsoft.ContainerService/aiManagers resource, plus the 'az aks inference namespace' subgroup for AIManagerNamespace child resources, targeting api-version 2026-04-02-preview.
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
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.