Skip to content

Commit fc89a3b

Browse files
authored
Fix example 1 in Set-AzVirtualNetworkPeering.md (#20588)
1 parent 4c6d726 commit fc89a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The **Set-AzVirtualNetworkPeering** cmdlet configures a virtual network peering.
2626
### Example 1: Change forwarded traffic configuration of a virtual network peering
2727
```powershell
2828
# Get the virtual network peering you want to update information for
29-
Get-AzVirtualNetworkPeering -VirtualNetworkName "myVnet1" -ResourceGroupName "ResourceGroup" -Name "myVnet1ToMyVnet2"
29+
$myVnet1ToMyVnet2 = Get-AzVirtualNetworkPeering -VirtualNetworkName "myVnet1" -ResourceGroupName "ResourceGroup" -Name "myVnet1ToMyVnet2"
3030
3131
# Change value of AllowForwardedTraffic property
3232
$myVnet1ToMyVnet2.AllowForwardedTraffic = $True

0 commit comments

Comments
 (0)