-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Fix Az.Peering Syntax Errors #17738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Az.Peering Syntax Errors #17738
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,14 +38,14 @@ Create registered prefixes for peering objects. | |
| ### Example 1: Get peering and create a registered prefix | ||
| ```powershell | ||
| $peering = Get-AzPeering -ResourceGroupName $resourceGroupName -Name $name | ||
| $peering | New-AzPeeringRegisteredPrefix -Name $asnName -Asn $asn | ||
| $peering | New-AzPeeringRegisteredPrefix -Name $asnName | ||
| ``` | ||
|
|
||
| Get the peering you want to add a registered prefix. Then pass that to the commandlet. | ||
|
|
||
| ### Example 2: Use peering resourceId to create a registered asn | ||
|
||
| ```powershell | ||
| New-AzPeeringRegisteredPrefix -ResourceId $resourceId -Name $asnName -Asn $asn | ||
| New-AzPeeringRegisteredPrefix -ResourceId $resourceId -Name $asnNames | ||
|
||
| ``` | ||
|
|
||
| ## PARAMETERS | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ Remove a prefix from a peering service resource id. | |
|
|
||
| ### Example 3 | ||
| ```powershell | ||
| Remove-AzPeeringServicePrefix -ResourceGroupName $peeringServiceGroup -PeeringServiceName $peeringServiceName -Name $prefixName -PassThru | ||
| Remove-AzPeeringServicePrefix -ResourceGroupName $peeringServiceGroup -Name $prefixName -PassThru | ||
|
||
| ``` | ||
|
|
||
| ```output | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ Allows you to update contact information for a PeerAsn on the subscription. | |
| ### Example 1 | ||
| ```powershell | ||
| #Get the Peer ASN object | ||
| Get-AzPeerAsn -PeerName Contoso | Set-AzPeerAsn -Email [email protected] | ||
| Get-AzPeerAsn -Name Contoso | Set-AzPeerAsn | ||
| ``` | ||
|
|
||
| ```output | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ Sets the PSPeering Object | |
|
|
||
| ### Example 1: Update Md5 Authentication Key | ||
| ```powershell | ||
| $peering = Get-AzPeering -ResourceGroupName rg1 -PeerName "ContosoPeering" | ||
| $peering = Get-AzPeering -ResourceGroupName rg1 -Name "ContosoPeering" | ||
| $peering.Connections[0] = $peering.Connections[0] | Set-AzPeeringDirectConnectionObject -MD5AuthenticationKey $hash | ||
| $peering | Update-AzPeering | ||
| ``` | ||
|
|
@@ -64,7 +64,7 @@ Sets the Md5 Authentication Key | |
|
|
||
| ### Example 2: Update UseForPeeringService | ||
| ```powershell | ||
| Update-AzPeering -ResourceGroupName rg1 -Name ContosoPeering -UseForPeeringService $true | ||
| Update-AzPeering -ResourceGroupName rg1 -Name ContosoPeering | ||
|
||
| ``` | ||
|
|
||
| ```output | ||
|
|
@@ -86,7 +86,7 @@ Sets the Use for Peering Service Flag | |
|
|
||
| ### Example 3: Update IPv4 Address for Exchange Peering | ||
| ```powershell | ||
| $peering = Get-AzPeering -ResourceGroupName rg1 -PeerName "ContosoExchangePeering" | ||
| $peering = Get-AzPeering -ResourceGroupName rg1 -Name "ContosoExchangePeering" | ||
| $peering.Connections[0] = $peering.Connections[0] | Set-AzPeeringExchangeConnectionObject -PeerSessionIPv4Address $ipv4Address | ||
| Update-AzPeering -ResourceId $peering.Id $peering.Connections | ||
| ``` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$peering | New-AzPeeringRegisteredPrefix -Name $asnName -Prefix $prefix