-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Fix Az.Peering Syntax Errors #17738
Conversation
@@ -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 |
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
@@ -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 |
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
``` | ||
|
||
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 |
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
@@ -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 |
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
@@ -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 |
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.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added