Skip to content

[Network] az network express-route: Add MultiCloud circuit support - #34306

Merged
Ethan Yang (necusjz) merged 3 commits into
Azure:devfrom
huiii99:network-express-route-support-34291
Nov 5, 2026
Merged

Ethan Yang (necusjz) merged 3 commits into
Azure:devfrom
huiii99:network-express-route-support-34291

Conversation

@huiii99

@huiii99 Jian Hui (huiii99) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

🤖 PR Validation — ⚠️ Review suggested

Breaking Changes Tests Suppressions
⚠️ None ️✔️ 130/130 ⚠️ 1 added
⚠️AzureCLI-BreakingChangeTest
⚠️network
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd network express-route create cmd network express-route create added parameter activation_key
⚠️ 1006 - ParaAdd network express-route create cmd network express-route create added parameter enable_direct_port_rate_limit
⚠️ 1006 - ParaAdd network express-route create cmd network express-route create added parameter partner_account_id
⚠️ 1010 - ParaPropUpdate network express-route create cmd network express-route create update parameter allow_classic_operations: updated property options from ['--allow-classic-operations'] to ['--allow-classic-operations', '--allow-classic-ops']
⚠️ 1010 - ParaPropUpdate network express-route create cmd network express-route create update parameter sku_tier: updated property choices from ['Basic', 'Local', 'Premium', 'Standard'] to ['Basic', 'Local', 'MultiCloud', 'Premium', 'Standard']
⚠️ 1006 - ParaAdd network express-route update cmd network express-route update added parameter activation_key
⚠️ 1006 - ParaAdd network express-route update cmd network express-route update added parameter enable_direct_port_rate_limit
⚠️ 1006 - ParaAdd network express-route update cmd network express-route update added parameter partner_account_id
⚠️ 1010 - ParaPropUpdate network express-route update cmd network express-route update update parameter allow_classic_operations: updated property options from ['--allow-classic-operations'] to ['--allow-classic-operations', '--allow-classic-ops']
⚠️ 1010 - ParaPropUpdate network express-route update cmd network express-route update update parameter sku_tier: updated property choices from ['Basic', 'Local', 'Premium', 'Standard'] to ['Basic', 'Local', 'MultiCloud', 'Premium', 'Standard']

This PR adds warning or check suppressions. Fix the underlying warning where possible and justify each remaining suppression in a code comment or the PR description.

1 added suppression
File Line Kind Code
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py 4042 skipped test @unittest.skipUnless(

Related command

az network express-route (create, update, show, list, delete, wait)

Description

Upgrade to API 2025-09-01 to support MultiCloud circuits, partner provisioning parameters, and new response fields.

Related feature request: #34291
AAZ: Azure/aaz#1149

Testing Guide

python -m unittest azure.cli.command_modules.network.tests.latest.test_network_unit_tests.TestExpressRouteMultiCloud.

Live test (run in the ExpressRoute service team's dev subscription, provider aws, peering location uswest2):

$env:AZURE_TEST_RUN_LIVE='True'
$env:AZURE_TEST_EXPRESS_ROUTE_PARTNER_ACCOUNT_ID='<partner account id>'
azdev test test_network_express_route_multicloud --live

Result: passed (1 passed, 1 subtests passed) for the partner account ID flow: create with --sku-tier MultiCloud --partner-account-id, then show, list and delete. resiliencyLevel is returned (Maximum).

Notes:

  • test_network_express_route_multicloud is @live_only and uses @unittest.skipUnless because MultiCloud circuits need a real partner cloud account or activation key, which can't be provided in CI. It runs whenever either AZURE_TEST_EXPRESS_ROUTE_PARTNER_ACCOUNT_ID or AZURE_TEST_EXPRESS_ROUTE_ACTIVATION_KEY is set.
  • express-route update is not covered by the live test. The service currently returns InternalServerError on any PUT to an existing MultiCloud circuit, even an identical re-PUT of the create body via az rest. This has been reported to the service team.
  • The activation key flow has not been live-tested yet because no test activation key is available.

History Notes

[Network] az network express-route: Add MultiCloud circuit support


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

@yonzhan

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

Copilot-Session: 3079c979-fd58-4641-9fc2-5422cf111af9
… dev subscription

Copilot-Session: e3d4e3bd-ea62-458e-bf2a-57e0043d9327
@huiii99
Jian Hui (huiii99) force-pushed the network-express-route-support-34291 branch from 9c02ef0 to 20f715b Compare November 4, 2026 01:55
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

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

@huiii99
Jian Hui (huiii99) marked this pull request as ready for review November 4, 2026 02:28
Copilot AI balanced review requested due to automatic review settings November 4, 2026 02:28
@huiii99

Copy link
Copy Markdown
Member Author

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

🔵 Needs a closer look

Service-team validation is needed because updates to existing MultiCloud circuits return HTTP 500 and the activation-key provisioning flow has not been live-tested.

No open issues 🎉

What changed in this PR

Adds MultiCloud circuit support to the existing az network express-route commands, addressing #34291 through an upgrade to API 2025-09-01.

Changes:

  • Adds the MultiCloud SKU, partner account and activation key parameters, and direct-port rate limiting options.
  • Extends resource output with partner provisioning, resiliency, authorization, and peering validation fields.
  • Adds unit tests and an opt-in live scenario, and updates existing recordings’ API-version values. Live update testing remains deferred because of the documented service limitation.

Paths below are relative to src/azure-cli/azure/cli/command_modules/network/.

File Description
tests/​latest/​test_network_unit_tests.py Tests provisioning payloads, update behavior, output fields, and read-only resiliency.
tests/​latest/​test_network_commands.py Adds an opt-in MultiCloud create/show/list/delete live scenario.
tests/​latest/​recordings/​test_network_express_route.yaml Updates circuit request API versions.
tests/​latest/​recordings/​test_network_express_route_peer_connection.yaml Updates API versions for peer-connection circuit setup.
tests/​latest/​recordings/​test_network_express_route_ipv6_peering2.yaml Updates API versions for IPv6 peering circuit setup.
tests/​latest/​recordings/​test_network_express_route_ipv6_peering.yaml Updates API versions for IPv6 peering circuit setup.
tests/​latest/​recordings/​test_network_express_route_global_reach.yaml Updates API versions for Global Reach circuit setup.
tests/​latest/​recordings/​test_network_express_route_global_reach_config.yaml Updates API versions for Global Reach configuration setup.
tests/​latest/​recordings/​test_express_route_gateway_connection_inbound_outbound_routemap.yaml Updates API versions for route-map circuit setup.
aaz/​latest/​network/​express_route/​_wait.py Updates the polling API and response schema.
aaz/​latest/​network/​express_route/​_update.py Adds MultiCloud inputs, update mappings, and expanded response schemas.
aaz/​latest/​network/​express_route/​_show.py Updates the retrieval API and exposes new response fields.
aaz/​latest/​network/​express_route/​_list.py Updates both listing scopes and their response schemas.
aaz/​latest/​network/​express_route/​_delete.py Upgrades deletion to API 2025-09-01.
aaz/​latest/​network/​express_route/​_create.py Adds MultiCloud inputs, provisioning examples, and request/response mappings.

Review effort: Balanced

self.assertEqual(result[1].value, 'noodle')


class TestExpressRouteMultiCloud(unittest.TestCase):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

im considering, do we really need that kind of unit test. scenario test only should be enough?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we can keep these for now, since the scenario test is live-only and doesn’t cover update yet due to the service-side issue.

Copilot-Session: c4495f6c-5877-4bbe-9778-45f9b6f21896
@necusjz
Ethan Yang (necusjz) merged commit 47bc188 into Azure:dev Nov 5, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-quality-productivity-squad Network az network vnet/lb/nic/dns/etc...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants