Skip to content

Commit e118edb

Browse files
committed
Set-AzureRmLocalNetworkGateway
Added example for Set-AzureRmLocalNetworkGateway
1 parent 4e8640b commit e118edb

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/ResourceManager/Network/Commands.Network/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!--
1+
<!--
22
Please leave this section at the top of the change log.
33
44
Changes for the current release should go under the section titled "Current Release", and should adhere to the following format:
@@ -21,6 +21,7 @@
2121
## Current Release
2222
* Updated all help files to include full parameter types and correct input/output types.
2323
* Added examples for LoadBalancerInboundNatPoolConfig cmdlets.
24+
* Added example for Set-AzureRmLocalNetworkGateway
2425

2526
## Version 6.4.0
2627
* Updated below cmdlets for Application Gateway

src/ResourceManager/Network/Commands.Network/help/Set-AzureRmLocalNetworkGateway.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,27 @@ Set-AzureRmLocalNetworkGateway -LocalNetworkGateway <PSLocalNetworkGateway>
2424
The **Set-AzureRmLocalNetworkGateway** cmdlet modifies a local network gateway.
2525

2626
## EXAMPLES
27-
27+
### Example 1
28+
Set configuration for an existing gateway
29+
```
30+
$lgw = Get-AzureRmLocalNetworkGateway -Name myLocalGW -ResourceGroupName myRG
31+
Set-AzureRmLocalNetworkGateway -LocalNetworkGateway $lgw
32+
33+
Name : myLocalGW
34+
ResourceGroupName : TestRG1
35+
Location : westus
36+
Id : /subscriptions/81ab786c-56eb-4a4d-bb5f-f60329772466/resourceGroups/TestRG1/providers/Microso
37+
ft.Network/localNetworkGateways/myLocalGW
38+
Etag : W/"d2de6968-315e-411d-a4b8-a8c335abe61b"
39+
ResourceGuid : 393acf8b-dbb8-4b08-a9ea-c714570710e1
40+
ProvisioningState : Succeeded
41+
Tags :
42+
GatewayIpAddress : 1.2.3.4
43+
LocalNetworkAddressSpace : {
44+
"AddressPrefixes": []
45+
}
46+
BgpSettings : null
47+
```
2848
## PARAMETERS
2949

3050
### -AddressPrefix

0 commit comments

Comments
 (0)