Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Peering/Az.Peering.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 1/30/2023
# Generated on: 2/2/2023
#

@{
Expand Down
2 changes: 1 addition & 1 deletion src/Peering/Az.Peering.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

if(-not $accountsModule) {
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://learn.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
} elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
}
Expand Down
70 changes: 35 additions & 35 deletions src/Peering/Peering.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{F667231F-2E61-4073-A344-089AA1143A4D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{B7720754-0C36-4C3F-985D-563FEF7443DA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{293DEF2D-8E36-46DE-9554-DDB2EAC2B938}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{814F5D03-1889-4E68-8EF2-4E86DF6616CD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B16E67AF-2829-4A77-991E-9E68E3BFFD44}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B1DDB437-98ED-40C2-92C2-05105A01AA27}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A7492AB5-BD93-41D1-A087-0491E53F36DF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{BE617612-8B45-4895-8614-5AE845E48453}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{E707E9BE-792F-4505-8835-4891A0C24919}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{31CBC841-9890-4C88-8003-4D4FBF9CF990}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Peering", "Az.Peering.csproj", "{2792EF2D-6752-4768-BD06-56D8ADE95E98}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Peering", "Az.Peering.csproj", "{D7189EC5-0A92-43E7-8F54-AD600077ABA6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -26,33 +26,33 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F667231F-2E61-4073-A344-089AA1143A4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F667231F-2E61-4073-A344-089AA1143A4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F667231F-2E61-4073-A344-089AA1143A4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F667231F-2E61-4073-A344-089AA1143A4D}.Release|Any CPU.Build.0 = Release|Any CPU
{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Release|Any CPU.Build.0 = Release|Any CPU
{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Release|Any CPU.Build.0 = Release|Any CPU
{B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Release|Any CPU.Build.0 = Release|Any CPU
{A7492AB5-BD93-41D1-A087-0491E53F36DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A7492AB5-BD93-41D1-A087-0491E53F36DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A7492AB5-BD93-41D1-A087-0491E53F36DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A7492AB5-BD93-41D1-A087-0491E53F36DF}.Release|Any CPU.Build.0 = Release|Any CPU
{E707E9BE-792F-4505-8835-4891A0C24919}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E707E9BE-792F-4505-8835-4891A0C24919}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E707E9BE-792F-4505-8835-4891A0C24919}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E707E9BE-792F-4505-8835-4891A0C24919}.Release|Any CPU.Build.0 = Release|Any CPU
{2792EF2D-6752-4768-BD06-56D8ADE95E98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2792EF2D-6752-4768-BD06-56D8ADE95E98}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2792EF2D-6752-4768-BD06-56D8ADE95E98}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2792EF2D-6752-4768-BD06-56D8ADE95E98}.Release|Any CPU.Build.0 = Release|Any CPU
{B7720754-0C36-4C3F-985D-563FEF7443DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7720754-0C36-4C3F-985D-563FEF7443DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7720754-0C36-4C3F-985D-563FEF7443DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7720754-0C36-4C3F-985D-563FEF7443DA}.Release|Any CPU.Build.0 = Release|Any CPU
{293DEF2D-8E36-46DE-9554-DDB2EAC2B938}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{293DEF2D-8E36-46DE-9554-DDB2EAC2B938}.Debug|Any CPU.Build.0 = Debug|Any CPU
{293DEF2D-8E36-46DE-9554-DDB2EAC2B938}.Release|Any CPU.ActiveCfg = Release|Any CPU
{293DEF2D-8E36-46DE-9554-DDB2EAC2B938}.Release|Any CPU.Build.0 = Release|Any CPU
{814F5D03-1889-4E68-8EF2-4E86DF6616CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{814F5D03-1889-4E68-8EF2-4E86DF6616CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{814F5D03-1889-4E68-8EF2-4E86DF6616CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{814F5D03-1889-4E68-8EF2-4E86DF6616CD}.Release|Any CPU.Build.0 = Release|Any CPU
{B1DDB437-98ED-40C2-92C2-05105A01AA27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1DDB437-98ED-40C2-92C2-05105A01AA27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1DDB437-98ED-40C2-92C2-05105A01AA27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1DDB437-98ED-40C2-92C2-05105A01AA27}.Release|Any CPU.Build.0 = Release|Any CPU
{BE617612-8B45-4895-8614-5AE845E48453}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE617612-8B45-4895-8614-5AE845E48453}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE617612-8B45-4895-8614-5AE845E48453}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE617612-8B45-4895-8614-5AE845E48453}.Release|Any CPU.Build.0 = Release|Any CPU
{31CBC841-9890-4C88-8003-4D4FBF9CF990}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31CBC841-9890-4C88-8003-4D4FBF9CF990}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31CBC841-9890-4C88-8003-4D4FBF9CF990}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31CBC841-9890-4C88-8003-4D4FBF9CF990}.Release|Any CPU.Build.0 = Release|Any CPU
{D7189EC5-0A92-43E7-8F54-AD600077ABA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D7189EC5-0A92-43E7-8F54-AD600077ABA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D7189EC5-0A92-43E7-8F54-AD600077ABA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D7189EC5-0A92-43E7-8F54-AD600077ABA6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/Peering/custom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ These provide functionality to our HTTP pipeline and other useful features. In s
### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.Peering.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.Peering.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Peering`.
- `Microsoft.Azure.PowerShell.Cmdlets.Peering.InternalExportAttribute`
Expand Down
5 changes: 3 additions & 2 deletions src/Peering/examples/New-AzPeering.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Example 1: Create a new direct peering object
```powershell
$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ...
$directConnections = ,$connection1
$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest"
$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000

New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited
```

Expand Down
6 changes: 4 additions & 2 deletions src/Peering/examples/New-AzPeeringDirectConnectionObject.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
### Example 1: Create a direct connection object
```powershell
$md5Key = "******"

New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111
```

```output
BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps ... [more fields]
--------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- ... -------------
BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps
--------------- -------------------- --------------- ------------ ------------------- ------------------- --------------------------
10000 c111111111111 PendingApproval 82

```
Expand Down
6 changes: 4 additions & 2 deletions src/Peering/examples/New-AzPeeringExchangeConnectionObject.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
### Example 1: Create an exchange connection object
```powershell
$md5Key = "******"

New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111
```

```output
ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId ... [more fields]
-------------------- --------------- ------------ ------------------- ... -------------
ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId
-------------------- --------------- ------------ -------------------
c111111111111 82
```

Expand Down
2 changes: 1 addition & 1 deletion src/Peering/examples/Remove-AzPeeringServicePrefix.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### Example 1: Remove peering service prefix
```powershell
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
```

Removes peering service prefix from peering
Expand Down
5 changes: 3 additions & 2 deletions src/Peering/exports/New-AzPeering.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Creates a new peering or updates an existing peering with the specified name und
.Description
Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
.Example
$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ...
$directConnections = ,$connection1
$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest"
$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000

New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited

.Outputs
Expand Down
2 changes: 2 additions & 0 deletions src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Create an in-memory object for DirectConnection.
.Description
Create an in-memory object for DirectConnection.
.Example
$md5Key = "******"

New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111

.Outputs
Expand Down
2 changes: 2 additions & 0 deletions src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Create an in-memory object for ExchangeConnection.
.Description
Create an in-memory object for ExchangeConnection.
.Example
$md5Key = "******"

New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111

.Outputs
Expand Down
11 changes: 8 additions & 3 deletions src/Peering/exports/ProxyCmdletDefinitions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4006,8 +4006,9 @@ Creates a new peering or updates an existing peering with the specified name und
.Description
Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
.Example
$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ...
$directConnections = ,$connection1
$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest"
$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000

New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited

.Outputs
Expand Down Expand Up @@ -5059,7 +5060,7 @@ Deletes an existing prefix with the specified name under the given subscription,
.Description
Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.
.Example
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
Expand Down Expand Up @@ -6857,6 +6858,8 @@ Create an in-memory object for DirectConnection.
.Description
Create an in-memory object for DirectConnection.
.Example
$md5Key = "******"

New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111

.Outputs
Expand Down Expand Up @@ -7034,6 +7037,8 @@ Create an in-memory object for ExchangeConnection.
.Description
Create an in-memory object for ExchangeConnection.
.Example
$md5Key = "******"

New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111

.Outputs
Expand Down
2 changes: 1 addition & 1 deletion src/Peering/exports/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Exports
This directory contains the cmdlets *exported by* `Az.Peering`. No other cmdlets in this repository are directly exported. What that means is the `Az.Peering` module will run [Export-ModuleMember](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.
This directory contains the cmdlets *exported by* `Az.Peering`. No other cmdlets in this repository are directly exported. What that means is the `Az.Peering` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation.

## Info
- Modifiable: no
Expand Down
2 changes: 1 addition & 1 deletion src/Peering/exports/Remove-AzPeeringServicePrefix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Deletes an existing prefix with the specified name under the given subscription,
.Description
Deletes an existing prefix with the specified name under the given subscription, resource group and peering service.
.Example
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG
Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
Expand Down
2 changes: 1 addition & 1 deletion src/Peering/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"swagger_commit": "90a294fca4845153be79d926b7415be5375522ac",
"swagger_commit": "3d7a3848106b831a4a7f46976fe38aa605c4f44d",
"node": "v14.15.5",
"autorest": "`-- (empty)",
"autorest_core": "3.9.4",
Expand Down
5 changes: 3 additions & 2 deletions src/Peering/help/New-AzPeering.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ Creates a new peering or updates an existing peering with the specified name und

### Example 1: Create a new direct peering object
```powershell
$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ...
$directConnections = ,$connection1
$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest"
$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000

New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited
```

Expand Down
Loading