Skip to main content

express_route_circuits

Creates, updates, deletes, gets or lists an express_route_circuits resource.

Overview

Nameexpress_route_circuits
TypeResource
Idazure.network.express_route_circuits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
bgpStatusarrayThe BGP status details.
circuitTestCategorystringThe circuit test category. Known values are: "BgpDisconnect" and "ASPathPrepend". (BgpDisconnect, ASPathPrepend)
endTimeUtcstringTime when the test was completed in UTC.
isSimulationVerifiedbooleanWhether the simulation was verified.
linkTypestringThe link type. Known values are: "Primary" and "Secondary". (Primary, Secondary)
nonRedundantRoutesobjectThe non-redundant routes for link failover tests.
redundantRoutesobjectThe redundant routes for link failover tests.
startTimeUtcstringTime when the test was started in UTC.
statusstringThe current status of the test. Known values are: "NotStarted", "Starting", "Running", "StartFailed", "Stopping", "Completed", "StopFailed", "Invalid", and "Expired". (NotStarted, Starting, Running, StartFailed, Stopping, Completed, StopFailed, Invalid, Expired)
wasSimulationSuccessfulbooleanWhether the failover simulation was successful or not.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_circuit_link_failover_single_test_detailsselectresource_group_name, circuit_name, subscription_id, linkType, circuitTestCategory, failoverTestIdRetrieves the details of a particular link failover test performed on the express route circuit.
list_arp_tableselectresource_group_name, circuit_name, peering_name, device_path, subscription_idGets the currently advertised ARP table associated with the express route circuit in a resource group.
get_peering_statsselectresource_group_name, circuit_name, peering_name, subscription_idGets all stats from an express route circuit in a resource group.
getselectresource_group_name, circuit_name, subscription_idGets information about the specified express route circuit.
listselectresource_group_name, subscription_idGets all the express route circuits in a resource group.
list_allselectsubscription_idGets all the express route circuits in a subscription.
create_or_updateinsertresource_group_name, circuit_name, subscription_idCreates or updates an express route circuit.
update_tagsupdateresource_group_name, circuit_name, subscription_idUpdates an express route circuit tags.
create_or_updatereplaceresource_group_name, circuit_name, subscription_idCreates or updates an express route circuit.
deletedeleteresource_group_name, circuit_name, subscription_idDeletes the specified express route circuit.
list_routes_tableexecresource_group_name, circuit_name, peering_name, device_path, subscription_idGets the currently advertised routes table associated with the express route circuit in a resource group.
list_routes_table_summaryexecresource_group_name, circuit_name, peering_name, device_path, subscription_idGets the currently advertised routes table summary associated with the express route circuit in a resource group.
get_statsexecresource_group_name, circuit_name, subscription_idGets all the stats from an express route circuit in a resource group.
get_circuit_link_failover_all_tests_detailsexecresource_group_name, circuit_name, subscription_idfailoverTestType, fetchLatestRetrieves the details of all the link failover tests performed on the express route circuit.
start_circuit_link_failover_testexecresource_group_name, circuit_name, subscription_id, linkType, circuitTestCategoryStarts link failover simulation on the express route circuit for the specified link type and test category.
stop_circuit_link_failover_testexecresource_group_name, circuit_name, subscription_idStops link failover simulation on the express route circuit.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
circuitTestCategorystringThe circuit test category. Required.
circuit_namestringThe name of express route circuit. Required.
device_pathstringThe name of the routeTablesSummary. Required.
failoverTestIdstringThe unique Guid value which identifies the test. Required.
linkTypestringThe link type. Required.
peering_namestringThe name of the peering. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
failoverTestTypestringThe type of failover test. Default value is None.
fetchLatestbooleanFetch only the latest tests. Default value is None.

SELECT examples

Retrieves the details of a particular link failover test performed on the express route circuit.

SELECT
bgpStatus,
circuitTestCategory,
endTimeUtc,
isSimulationVerified,
linkType,
nonRedundantRoutes,
redundantRoutes,
startTimeUtc,
status,
wasSimulationSuccessful
FROM azure.network.express_route_circuits
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND circuit_name = '{{ circuit_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND linkType = '{{ linkType }}' -- required
AND circuitTestCategory = '{{ circuitTestCategory }}' -- required
AND failoverTestId = '{{ failoverTestId }}' -- required
;

INSERT examples

Creates or updates an express route circuit.

INSERT INTO azure.network.express_route_circuits (
id,
location,
tags,
properties,
sku,
resource_group_name,
circuit_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ circuit_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
sku,
tags,
type
;

UPDATE examples

Updates an express route circuit tags.

UPDATE azure.network.express_route_circuits
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND circuit_name = '{{ circuit_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
sku,
tags,
type;

REPLACE examples

Creates or updates an express route circuit.

REPLACE azure.network.express_route_circuits
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND circuit_name = '{{ circuit_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
sku,
tags,
type;

DELETE examples

Deletes the specified express route circuit.

DELETE FROM azure.network.express_route_circuits
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND circuit_name = '{{ circuit_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the currently advertised routes table associated with the express route circuit in a resource group.

EXEC azure.network.express_route_circuits.list_routes_table 
@resource_group_name='{{ resource_group_name }}' --required,
@circuit_name='{{ circuit_name }}' --required,
@peering_name='{{ peering_name }}' --required,
@device_path='{{ device_path }}' --required,
@subscription_id='{{ subscription_id }}' --required
;