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
4 changes: 4 additions & 0 deletions src/interconnect/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

1.0.0b2
++++++
* Add preview support for interconnect block create/ show/ list/ update/ delete operation.

1.0.0b1
++++++
* Add preview support for interconnect group CRUD, node availability queries, and subgroup list/show operations.
71 changes: 69 additions & 2 deletions src/interconnect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
This is an extension to Azure CLI to manage Interconnect resources.

## How to use ##
Install the extension:

Install this extension using the below CLI command
```
az extension add --name interconnect
```

### Included Features
### Manage interconnect groups ###

Create an interconnect group:
Expand Down Expand Up @@ -60,3 +60,70 @@ Show a subgroup:
```
az interconnect-group subgroup show --resource-group rg1 --interconnect-group-name test-ig --subgroup-name subgroup0
```

#### Interconnect Block:
##### Creates a new Interconnect Block resource.
```
az interconnect-block create --name training-icb-001 --resource-group ai-training-rg \
--location eastus --zones 1 --sku-name Standard_ND128isr_GB300_v6 --sku-capacity 36 \
--interconnect-group-id \
"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/network-\
rg/providers/Microsoft.Network/interconnectGroups/training-ig" --tags Environment=Production\
Workload=AI-Training CostCenter=ML-Engineering
```

##### Delete an Interconnect Block.
```
az interconnect-block delete --name training-icb-001 --resource-group ai-training-rg
```

##### Delete without confirmation
```
az interconnect-block delete --name training-icb-001 --resource-group ai-training-rg --yes
```

##### List all in subscription
```
az interconnect-block list
```

##### List by resource group
```
az interconnect-block list --resource-group ai-training-rg
```

##### List and filter by capacity
```
az interconnect-block list --resource-group ai-training-rg --query "[?sku.capacity>=36]"
```

##### Get basic information
```
az interconnect-block show --name training-icb-001 --resource-group ai-training-rg
```

##### Get with instance view (includes runtime details)
```
az interconnect-block show --name training-icb-001 --resource-group ai-training-rg --expand \
instanceView
```

##### Update scale capacity
```
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --sku-\
capacity 54
```

##### Update tags
```
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --tags \
Environment=Production Capacity=54-nodes LastScaled=$(date +%Y-%m-%d)
```

##### Update scale with no-wait
```
az interconnect-block update --name training-icb-001 --resource-group ai-training-rg --sku-\
capacity 72 --no-wait
```

If you have issues, please give feedback by opening an issue at https://github.com/Azure/azure-cli-extensions/issues.
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(
"interconnect-block",
)
class __CMDGroup(AAZCommandGroup):
"""Manage Interconnect Block
"""
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