az peering asn
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 asn command. Learn more about extensions.
Peering asn.
Commands
Name | Description | Type | Status |
---|---|---|---|
az peering asn create |
Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription. |
Extension | GA |
az peering asn delete |
Deletes an existing peer ASN with the specified name under the given subscription. |
Extension | GA |
az peering asn list |
Lists all of the peer ASNs under the given subscription. |
Extension | GA |
az peering asn show |
Gets the peer ASN with the specified name under the given subscription. |
Extension | GA |
az peering asn create
Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
az peering asn create --peer-asn-name
[--peer-asn]
[--peer-contact-detail]
[--peer-name]
[--validation-state {Approved, Failed, None, Pending}]
Examples
Create a peer ASN
az peering asn create --peer-asn 65000 --peer-contact-detail email="noc@contoso.com" phone="+1 (234) 567-8999" role="Noc" --peer-contact-detail email="abc@contoso.com" phone="+1 (234) 567-8900" role="Policy" --peer-contact-detail email="xyz@contoso.com" phone="+1 (234) 567-8900" role="Technical" --peer-name "Contoso" --peer-asn-name "peerAsnName"
Required Parameters
The peer ASN name.
Optional Parameters
The Autonomous System Number (ASN) of the peer.
The contact details of the peer. Expect value: KEY1=VALUE1 KEY2=VALUE2 ... , available KEYs are: role, email, phone.
The name of the peer.
The validation state of the ASN associated with the peer.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az peering asn delete
Deletes an existing peer ASN with the specified name under the given subscription.
az peering asn delete --peer-asn-name
Examples
Delete a peer ASN
az peering asn delete --peer-asn-name "peerAsnName"
Required Parameters
The peer ASN name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az peering asn list
Lists all of the peer ASNs under the given subscription.
az peering asn list
Examples
List peer ASNs in a subscription
az peering asn list
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az peering asn show
Gets the peer ASN with the specified name under the given subscription.
az peering asn show --peer-asn-name
Examples
Get a peer ASN
az peering asn show --peer-asn-name "peerAsnName"
Required Parameters
The peer ASN name.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.