Skip to content

Commit 8768ff9

Browse files
committed
add links to commands
1 parent e6e14c8 commit 8768ff9

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

articles/vpn-gateway/vpn-gateway-howto-vnet-vnet-cli.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ titleSuffix: Azure VPN Gateway
55
author: cherylmc
66
ms.service: vpn-gateway
77
ms.topic: how-to
8-
ms.date: 12/11/2023
8+
ms.date: 07/11/2024
99
ms.author: cherylmc
1010
ms.custom: devx-track-azurecli
1111

@@ -16,12 +16,9 @@ This article helps you connect virtual networks by using the VNet-to-VNet connec
1616

1717
:::image type="content" source="./media/vpn-gateway-howto-vnet-vnet-resource-manager-portal/vnet-vnet-diagram.png" alt-text="VNet to VNet diagram." lightbox="./media/vpn-gateway-howto-vnet-vnet-resource-manager-portal/vnet-vnet-diagram.png":::
1818

19-
The steps in this article apply to the [Resource Manager deployment model](../azure-resource-manager/management/deployment-models.md) and use Azure CLI. You can also create this configuration using a different deployment tool or deployment model by selecting a different option from the following list:
19+
In this exercise, you create the required virtual networks (VNets) and VPN gateways. We have steps to connect VNets within the same subscription, as well as steps and commands for the more complicated scenario to connect VNets in different subscriptions.
2020

21-
> [!div class="op_single_selector"]
22-
> * [Azure portal](vpn-gateway-howto-vnet-vnet-resource-manager-portal.md)
23-
> * [PowerShell](vpn-gateway-vnet-vnet-rm-ps.md)
24-
> * [Azure CLI](vpn-gateway-howto-vnet-vnet-cli.md)
21+
The Azure CLI command to create a connection is [az network vpn-connection](/cli/azure/network/vpn-connection). If you're connecting VNets from different subscriptions, use the steps in this article or in the [PowerShell](vpn-gateway-vnet-vnet-rm-ps.md) article. If you already have VNets that you want to connect and they're in the same subscription, you might want to use the [Azure portal](vpn-gateway-howto-vnet-vnet-resource-manager-portal.md) steps instead because the process is less complicated. Note that you can't connect VNets from different subscriptions using the Azure portal.
2522

2623
## <a name="about"></a>About connecting VNets
2724

articles/vpn-gateway/vpn-gateway-vnet-vnet-rm-ps.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,16 @@ author: cherylmc
66
ms.service: vpn-gateway
77
ms.custom: devx-track-azurepowershell
88
ms.topic: how-to
9-
ms.date: 12/11/2023
9+
ms.date: 07/11/2024
1010
ms.author: cherylmc
1111
---
1212
# Configure a VNet-to-VNet VPN gateway connection using PowerShell
1313

1414
This article helps you connect virtual networks by using the VNet-to-VNet connection type. The virtual networks can be in the same or different regions, and from the same or different subscriptions. When you connect virtual networks from different subscriptions, the subscriptions don't need to be associated with the same tenant.
1515

16-
The steps in this article apply to the [Resource Manager deployment model](../azure-resource-manager/management/deployment-models.md) and use PowerShell. You can also create this configuration using a different deployment tool or deployment model by selecting a different option from the following list:
16+
In this exercise, you create the required virtual networks (VNets) and VPN gateways. We have steps to connect VNets within the same subscription, as well as steps and commands for the more complicated scenario to connect VNets in different subscriptions.
1717

18-
> [!div class="op_single_selector"]
19-
> * [Azure portal](vpn-gateway-howto-vnet-vnet-resource-manager-portal.md)
20-
> * [PowerShell](vpn-gateway-vnet-vnet-rm-ps.md)
21-
> * [Azure CLI](vpn-gateway-howto-vnet-vnet-cli.md)
18+
The PowerShell cmdlet to create a connection is [New-AzVirtualNetworkGatewayConnection](/powershell/module/az.network/new-azvirtualnetworkgatewayconnection). The `-ConnectionType` is `Vnet2Vnet`. If you're connecting VNets from different subscriptions, use the steps in this article or in the [Azure CLI](vpn-gateway-howto-vnet-vnet-cli.md) article. If you already have VNets that you want to connect and they're in the same subscription, you might want to use the [Azure portal](vpn-gateway-howto-vnet-vnet-resource-manager-portal.md) steps instead because the process is less complicated. Note that you can't connect VNets from different subscriptions using the Azure portal.
2219

2320
:::image type="content" source="./media/vpn-gateway-howto-vnet-vnet-resource-manager-portal/vnet-vnet-diagram.png" alt-text="VNet to VNet diagram." lightbox="./media/vpn-gateway-howto-vnet-vnet-resource-manager-portal/vnet-vnet-diagram.png":::
2421

0 commit comments

Comments
 (0)