Skip to content

[Network] Add ExpressRoute circuit and port authorization key retrieval #34293

Open

Description

@mshrimankar10

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/authorizations
  • Microsoft.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:

  1. 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 /listKeys endpoint.
  2. 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 /listKeys endpoint.
  3. Support the request and response contract

    • Both actions have no request body and return HTTP 200 with an ExpressRouteAuthorizationKey object containing authorizationKey.
    • 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.
  4. Preserve existing behavior

    • Keep existing authorization create, show, list, and delete workflows unchanged.
    • Do not make existing GET/LIST commands invoke listKeys implicitly.
    • 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

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-01

Port authorization request:

POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRoutePorts/{expressRoutePortName}/authorizations/{authorizationName}/listKeys?api-version=2026-01-01

Neither request requires a body. Successful response shape:

{
  "authorizationKey": "<authorization-key>"
}

Target Date

2026-11-15

PM Contact

rmareddy@microsoft.com

Engineer Contact

mshrimankar@microsoft.com

Additional context

  • Requested placement: Existing Azure CLI core network module, 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

  1. added
    customer-reported
    on Oct 28, 2026
  2. yonzhan commented on Oct 28, 2026

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  3. added
    Network
    on Oct 28, 2026
  4. added
    Auto-Assign
    Azure CLI Team
    question
    on Oct 28, 2026
  5. removed
    question
    on Oct 28, 2026
  6. added this to the Backlog milestone on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Auto-AssignAzure CLI TeamNetworkact-quality-productivity-squadcustomer-reportedfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions