az network express-route gateway connection

Manage ExpressRoute gateway connections.

Commands

az network express-route gateway connection create

Create an ExpressRoute gateway connection.

az network express-route gateway connection delete

Delete an ExpressRoute gateway connection.

az network express-route gateway connection list

List ExpressRoute gateway connections.

az network express-route gateway connection show

Get the details of an ExpressRoute gateway connection.

az network express-route gateway connection update

Update an ExpressRoute gateway connection.

az network express-route gateway connection create

Create an ExpressRoute gateway connection.

az network express-route gateway connection create --gateway-name
                                                   --name
                                                   --peering
                                                   --resource-group
                                                   [--associated]
                                                   [--authorization-key]
                                                   [--circuit-name]
                                                   [--internet-security {false, true}]
                                                   [--labels]
                                                   [--propagated]
                                                   [--routing-weight]
                                                   [--subscription]

Examples

Create an ExpressRoute gateway connection.

az network express-route gateway connection create --gateway-name MyGateway -n MyExpressRouteConnection -g MyResourceGroup --peering /subscriptions/MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/expressRouteCircuits/MyCircuit/peerings/AzurePrivatePeering --associated-route-table /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 --propagated-route-tables /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable2 --labels label1 label2

Required Parameters

--gateway-name

ExpressRoute gateway name.

--name -n

ExpressRoute connection name.

--peering

Name or ID of an ExpressRoute peering.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--associated --associated-route-table

The resource id of route table associated with this routing configuration.

--authorization-key

Authorization key to establish the connection.

--circuit-name

ExpressRoute circuit name.

--internet-security

Enable internet security. A virtual hub can have the ability to propagate a learned default route to this ExpressRoute connection. This ref https://review.docs.microsoft.com/en-us/azure/virtual-wan/effective-routes-virtual-hub?branch=pr-en-us-91866#aboutdefaultroute might be helpful.

accepted values: false, true
--labels

Space-separated list of labels for propagated route tables.

--propagated --propagated-route-tables

Space-separated list of resource id of propagated route tables.

--routing-weight

Routing weight associated with the connection.

--subscription

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

az network express-route gateway connection delete

Delete an ExpressRoute gateway connection.

az network express-route gateway connection delete [--gateway-name]
                                                   [--ids]
                                                   [--name]
                                                   [--resource-group]
                                                   [--subscription]

Examples

Delete an ExpressRoute gateway connection. (autogenerated)

az network express-route gateway connection delete --gateway-name MyGateway --name MyExpressRouteConnection --resource-group MyResourceGroup

Optional Parameters

--gateway-name

ExpressRoute gateway name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

ExpressRoute connection name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az network express-route gateway connection list

List ExpressRoute gateway connections.

az network express-route gateway connection list --gateway-name
                                                 --resource-group
                                                 [--query-examples]
                                                 [--subscription]

Examples

List ExpressRoute gateway connections. (autogenerated)

az network express-route gateway connection list --gateway-name MyGateway --resource-group MyResourceGroup

Required Parameters

--gateway-name

ExpressRoute gateway name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az network express-route gateway connection show

Get the details of an ExpressRoute gateway connection.

az network express-route gateway connection show [--gateway-name]
                                                 [--ids]
                                                 [--name]
                                                 [--query-examples]
                                                 [--resource-group]
                                                 [--subscription]

Examples

Get the details of an ExpressRoute gateway connection. (autogenerated)

az network express-route gateway connection show --gateway-name MyGateway --name MyExpressRouteConnection --resource-group MyResourceGroup

Optional Parameters

--gateway-name

ExpressRoute gateway name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

ExpressRoute connection name.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

az network express-route gateway connection update

Update an ExpressRoute gateway connection.

az network express-route gateway connection update [--add]
                                                   [--associated]
                                                   [--authorization-key]
                                                   [--circuit-name]
                                                   [--force-string]
                                                   [--gateway-name]
                                                   [--ids]
                                                   [--internet-security {false, true}]
                                                   [--labels]
                                                   [--name]
                                                   [--peering]
                                                   [--propagated]
                                                   [--remove]
                                                   [--resource-group]
                                                   [--routing-weight]
                                                   [--set]
                                                   [--subscription]

Examples

Update an ExpressRoute gateway connection.

az network express-route gateway connection update --gateway-name MyGateway -n MyExpressRouteConnection -g MyResourceGroup --peering /subscriptions/MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/expressRouteCircuits/MyCircuit/peerings/AzurePrivatePeering --associated-route-table /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 --propagated-route-tables /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 /MySub/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable2 --labels label1 label2

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--associated --associated-route-table

The resource id of route table associated with this routing configuration.

--authorization-key

Authorization key to establish the connection.

--circuit-name

ExpressRoute circuit name.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--gateway-name

ExpressRoute gateway name.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--internet-security

Enable internet security. A virtual hub can have the ability to propagate a learned default route to this ExpressRoute connection. This ref https://review.docs.microsoft.com/en-us/azure/virtual-wan/effective-routes-virtual-hub?branch=pr-en-us-91866#aboutdefaultroute might be helpful.

accepted values: false, true
--labels

Space-separated list of labels for propagated route tables.

--name -n

ExpressRoute connection name.

--peering

Name or ID of an ExpressRoute peering.

--propagated --propagated-route-tables

Space-separated list of resource id of propagated route tables.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--routing-weight

Routing weight associated with the connection.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

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