[Compute] az interconnect-block: Add new command group to support Interconnect Block#33773
Open
william051200 wants to merge 5 commits into
Open
[Compute] az interconnect-block: Add new command group to support Interconnect Block#33773william051200 wants to merge 5 commits into
az interconnect-block: Add new command group to support Interconnect Block#33773william051200 wants to merge 5 commits into
Conversation
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new generated AAZ command group under the VM module to manage Compute “Interconnect Block” resources via az interconnect-block (create/delete/list/show/update/wait).
Changes:
- Introduces the
interconnect-blockcommand group wiring (__cmd_group.py,__init__.py). - Adds AAZ-generated command implementations for CRUD + wait against
Microsoft.Compute/interconnectBlocks(2026-03-01). - Implements list paging and update LRO/no-wait behaviors in the new command set.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/__cmd_group.py | Registers the interconnect-block command group and its help text. |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/init.py | Exposes the new command group and commands via package imports. |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_create.py | Implements az interconnect-block create (PUT LRO, args, request body). |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_delete.py | Implements az interconnect-block delete (DELETE LRO, confirmation/no-wait). |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_list.py | Implements az interconnect-block list (subscription/RG listing with pagination). |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_show.py | Implements az interconnect-block show (GET with optional expand). |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_update.py | Implements az interconnect-block update (GET + PUT LRO, generic update, no-wait). |
| src/azure-cli/azure/cli/command_modules/vm/aaz/latest/interconnect_block/_wait.py | Implements az interconnect-block wait (wait wrapper over GET). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+18
to
+22
| """Create an Interconnect Block. When updating an Interconnect Block, only tags and sku-capacity may be modified. | ||
|
|
||
| :example: Creates a new InterconnectBlock resource. | ||
| az interconnect-block create --name training-icb-001 --resource-group ai-training-rg --location eastus --zone 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 | ||
| """ |
Comment on lines
+18
to
+19
| """Update an Interconnect Block. When updating an Interconnect Block, only tags and sku-capacity may be modified. | ||
|
|
Comment on lines
+17
to
+19
| class __CMDGroup(AAZCommandGroup): | ||
| """Manage Interconnect Block | ||
| """ |
Collaborator
|
Compute |
|
Hi @william051200, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az interconnect-block create/delete/list/show/update/waitDescription
aaz Azure/aaz#1049
Testing Guide
Refer to
azure-cli\src\azure-cli\azure\cli\command_modules\vm\tests\latest\test_vm_commands.py-test_interconnect_blockHistory Notes
[Compute]
az interconnect-block: Add new command groups to support interconnect blockThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.
🤖 PR Validation —⚠️ Review suggested