File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,26 @@ This command gets the route table named RouteTable01 by using Get-AzRouteTable c
72
72
The command passes that table to the Add-AzRouteConfig cmdlet by using the pipeline operator.
73
73
** Add-AzRouteConfig** adds the route named Route07, and then passes the result to the current cmdlet, which updates the table to reflect your changes.
74
74
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
+
75
95
## PARAMETERS
76
96
77
97
### -AsJob
You can’t perform that action at this time.
0 commit comments