Skip to content

Update RouteTable docs #8380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/Network/Network/help/Set-AzRouteTable.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,26 @@ This command gets the route table named RouteTable01 by using Get-AzRouteTable c
The command passes that table to the Add-AzRouteConfig cmdlet by using the pipeline operator.
**Add-AzRouteConfig** adds the route named Route07, and then passes the result to the current cmdlet, which updates the table to reflect your changes.

### Example 2: Modify route table

```
PS C:\> $rt = Get-AzRouteTable -ResourceGroupName "rgName" -Name "rtName"
PS C:\> $rt.DisableBgpRoutePropagation
False
PS C:\> $rt.DisableBgpRoutePropagation = $true
PS C:\> Set-AzRouteTable -RouteTable $rt
PS C:\> $rt = Get-AzRouteTable -ResourceGroupName "rgName" -Name "rtName"
PS C:\> $rt.DisableBgpRoutePropagation
True
```

The first command gets the route table named rtName and stores it in the $rt variable.
The second command displays the value of DisableBgpRoutePropagation.
The third command updates value of DisableBgpRoutePropagation.
The fourth command updates route table on the server.
The fifth command gets updated route table and stores it in the $rt variable.
The sixth command displays the value of DisableBgpRoutePropagation.

## PARAMETERS

### -AsJob
Expand Down