Share via


az peering legacy

Note

This reference is part of the peering extension for the Azure CLI (version 2.3.1 or higher). The extension will automatically install the first time you run an az peering legacy command. Learn more about extensions.

Peering legacy.

Commands

Name Description Type Status
az peering legacy list

Lists all of the legacy peerings under the given subscription matching the specified kind and location.

Extension GA

az peering legacy list

Lists all of the legacy peerings under the given subscription matching the specified kind and location.

az peering legacy list --kind {Direct, Exchange}
                       --peering-location
                       [--asn]

Examples

List legacy peerings

az peering legacy list --kind "Exchange" --peering-location "peeringLocation0"

Required Parameters

--kind

The kind of the peering.

Property Value
Accepted values: Direct, Exchange
--peering-location

The location of the peering.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--asn

The ASN number associated with a legacy peering.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False