Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/agentmesh/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

1.0.0b1
++++++
* Initial preview release for Azure Agent Mesh using API version ``2026-07-21-preview``.
* Add fabric, fabric member, and policy group create, show, list, update, and delete commands.
70 changes: 70 additions & 0 deletions src/agentmesh/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Azure CLI Agent Mesh Extension

This extension manages Azure Agent Mesh fabrics, fabric members, and policy groups.
It uses the `Microsoft.NetworkSecurity` resource provider API version
`2026-07-21-preview`.

## Install

```bash
az extension add --name agentmesh
```

## Commands

Each resource supports `create`, `show`, `list`, `update`, and `delete`.

```bash
az agentmesh fabric --help
az agentmesh fabric member --help
az agentmesh policy-group --help
```

### Fabrics

```bash
az agentmesh fabric create \
--resource-group myResourceGroup \
--name myFabric \
--location eastus \
--trust-domain contoso.agentfabric

az agentmesh fabric update \
--resource-group myResourceGroup \
--name myFabric \
--tags environment=production

az agentmesh fabric list --resource-group myResourceGroup
```

### Fabric members

```bash
az agentmesh fabric member create \
--resource-group myResourceGroup \
--fabric-name myFabric \
--member-name myMember \
--location eastus \
--workload "{aci:{resource-id:/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroups/myContainerGroup}}"

az agentmesh fabric member show \
--resource-group myResourceGroup \
--fabric-name myFabric \
--member-name myMember
```

### Policy groups

```bash
az agentmesh policy-group create \
--resource-group myResourceGroup \
--name myPolicyGroup \
--location eastus \
--display-name "My policy group" \
--priority 100

az agentmesh policy-group list --resource-group myResourceGroup
```

Long-running create, update, and delete operations support `--no-wait`. Use the
corresponding `wait` command to wait for provisioning to reach a target state.
42 changes: 42 additions & 0 deletions src/agentmesh/azext_agentmesh/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_agentmesh._help import helps # pylint: disable=unused-import


class AgentmeshCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
custom_command_type = CliCommandType(
operations_tmpl='azext_agentmesh.custom#{}')
super().__init__(cli_ctx=cli_ctx,
custom_command_type=custom_command_type)

def load_command_table(self, args):
from azext_agentmesh.commands import load_command_table
from azure.cli.core.aaz import load_aaz_command_table
try:
from . import aaz
except ImportError:
aaz = None
if aaz:
load_aaz_command_table(
loader=self,
aaz_pkg_name=aaz.__name__,
args=args
)
load_command_table(self, args)
return self.command_table

def load_arguments(self, command):
from azext_agentmesh._params import load_arguments
load_arguments(self, command)


COMMAND_LOADER_CLS = AgentmeshCommandsLoader
11 changes: 11 additions & 0 deletions src/agentmesh/azext_agentmesh/_help.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=line-too-long
# pylint: disable=too-many-lines

from knack.help_files import helps # pylint: disable=unused-import
13 changes: 13 additions & 0 deletions src/agentmesh/azext_agentmesh/_params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: disable=too-many-lines
# pylint: disable=too-many-statements


def load_arguments(self, _): # pylint: disable=unused-argument
pass
6 changes: 6 additions & 0 deletions src/agentmesh/azext_agentmesh/aaz/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------
9 changes: 9 additions & 0 deletions src/agentmesh/azext_agentmesh/aaz/latest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa
23 changes: 23 additions & 0 deletions src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__cmd_group.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"agentmesh",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Azure Agent Mesh resources.
"""
pass


__all__ = ["__CMDGroup"]
11 changes: 11 additions & 0 deletions src/agentmesh/azext_agentmesh/aaz/latest/agentmesh/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"agentmesh fabric",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Agent Mesh fabrics.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._show import *
from ._update import *
from ._wait import *
Loading
Loading