Skip to content

Commit 7a798c4

Browse files
authored
Merge pull request #14 from ahussein-CSA/patch-4
Update create-bgp-peering-hub-powershell.md
2 parents bf0bd45 + 3a6f6fa commit 7a798c4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

articles/virtual-wan/create-bgp-peering-hub-powershell.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,44 @@ This article helps you configure an Azure Virtual WAN hub router to peer with a
1515

1616
:::image type="content" source="./media/create-bgp-peering-hub-portal/diagram.png" alt-text="Diagram of configuration.":::
1717

18-
## Prerequisites
18+
### Prerequisites
1919

2020
Verify that you've met the following criteria before beginning your configuration:
2121

2222
[!INCLUDE [Before you begin](../../includes/virtual-wan-before-include.md)]
2323

24-
### Azure PowerShell
24+
#### Azure PowerShell
2525

2626
[!INCLUDE [PowerShell](../../includes/vpn-gateway-cloud-shell-powershell-about.md)]
2727

28-
## <a name="signin"></a>Sign in
28+
#### <a name="signin"></a>Sign in
2929

3030
[!INCLUDE [sign in](../../includes/vpn-gateway-cloud-shell-ps-login.md)]
3131

32-
## Create a virtual WAN
32+
#### Create a virtual WAN
3333

3434
```azurepowershell-interactive
3535
$virtualWan = New-AzVirtualWan -ResourceGroupName "testRG" -Name "myVirtualWAN" -Location "West US"
3636
```
3737

38-
## Create a virtual hub
38+
#### Create a virtual hub
3939

4040
A hub is a virtual network that can contain gateways for site-to-site, ExpressRoute, or point-to-site functionality. Once the hub is created, you'll be charged for the hub, even if you don't attach any sites.
4141

4242
```azurepowershell-interactive
4343
$virtualHub = New-AzVirtualHub -VirtualWan $virtualWan -ResourceGroupName "testRG" -Name "westushub" -AddressPrefix "10.0.0.1/24"
4444
```
4545

46-
## Connect the VNet to the hub
46+
#### Connect the VNet to the hub
4747

48-
In this section, you create a connection between your hub and VNet.
48+
In this section, you create a connection between your hub and VNet:
4949

5050
```azurepowershell-interactive
51+
$remote = Get-AzVirtualNetwork -Name "[vnet name]" -ResourceGroupName "[resource group name]"
5152
$hubVnetConnection = New-AzVirtualHubVnetConnection -ResourceGroupName "[parent resource group name]" -VirtualHubName "[virtual hub name]" -Name "[name of connection]" -RemoteVirtualNetwork $remote
5253
```
5354

54-
## Configure a BGP peer
55+
#### Configure a BGP peer
5556

5657
Configure BGP peer for the $hubVnetConnection you created.
5758

@@ -67,22 +68,22 @@ $hubVnetConnection = Get-AzVirtualHubVnetConnection -ResourceGroupName "[resourc
6768
New-AzVirtualHubBgpConnection -ResourceGroupName "[resource group name]" -VirtualHubName "westushub" -PeerIp 192.168.1.5 -PeerAsn 20000 -Name "testBgpConnection" -VirtualHubVnetConnection $hubVnetConnection
6869
```
6970

70-
## Modify a BGP peer
71+
#### Modify a BGP peer
7172

7273
Update an existing hub BGP peer connection.
7374

7475
```azurepowershell-interactive
7576
Update-AzVirtualHubBgpConnection -ResourceGroupName "[resource group name]" -VirtualHubName "westushub" -PeerIp 192.168.1.6 -PeerAsn 20000 -Name "testBgpConnection" -VirtualHubVnetConnection $hubVnetConnection
7677
```
7778

78-
## Delete a BGP peer
79+
#### Delete a BGP peer
7980

8081
Remove an existing hub BGP connection.
8182

8283
```azurepowershell-interactive
8384
Remove-AzVirtualHubBgpConnection -ResourceGroupName "[resource group name]" -VirtualHubName "westushub" -Name "testBgpConnection"
8485
```
8586

86-
## Next steps
87+
#### Next steps
8788

8889
For more information about BGP scenarios, see [Scenario: BGP peering with a virtual hub](scenario-bgp-peering-hub.md).

0 commit comments

Comments
 (0)