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

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

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

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

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

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.

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

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

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.

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

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

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

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

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

az network vpn-gateway connection vpn-site-link-conn add --connection-name
                                                         --gateway-name
                                                         --name
                                                         --resource-group
                                                         --vpn-site-link
                                                         [--connection-bandwidth]
                                                         [--enable-bgp {false, true}]
                                                         [--no-wait]
                                                         [--rate-limiting {false, true}]
                                                         [--routing-weight]
                                                         [--shared-key]
                                                         [--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
--connection-name

Name of the VPN gateway connection.

--gateway-name

Name of the VPN gateway.

--name -n

Name of the VPN site link connection.

--resource-group -g

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

--vpn-site-link

The resource ID of VPN Site Link.

--connection-bandwidth

Expected bandwidth in Mbps.

--enable-bgp

Enable BGP.

accepted values: false, true
--no-wait

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

--rate-limiting

Enable rate limiting.

accepted values: false, true
--routing-weight

Routing weight.

--shared-key

Shared key.

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

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

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

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

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

Name of the VPN gateway connection.

--gateway-name

Name of the VPN gateway.

--index

List index of the item (starting with 1).

--resource-group -g

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

--no-wait

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