@@ -55,38 +55,16 @@ Sets the PSPeering Object
5555
5656### Example 1: Update Md5 Authentication Key
5757``` powershell
58- $peering = Get-AzPeering -ResourceGroupName rg1 -PeerName "ContosoPeering"
58+ $peering = Get-AzPeering -ResourceGroupName rg1 -Name "ContosoPeering"
5959$peering.Connections[0] = $peering.Connections[0] | Set-AzPeeringDirectConnectionObject -MD5AuthenticationKey $hash
6060$peering | Update-AzPeering
6161```
6262
6363Sets the Md5 Authentication Key
6464
65- ### Example 2: Update UseForPeeringService
65+ ### Example 2: Update IPv4 Address for Exchange Peering
6666``` powershell
67- Update-AzPeering -ResourceGroupName rg1 -Name ContosoPeering -UseForPeeringService $true
68- ```
69-
70- ``` output
71- Name : ContosoPeering
72- Sku.Name : Premium_Direct_Free
73- Kind : Direct
74- Connections : {71}
75- PeerAsn.Id : /subscriptions//providers/Microsoft.Peering/peerAsns/Contoso
76- UseForPeeringService : True
77- PeeringLocation : Seattle
78- ProvisioningState : Succeeded
79- Location : West US 2
80- Id : /subscriptions//resourceGroups/rg1/providers/Microsoft.Peering/peerings/ContosoPeering
81- Type : Microsoft.Peering/peerings
82- Tags : {[tag2, value2], [tag1, value1]}
83- ```
84-
85- Sets the Use for Peering Service Flag
86-
87- ### Example 3: Update IPv4 Address for Exchange Peering
88- ``` powershell
89- $peering = Get-AzPeering -ResourceGroupName rg1 -PeerName "ContosoExchangePeering"
67+ $peering = Get-AzPeering -ResourceGroupName rg1 -Name "ContosoExchangePeering"
9068$peering.Connections[0] = $peering.Connections[0] | Set-AzPeeringExchangeConnectionObject -PeerSessionIPv4Address $ipv4Address
9169Update-AzPeering -ResourceId $peering.Id $peering.Connections
9270```
0 commit comments