Skip to content

[Compute] az interconnect-block: Add new command group to support Interconnect Block#33773

Open
william051200 wants to merge 5 commits into
Azure:devfrom
william051200:interconnect-block
Open

[Compute] az interconnect-block: Add new command group to support Interconnect Block#33773
william051200 wants to merge 5 commits into
Azure:devfrom
william051200:interconnect-block

Conversation

@william051200

@william051200 william051200 commented Jul 23, 2026

Copy link
Copy Markdown
Member

Related command

az interconnect-block create/delete/list/show/update/wait

Description

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_block

History Notes

[Compute] az interconnect-block: Add new command groups to support interconnect block


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

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests
⚠️ None ️✔️ 130/130
⚠️AzureCLI-BreakingChangeTest
⚠️vm
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd interconnect-block sub group interconnect-block added

@william051200
william051200 requested a review from a team as a code owner July 23, 2026 07:41
Copilot AI review requested due to automatic review settings July 23, 2026 07:41
@a0x1ab

a0x1ab commented Jul 23, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

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.

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-block command 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
"""
@yonzhan

yonzhan commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Compute

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @william051200,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@azure-pipelines

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

@a0x1ab

a0x1ab commented Jul 24, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants