Skip to main content

express_route_ports

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

Overview

Nameexpress_route_ports
TypeResource
Idazure.network.express_route_ports

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
allocationDatestringDate of the physical port allocation to be used in Letter of Authorization.
bandwidthInGbpsintegerBandwidth of procured ports in Gbps.
billingTypestringThe billing type of the ExpressRoutePort resource. Known values are: "MeteredData" and "UnlimitedData". (MeteredData, UnlimitedData)
circuitsarrayReference the ExpressRoute circuit(s) that are provisioned on this ExpressRoutePort resource.
encapsulationstringEncapsulation method on physical ports. Known values are: "Dot1Q" and "QinQ". (Dot1Q, QinQ)
etagstringA unique read-only string that changes whenever the resource is updated.
etherTypestringEther type of the physical port.
identityobjectThe identity of ExpressRoutePort, if configured.
linksarrayExpressRouteLink Sub-Resources.
locationstringResource location.
mtustringMaximum transmission unit of the physical port pair(s).
peeringLocationstringThe name of the peering location that the ExpressRoutePort is mapped to physically.
provisionedBandwidthInGbpsnumberAggregate Gbps of associated circuit bandwidths.
provisioningStatestringThe provisioning state of the express route port resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
resourceGuidstringThe resource GUID property of the express route port resource.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, express_route_port_name, subscription_idRetrieves the requested ExpressRoutePort resource.
list_by_resource_groupselectresource_group_name, subscription_idList all the ExpressRoutePort resources in the specified resource group.
listselectsubscription_idList all the ExpressRoutePort resources in the specified subscription.
create_or_updateinsertresource_group_name, express_route_port_name, subscription_idCreates or updates the specified ExpressRoutePort resource.
update_tagsupdateresource_group_name, express_route_port_name, subscription_idUpdate ExpressRoutePort tags.
create_or_updatereplaceresource_group_name, express_route_port_name, subscription_idCreates or updates the specified ExpressRoutePort resource.
deletedeleteresource_group_name, express_route_port_name, subscription_idDeletes the specified ExpressRoutePort resource.
generate_loaexecresource_group_name, express_route_port_name, subscription_id, customerNameGenerate a letter of authorization for the requested ExpressRoutePort resource.

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
express_route_port_namestringThe name of ExpressRoutePort. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Retrieves the requested ExpressRoutePort resource.

SELECT
id,
name,
allocationDate,
bandwidthInGbps,
billingType,
circuits,
encapsulation,
etag,
etherType,
identity,
links,
location,
mtu,
peeringLocation,
provisionedBandwidthInGbps,
provisioningState,
resourceGuid,
tags,
type
FROM azure.network.express_route_ports
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND express_route_port_name = '{{ express_route_port_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates the specified ExpressRoutePort resource.

INSERT INTO azure.network.express_route_ports (
id,
location,
tags,
properties,
identity,
resource_group_name,
express_route_port_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ express_route_port_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
identity,
location,
properties,
tags,
type
;

UPDATE examples

Update ExpressRoutePort tags.

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

REPLACE examples

Creates or updates the specified ExpressRoutePort resource.

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

DELETE examples

Deletes the specified ExpressRoutePort resource.

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

Lifecycle Methods

Generate a letter of authorization for the requested ExpressRoutePort resource.

EXEC azure.network.express_route_ports.generate_loa 
@resource_group_name='{{ resource_group_name }}' --required,
@express_route_port_name='{{ express_route_port_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"customerName": "{{ customerName }}"
}'
;