Skip to content

Commit

Permalink
Fix parameter name in Sync-AzVirtualNetworkPeering examples (Azure#15493
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pascalberger authored Jul 20, 2021
1 parent b8fffcd commit 733bfa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Network/Network/help/Sync-AzVirtualNetworkPeering.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ Updating the address space on peered virtual networks is now supported. However,

### Example 1
```powershell
PS C:\> Sync-AzVirtualNetworkPeering -Name 'peering2' -VirtualNetwork 'vnet1' -ResourceGroupName 'rg1'
PS C:\> Sync-AzVirtualNetworkPeering -Name 'peering2' -VirtualNetworkName 'vnet1' -ResourceGroupName 'rg1'
```

Syncs the address space on the peering, peering2 in the virtual network, vnet1 within the resource group, rg1.

### Example 2
```powershell
PS C:\> $s1h1 = Get-AzVirtualNetworkPeering -Name 'spoke1-hub1' -VirtualNetwork 'spoke1' -ResourceGroupName 'HUB1-RG'
PS C:\> $s1h1 = Get-AzVirtualNetworkPeering -Name 'spoke1-hub1' -VirtualNetworkName 'spoke1' -ResourceGroupName 'HUB1-RG'
PS C:\> $s1h1 | Sync-AzVirtualNetworkPeering
```

Expand Down

0 comments on commit 733bfa8

Please sign in to comment.