Skip to content

[agentmesh] Add Agent Mesh CLI extension - #10341

Merged
Ethan Yang (necusjz) merged 3 commits into
Azure:mainfrom
kmurudi:kmurudi-generate-agentmesh-extension
Sep 17, 2026
Merged

Ethan Yang (necusjz) merged 3 commits into
Azure:mainfrom
kmurudi:kmurudi-generate-agentmesh-extension

Conversation

@kmurudi

@kmurudi Kshitija Murudi (kmurudi) commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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

This adds a generated preview Azure CLI extension for managing Azure Agent Mesh fabrics, fabric members, and policy groups. The extension uses the 2026-07-21-preview API and preserves generated long-running create, update, and delete behavior, including PATCH-based updates.

The package includes command help and examples, offline command-discovery and request-shape tests, preview metadata, release history, and service-name registration. No CODEOWNERS entry is included because no verified Agent Mesh owner mapping was available in the service specification; no owner handles were invented.

Related command

az agentmesh

Commands added

  1. az agentmesh fabric: create, show, list, update, delete
  2. az agentmesh fabric member: create, show, list, update, delete
  3. az agentmesh policy-group: create, show, list, update, delete

Each category also includes a generated wait command for long-running operations.

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 azdev 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.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Kshitija Murudi (@kmurudi),
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 pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@yonzhan

Copy link
Copy Markdown
Collaborator

agentmesh

@kmurudi
Kshitija Murudi (kmurudi) marked this pull request as ready for review September 16, 2026 21:21
Copilot AI lite review requested due to automatic review settings September 16, 2026 21:21
@kmurudi Kshitija Murudi (kmurudi) changed the title Add Agent Mesh CLI extension [agentmesh] Add Agent Mesh CLI extension Sep 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

One moderate test-coverage issue and one documentation nit remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds a generated preview az agentmesh extension for managing Agent Mesh fabrics, members, and policy groups using the 2026-07-21-preview API.

Changes:

  • Adds CRUD, PATCH, LRO, pagination, and wait commands.
  • Adds packaging, metadata, documentation, history, and service registration.
  • Adds offline command-help and request-shape tests.
File summaries
File Summary
src/service_name.json Registers the Agent Mesh service.
src/agentmesh/setup.py Defines extension packaging metadata.
src/agentmesh/setup.cfg Provides setup configuration.
src/agentmesh/README.md Documents installation and command examples. Nit (3 votes): correct the discriminated workload example.
src/agentmesh/linter_exclusions.yml Configures generated-code lint exclusions.
src/agentmesh/HISTORY.rst Records the initial preview release.
src/agentmesh/azext_agentmesh/tests/latest/test_agentmesh.py Tests help, examples, and request shapes. Moderate (1 vote): include the three generated wait commands in COMMANDS.
src/agentmesh/azext_agentmesh/tests/latest/recordings/test_agentmesh_command_help.yaml Stores command-help recording data.
src/agentmesh/azext_agentmesh/tests/latest/__init__.py Initializes latest tests.
src/agentmesh/azext_agentmesh/tests/__init__.py Initializes the test package.
src/agentmesh/azext_agentmesh/custom.py Provides custom-command setup.
src/agentmesh/azext_agentmesh/commands.py Provides command loading setup.
src/agentmesh/azext_agentmesh/azext_metadata.json Declares preview status and minimum CLI version.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_wait.py Implements policy-group wait operations.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_update.py Implements policy-group PATCH updates.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_show.py Implements policy-group retrieval.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_list.py Implements policy-group listing and pagination.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/_delete.py Implements policy-group deletion.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/__init__.py Initializes policy-group commands.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/policy_group/__cmd_group.py Registers the policy-group command group.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_wait.py Implements member wait operations.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_update.py Implements member PATCH updates.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_show.py Implements member retrieval.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_list.py Implements member listing and pagination.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_delete.py Implements member deletion.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/_create.py Implements member creation and workload serialization.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/__init__.py Initializes member commands.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/member/__cmd_group.py Registers the member command group.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_wait.py Implements fabric wait operations.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_update.py Implements fabric PATCH updates.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_show.py Implements fabric retrieval.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_list.py Implements fabric listing and pagination.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_delete.py Implements fabric deletion.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/_create.py Implements fabric creation.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/__init__.py Initializes fabric commands.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/fabric/__cmd_group.py Registers the fabric command group.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__init__.py Initializes Agent Mesh commands.
src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__cmd_group.py Registers the root command group.
src/agentmesh/azext_agentmesh/aaz/latest/__init__.py Initializes the latest API package.
src/agentmesh/azext_agentmesh/aaz/__init__.py Initializes the generated AAZ package.
src/agentmesh/azext_agentmesh/_params.py Provides parameter-loading setup.
src/agentmesh/azext_agentmesh/_help.py Provides help registration setup.
src/agentmesh/azext_agentmesh/__init__.py Loads generated commands.
Review details

Suppressed comments (1)

src/agentmesh/azext_agentmesh/tests/latest/test_agentmesh.py:140

  • COMMANDS is also the source for test_agentmesh_command_help, but it omits the three generated agentmesh ... wait commands. Consequently, the new wait registrations are not exercised by either the help test or the generated-example test; add these commands to the help-only list (the wait classes do not have :example: docstrings) so a broken wait import or registration is caught offline.
  • Files reviewed: 44/44 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/agentmesh/README.md Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@necusjz
Ethan Yang (necusjz) merged commit 992282e into Azure:main Sep 17, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ agentmesh-1.0.0b1 ] : https://dev.azure.com/msazure/One/_build/results?buildId=181510540&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants