az network vpn-gateway connection
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 command. Learn more about extensions.
Manage site-to-site VPN gateway connections.
Commands
| az network vpn-gateway connection create |
Create a site-to-site VPN gateway connection. |
| az network vpn-gateway connection delete |
Delete a site-to-site VPN gateway connection. |
| az network vpn-gateway connection ipsec-policy |
Manage site-to-site VPN gateway connection IPSec policies. |
| az network vpn-gateway connection ipsec-policy add |
Add an IPSec policy to a site-to-site VPN gateway connection. |
| az network vpn-gateway connection ipsec-policy list |
List site-to-site VPN gateway connection IPSec policies. |
| az network vpn-gateway connection ipsec-policy remove |
Remove an IPSec policy from a site-to-site VPN gateway connection. |
| az network vpn-gateway connection list |
List site-to-site VPN gateway connections. |
| az network vpn-gateway connection show |
Get the details of a site-to-site VPN gateway connection. |
| az network vpn-gateway connection update |
Update settings of VPN gateway connection. |
| az network vpn-gateway connection vpn-site-link-conn |
Manage site-to-site VPN gateway connection VPN site link connection. |
| 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. |
| az network vpn-gateway connection wait |
Place the CLI in a waiting state until a condition of the site-to-site VPN gateway connection is met. |
az network vpn-gateway connection create
Create a site-to-site VPN gateway connection.
az network vpn-gateway connection create --gateway-name
--name
--remote-vpn-site
--resource-group
[--associated]
[--connection-bandwidth]
[--enable-bgp {false, true}]
[--internet-security {false, true}]
[--labels]
[--no-wait]
[--propagated]
[--protocol-type {IKEv1, IKEv2}]
[--rate-limiting {false, true}]
[--routing-weight]
[--shared-key]
[--vpn-site-link]
[--with-link {false, true}]
Examples
Create a site-to-site VPN gateway connection
az network vpn-gateway connection create -g MyRG -n MyConnection --gateway-name MyGateway --remote-vpn-site /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/vpnSites/MyVPNSite --associated-route-table /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 --propagated-route-tables /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable1 /subscriptions/MySub/resourceGroups/MyRG/providers/Microsoft.Network/virtualHubs/MyHub/hubRouteTables/MyRouteTable2 --labels label1 label2
Required Parameters
Name of the VPN gateway.
Name of the VPN gateway connection.
Name of ID of the remote VPN site.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The resource id of route table associated with this routing configuration.
Expected bandwidth in Mbps.
Enable BGP.
Enable internet security.
Space-separated list of labels for propagated route tables.
Do not wait for the long-running operation to finish.
Space-separated list of resource id of propagated route tables.
Connection protocol.
Enable rate limiting.
Routing weight.
Shared key.
The resource ID of VPN Site Link.
Create VpnConnection with default link.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network vpn-gateway connection delete
Delete a site-to-site VPN gateway connection.
az network vpn-gateway connection delete --gateway-name
--name
--resource-group
Examples
Delete a site-to-site VPN gateway connection
az network vpn-gateway connection delete -g MyRG -n MyConnection --gateway-name MyGateway
Required Parameters
Name of the VPN gateway.
Name of the VPN gateway connection.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network vpn-gateway connection list
List site-to-site VPN gateway connections.
az network vpn-gateway connection list --gateway-name
--resource-group
Examples
List all connections for a given site-to-site VPN gateway
az network vpn-gateway connection list -g MyRG --gateway-name MyGateway
Required Parameters
Name of the VPN gateway.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network vpn-gateway connection show
Get the details of a site-to-site VPN gateway connection.
az network vpn-gateway connection show --gateway-name
--name
--resource-group
Examples
Get the details of a site-to-site VPN gateway connection
az network vpn-gateway connection show -g MyRG -n MyConnection --gateway-name MyGateway
Required Parameters
Name of the VPN gateway.
Name of the VPN gateway connection.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network vpn-gateway connection update
Update settings of VPN gateway connection.
az network vpn-gateway connection update --gateway-name
--name
--resource-group
[--add]
[--associated]
[--force-string]
[--labels]
[--no-wait]
[--propagated]
[--remove]
[--set]
Examples
Update settings of VPN gateway connection.
az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --labels NewLabel1 NewLabels2
Add labels of VPN gateway connection.
az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --add routingConfiguration.propagatedRouteTables.labels Newlabel1 Newlabel2
Reset labels of VPN gateway connection.
az network vpn-gateway connection update -g MyRG -n MyConnection --gateway-name MyGateway --set routingConfiguration.propagatedRouteTables.labels[0]=Newlabel1
Required Parameters
Name of the VPN gateway.
Name of the VPN gateway connection.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
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>.
The resource id of route table associated with this routing configuration.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Space-separated list of labels for propagated route tables.
Do not wait for the long-running operation to finish.
Space-separated list of resource id of propagated route tables.
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
az network vpn-gateway connection wait
Place the CLI in a waiting state until a condition of the site-to-site VPN gateway connection is met.
az network vpn-gateway connection wait --gateway-name
--name
--resource-group
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
Name of the VPN gateway.
Name of the VPN gateway connection.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ