Skip to content

Commit b4bf76a

Browse files
brwurzisra-fel
andauthored
Update Update-AzVpnGateway.md (#17787)
* Update Update-AzVpnGateway.md I worked with Deepak Narula to create commands to remove custom BGP IP from virtual wan vpn gateway and set them back to default. * Update src/Network/Network/help/Update-AzVpnGateway.md Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Yeming Liu <[email protected]>
1 parent 72f2c59 commit b4bf76a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Network/Network/help/Update-AzVpnGateway.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,20 @@ A VPN gateway will be created thereafter in the Virtual Hub with 2 scale units.
106106

107107
After the gateway has been created, it uses Set-AzVpnGateway to update BgpPeeringAddress.
108108

109+
### Example 3
110+
111+
```powershell
112+
$gw = Get-AzVpnGateway -ResourceGroupName "testRg" -Name "testgw"
113+
$gw.BgpSettings.BgpPeeringAddresses
114+
$gw.BgpSettings.BgpPeeringAddresses[0].CustomBgpIpAddresses=$null
115+
$gw.BgpSettings.BgpPeeringAddresses[1].CustomBgpIpAddresses=$null
116+
$gw.BgpSettings.BgpPeeringAddresses
117+
Update-AzVpnGateway -InputObject $gw
118+
```
119+
The above will update the Virtual WAN VPN Gateway to use the default BgpPeeringAddress.
120+
121+
It uses Update-AzVpnGateway to update BgpPeeringAddress
122+
109123
## PARAMETERS
110124

111125
### -AsJob
@@ -340,4 +354,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
340354
341355
[New-AzVpnGateway](./New-AzVpnGateway.md)
342356
343-
[Remove-AzVpnGateway](./Remove-AzVpnGateway.md)
357+
[Remove-AzVpnGateway](./Remove-AzVpnGateway.md)

0 commit comments

Comments
 (0)