Skip to content

Commit a708cac

Browse files
authored
Merge pull request #8380 from number213/route-table-help
Update RouteTable docs
2 parents fda9c19 + c9c104a commit a708cac

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Network/Network/help/Set-AzRouteTable.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,26 @@ This command gets the route table named RouteTable01 by using Get-AzRouteTable c
7272
The command passes that table to the Add-AzRouteConfig cmdlet by using the pipeline operator.
7373
**Add-AzRouteConfig** adds the route named Route07, and then passes the result to the current cmdlet, which updates the table to reflect your changes.
7474

75+
### Example 2: Modify route table
76+
77+
```
78+
PS C:\> $rt = Get-AzRouteTable -ResourceGroupName "rgName" -Name "rtName"
79+
PS C:\> $rt.DisableBgpRoutePropagation
80+
False
81+
PS C:\> $rt.DisableBgpRoutePropagation = $true
82+
PS C:\> Set-AzRouteTable -RouteTable $rt
83+
PS C:\> $rt = Get-AzRouteTable -ResourceGroupName "rgName" -Name "rtName"
84+
PS C:\> $rt.DisableBgpRoutePropagation
85+
True
86+
```
87+
88+
The first command gets the route table named rtName and stores it in the $rt variable.
89+
The second command displays the value of DisableBgpRoutePropagation.
90+
The third command updates value of DisableBgpRoutePropagation.
91+
The fourth command updates route table on the server.
92+
The fifth command gets updated route table and stores it in the $rt variable.
93+
The sixth command displays the value of DisableBgpRoutePropagation.
94+
7595
## PARAMETERS
7696

7797
### -AsJob

0 commit comments

Comments
 (0)