Skip to content

Commit 6e3f856

Browse files
authored
Update how-to-configure-custom-bgp-communities.md
Existing step for adding BGP Community to a vnet doesn't work. ``` PS> $vnet.BgpCommunities.VirtualNetworkCommunity = '12076:20001' InvalidOperation: The property 'VirtualNetworkCommunity' cannot be found on this object. Verify that the property exists and can be set. ```
1 parent f664ab7 commit 6e3f856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/expressroute/how-to-configure-custom-bgp-communities.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ BGP communities are groupings of IP prefixes tagged with a community value. This
8686
1. Update the `VirtualNetworkCommunity` value for your virtual network.
8787
8888
```azurepowershell-interactive
89-
$vnet.BgpCommunities.VirtualNetworkCommunity = '12076:20002'
89+
$vnet.BgpCommunities = @{VirtualNetworkCommunity = '12076:20002'}
9090
$vnet | Set-AzVirtualNetwork
9191
```
9292

0 commit comments

Comments
 (0)