Repository navigation
Description
Preconditions
- No need to upgrade Python SDK or the Python SDK is ready.
The service team confirms that the Python SDK is ready.
Related command
Please add authorization-key retrieval actions to the existing ExpressRoute authorization command groups.
Proposed new commands, subject to Azure CLI naming conventions:
az network express-route auth list-keys
az network express-route port authorization list-keys
Existing related commands:
az network express-route auth show
az network express-route auth list
az network express-route port authorization show
az network express-route port authorization list
Resource Provider
Microsoft.Network
Affected resource types:
Microsoft.Network/expressRouteCircuits/authorizationsMicrosoft.Network/expressRoutePorts/authorizations
Description of Feature or Work Requested
Please add Azure CLI support for the new authorization key retrieval actions for ExpressRoute circuit and ExpressRoute port authorizations introduced in API version 2026-01-01.
The Swagger adds dedicated listKeys POST actions that return the unmasked authorization key, subject to the caller's service-side permissions. Authorization keys are used to establish connections between resources in different subscriptions.
Requested changes:
-
Retrieve an ExpressRoute circuit authorization key
- Expose
ExpressRouteCircuitAuthorizations_ListKeys. - Identify the subscription, resource group, circuit, and authorization.
- Invoke POST on the specified circuit authorization's
/listKeysendpoint.
- Expose
-
Retrieve an ExpressRoute port authorization key
- Expose
ExpressRoutePortAuthorizations_ListKeys. - Identify the subscription, resource group, ExpressRoute port, and authorization.
- Invoke POST on the specified port authorization's
/listKeysendpoint.
- Expose
-
Support the request and response contract
- Both actions have no request body and return HTTP 200 with an
ExpressRouteAuthorizationKeyobject containingauthorizationKey. - These are synchronous retrieval actions, not authorization creation, key regeneration, or key rotation operations.
- Honor the response property's secret metadata (
format: password,x-ms-secret: true) using standard CLI secret-handling conventions, while allowing an authorized caller to explicitly retrieve the key. - Surface service authorization failures using standard CLI error handling.
- Both actions have no request body and return HTTP 200 with an
-
Preserve existing behavior
- Keep existing authorization create, show, list, and delete workflows unchanged.
- Do not make existing GET/LIST commands invoke
listKeysimplicitly. - Existing GET/LIST key masking is controlled by the backend according to the caller's privileges; this request does not change that behavior or the existing authorization resource schemas.
Minimum API Version Required
2026-01-01
Swagger PR link / SDK link
- Merged Swagger PR: Add post calls for auth key of authorization objects for expressrouteciruits and expressrouteports azure-rest-api-specs#45679
- ExpressRoute API specification
- Shared definitions, including ExpressRouteAuthorizationKey
- Circuit authorization TypeSpec operations
- Port authorization TypeSpec operations
- Python SDK status: Ready, as confirmed by the service team. Package version/link: To be provided.
Request Example
The merged Swagger includes request and response examples for:
Circuit authorization request:
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}/listKeys?api-version=2026-01-01Port authorization request:
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}/listKeys?api-version=2026-01-01Neither request requires a body. Successful response shape:
{
"authorizationKey": "<authorization-key>"
}Target Date
2026-11-15
PM Contact
Engineer Contact
Additional context
- Requested placement: Existing Azure CLI core
networkmodule, under the circuit and port authorization command groups. - Swagger status: Merged on August 31, 2026.
- Service status: GA and released, as confirmed by the service team.
- Regional availability: All regions, as confirmed by the service team.
- Other prerequisites: Supported clouds and any subscription allowlisting or feature registration requirements have not yet been specified. Access to the authorization key remains subject to service-side permission checks.
Activity
yonzhan commentedon Oct 28, 2026
Thank you for opening this issue, we will look into it.