Repository navigation
[Network] az network express-route: Add MultiCloud circuit support - #34306
Conversation
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Copilot-Session: 3079c979-fd58-4641-9fc2-5422cf111af9
… dev subscription Copilot-Session: e3d4e3bd-ea62-458e-bf2a-57e0043d9327
9c02ef0 to
20f715b
Compare
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
🔵 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
MultiCloudSKU, 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): |
There was a problem hiding this comment.
im considering, do we really need that kind of unit test. scenario test only should be enough?
There was a problem hiding this comment.
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
🤖 PR Validation —⚠️ Review suggested
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
src/azure-cli/azure/cli/command_modules/network/tests/latest/test_network_commands.py@unittest.skipUnless(Related command
az network express-route(create, update, show, list, delete, wait)Description
Upgrade to API
2025-09-01to 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 locationuswest2):Result: passed (
1 passed, 1 subtests passed) for the partner account ID flow:createwith--sku-tier MultiCloud --partner-account-id, thenshow,listanddelete.resiliencyLevelis returned (Maximum).Notes:
test_network_express_route_multicloudis@live_onlyand uses@unittest.skipUnlessbecause MultiCloud circuits need a real partner cloud account or activation key, which can't be provided in CI. It runs whenever eitherAZURE_TEST_EXPRESS_ROUTE_PARTNER_ACCOUNT_IDorAZURE_TEST_EXPRESS_ROUTE_ACTIVATION_KEYis set.express-route updateis not covered by the live test. The service currently returnsInternalServerErroron any PUT to an existing MultiCloud circuit, even an identical re-PUT of the create body viaaz rest. This has been reported to the service team.History Notes
[Network]
az network express-route: Add MultiCloud circuit supportThis 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.