-
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
Conversation
|
|
||
| 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 |
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.
Example 2: Use peering resourceId to create a registered prefix
| ```powershell | ||
| $peering = Get-AzPeering -ResourceGroupName $resourceGroupName -Name $name | ||
| $peering | New-AzPeeringRegisteredPrefix -Name $asnName -Asn $asn | ||
| $peering | New-AzPeeringRegisteredPrefix -Name $asnName |
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
| ### 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 |
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.
New-AzPeeringRegisteredPrefix -ResourceId $resourceId -Name $asnName -Prefix $prefix
| ### Example 3 | ||
| ```powershell | ||
| Remove-AzPeeringServicePrefix -ResourceGroupName $peeringServiceGroup -PeeringServiceName $peeringServiceName -Name $prefixName -PassThru | ||
| Remove-AzPeeringServicePrefix -ResourceGroupName $peeringServiceGroup -Name $prefixName -PassThru |
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.
40: Get-AzPeeringServicePrefix -ResourceGroupName $rgName -PeeringServiceName $peeringServiceName -Name $prefixName | Remove-AzPeeringServicePrefix
47: Remove-AzPeeringServicePrefix -ResourceId $peeringServicePrefixResourceId -PassThru
58: Remove-AzPeeringServicePrefix -ResourceGroupName $peeringServiceGroup -Name $peeringServiceName -PrefixName $prefixName -PassThru
| ### Example 2: Update UseForPeeringService | ||
| ```powershell | ||
| Update-AzPeering -ResourceGroupName rg1 -Name ContosoPeering -UseForPeeringService $true | ||
| Update-AzPeering -ResourceGroupName rg1 -Name ContosoPeering |
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.
delete the entire example
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.
Why delete the entire example?
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.
Without "UseForPeeringService" parameter, this example is meaningless. It updates nothing.
553c7e9 to
58661ad
Compare
Description
Checklist
CONTRIBUTING.mdChangeLog.mdfile(s) has been updated:ChangeLog.mdfile can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md## Upcoming Releaseheader -- no new version header should be added