Share via


az network vpn-gateway connection vpn-site-link-conn

Note

This reference is part of the virtual-wan extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an az network vpn-gateway connection vpn-site-link-conn command. Learn more about extensions.

Manage site-to-site VPN gateway connection VPN site link connection.

Commands

Name Description Type Status
az network vpn-gateway connection vpn-site-link-conn add

Add a VPN site link connection to a site-to-site VPN gateway connection.

Extension GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy

Manage site-to-site VPN gateway connection VPN site link IPSec policies.

Extension GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy add

Add an IPSec policy to a site-to-site VPN gateway connection VPN site link.

Extension GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy list

List site-to-site VPN gateway connection VPN site link IPSec policies.

Extension GA
az network vpn-gateway connection vpn-site-link-conn ipsec-policy remove

Remove an IPSec policy from a site-to-site VPN gateway connection VPN site link.

Extension GA
az network vpn-gateway connection vpn-site-link-conn list

List site-to-site VPN gateway connection VPN site link connection.

Extension GA
az network vpn-gateway connection vpn-site-link-conn remove

Remove a VPN site link connection from a site-to-site VPN gateway connection.

Extension GA

Add a VPN site link connection to a site-to-site VPN gateway connection.

az network vpn-gateway connection vpn-site-link-conn add --vpn-site-link
                                                         [--connection-bandwidth]
                                                         [--connection-name]
                                                         [--enable-bgp {false, true}]
                                                         [--gateway-name]
                                                         [--ids]
                                                         [--name]
                                                         [--no-wait]
                                                         [--rate-limiting {false, true}]
                                                         [--resource-group]
                                                         [--routing-weight]
                                                         [--shared-key]
                                                         [--subscription]
                                                         [--use-local-azure-ip-address {false, true}]
                                                         [--use-policy-based-traffic-selectors {false, true}]
                                                         [--vpn-connection-protocol-type {IKEv1, IKEv2}]
                                                         [--vpn-link-connection-mode {Default, InitiatorOnly, ResponderOnly}]

Add a VPN site link connection to site-to-site VPN gateway connection

az network vpn-gateway connection vpn-site-link-conn add -g MyRG --connection-name MyConnection --gateway-name MyGateway -n MyVPNSiteLinkConn --vpn-site-link /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/vpnSites/MyVPNSite/vpnSiteLinks/vpnsitelink --vpn-connection-protocol-type IKEv2
--vpn-site-link

The resource ID of VPN Site Link.

--connection-bandwidth

Expected bandwidth in Mbps.

--connection-name

Name of the VPN gateway connection.

--enable-bgp

Enable BGP.

Accepted values: false, true
--gateway-name

Name of the VPN gateway.

--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

Name of the VPN site link connection.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--rate-limiting

Enable rate limiting.

Accepted values: false, true
--resource-group -g

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

--routing-weight

Routing weight.

--shared-key

Shared key.

--subscription

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

--use-local-azure-ip-address

Use local azure ip to initiate connection.

Accepted values: false, true
--use-policy-based-traffic-selectors

Enable policy-based traffic selectors.

Accepted values: false, true
--vpn-connection-protocol-type

Connection protocol used for this connection.

Accepted values: IKEv1, IKEv2
--vpn-link-connection-mode

Vpn link connection mode.

Accepted values: Default, InitiatorOnly, ResponderOnly
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.

List site-to-site VPN gateway connection VPN site link connection.

az network vpn-gateway connection vpn-site-link-conn list --connection-name
                                                          --gateway-name
                                                          --resource-group

List VPN site link connections on site-to-site VPN gateway connection

az network vpn-gateway connection vpn-site-link-conn list -g MyRG --connection-name MyConnection --gateway-name MyGateway
--connection-name

Name of the VPN gateway connection.

--gateway-name

Name of the VPN gateway.

--resource-group -g

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.

Remove a VPN site link connection from a site-to-site VPN gateway connection.

az network vpn-gateway connection vpn-site-link-conn remove --index
                                                            [--connection-name]
                                                            [--gateway-name]
                                                            [--ids]
                                                            [--no-wait]
                                                            [--resource-group]
                                                            [--subscription]

Remove aVPN site link connection from site-to-site VPN gateway connection

az network vpn-gateway connection vpn-site-link-conn remove -g MyRG --connection-name MyConnection --gateway-name MyGateway --index 1
--index

List index of the item (starting with 1).

--connection-name

Name of the VPN gateway connection.

--gateway-name

Name of the VPN gateway.

--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.

--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--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.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.