From d6b2fa274369d722f92edce7a1bd83b8fc4d20bb Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Mon, 30 Jan 2023 07:48:16 +0000
Subject: [PATCH 1/2] Move Peering to feature/delete-peering-main
---
src/Peering/Az.Peering.csproj | 8 +
src/Peering/Az.Peering.format.ps1xml | 2289 +++++
src/Peering/Az.Peering.psd1 | 155 +
src/Peering/Az.Peering.psm1 | 115 +
src/Peering/Changelog.md | 24 +
src/Peering/Peering.sln | 58 +
src/Peering/Properties/AssemblyInfo.cs | 28 +
src/Peering/README.md | 239 +
src/Peering/build-module.ps1 | 161 +
src/Peering/check-dependencies.ps1 | 65 +
src/Peering/create-model-cmdlets.ps1 | 179 +
src/Peering/custom/Az.Peering.custom.psm1 | 17 +
src/Peering/custom/README.md | 41 +
...ServiceProviderAvailabilityInputObject.ps1 | 53 +
.../New-AzPeeringContactDetailObject.ps1 | 60 +
.../New-AzPeeringDirectConnectionObject.ps1 | 126 +
.../New-AzPeeringExchangeConnectionObject.ps1 | 107 +
src/Peering/examples/Get-AzPeering.md | 33 +
src/Peering/examples/Get-AzPeeringAsn.md | 26 +
.../examples/Get-AzPeeringCdnPrefix.md | 19 +
.../Get-AzPeeringConnectionMonitorTest.md | 27 +
src/Peering/examples/Get-AzPeeringLegacy.md | 15 +
src/Peering/examples/Get-AzPeeringLocation.md | 21 +
.../examples/Get-AzPeeringReceivedRoute.md | 46 +
.../examples/Get-AzPeeringRegisteredAsn.md | 28 +
.../examples/Get-AzPeeringRegisteredPrefix.md | 30 +
.../examples/Get-AzPeeringRpUnbilledPrefix.md | 15 +
src/Peering/examples/Get-AzPeeringService.md | 53 +
.../examples/Get-AzPeeringServiceCountry.md | 27 +
.../examples/Get-AzPeeringServiceLocation.md | 59 +
.../examples/Get-AzPeeringServicePrefix.md | 27 +
.../examples/Get-AzPeeringServiceProvider.md | 27 +
...alize-AzPeeringServiceConnectionMonitor.md | 7 +
src/Peering/examples/New-AzPeering.md | 15 +
src/Peering/examples/New-AzPeeringAsn.md | 15 +
...kServiceProviderAvailabilityInputObject.md | 12 +
.../New-AzPeeringConnectionMonitorTest.md | 13 +
.../New-AzPeeringContactDetailObject.md | 13 +
.../New-AzPeeringDirectConnectionObject.md | 14 +
.../New-AzPeeringExchangeConnectionObject.md | 13 +
.../examples/New-AzPeeringRegisteredAsn.md | 12 +
.../examples/New-AzPeeringRegisteredPrefix.md | 13 +
src/Peering/examples/New-AzPeeringService.md | 12 +
.../examples/New-AzPeeringServicePrefix.md | 13 +
src/Peering/examples/Remove-AzPeering.md | 7 +
src/Peering/examples/Remove-AzPeeringAsn.md | 7 +
.../Remove-AzPeeringConnectionMonitorTest.md | 7 +
.../examples/Remove-AzPeeringRegisteredAsn.md | 6 +
.../Remove-AzPeeringRegisteredPrefix.md | 6 +
.../examples/Remove-AzPeeringService.md | 7 +
.../examples/Remove-AzPeeringServicePrefix.md | 7 +
.../Start-AzPeeringInvokeLookingGlass.md | 13 +
.../Test-AzPeeringRegisteredPrefix.md | 13 +
...st-AzPeeringServiceProviderAvailability.md | 11 +
src/Peering/examples/Update-AzPeering.md | 14 +
.../examples/Update-AzPeeringService.md | 13 +
src/Peering/export-surface.ps1 | 41 +
src/Peering/exports/Get-AzPeering.ps1 | 210 +
src/Peering/exports/Get-AzPeeringAsn.ps1 | 201 +
.../exports/Get-AzPeeringCdnPrefix.ps1 | 170 +
.../Get-AzPeeringConnectionMonitorTest.ps1 | 215 +
src/Peering/exports/Get-AzPeeringLegacy.ps1 | 190 +
src/Peering/exports/Get-AzPeeringLocation.ps1 | 178 +
.../exports/Get-AzPeeringReceivedRoute.ps1 | 208 +
.../exports/Get-AzPeeringRegisteredAsn.ps1 | 215 +
.../exports/Get-AzPeeringRegisteredPrefix.ps1 | 215 +
.../exports/Get-AzPeeringRpUnbilledPrefix.ps1 | 182 +
src/Peering/exports/Get-AzPeeringService.ps1 | 212 +
.../exports/Get-AzPeeringServiceCountry.ps1 | 164 +
.../exports/Get-AzPeeringServiceLocation.ps1 | 172 +
.../exports/Get-AzPeeringServicePrefix.ps1 | 221 +
.../exports/Get-AzPeeringServiceProvider.ps1 | 164 +
...lize-AzPeeringServiceConnectionMonitor.ps1 | 196 +
src/Peering/exports/New-AzPeering.ps1 | 280 +
src/Peering/exports/New-AzPeeringAsn.ps1 | 202 +
...ServiceProviderAvailabilityInputObject.ps1 | 119 +
.../New-AzPeeringConnectionMonitorTest.ps1 | 207 +
.../New-AzPeeringContactDetailObject.ps1 | 126 +
.../New-AzPeeringDirectConnectionObject.ps1 | 192 +
.../New-AzPeeringExchangeConnectionObject.ps1 | 173 +
.../exports/New-AzPeeringRegisteredAsn.ps1 | 189 +
.../exports/New-AzPeeringRegisteredPrefix.ps1 | 189 +
src/Peering/exports/New-AzPeeringService.ps1 | 221 +
.../exports/New-AzPeeringServicePrefix.ps1 | 195 +
.../exports/ProxyCmdletDefinitions.ps1 | 7187 +++++++++++++++
src/Peering/exports/README.md | 20 +
src/Peering/exports/Remove-AzPeering.ps1 | 209 +
src/Peering/exports/Remove-AzPeeringAsn.ps1 | 203 +
.../Remove-AzPeeringConnectionMonitorTest.ps1 | 215 +
.../exports/Remove-AzPeeringRegisteredAsn.ps1 | 215 +
.../Remove-AzPeeringRegisteredPrefix.ps1 | 215 +
.../exports/Remove-AzPeeringService.ps1 | 209 +
.../exports/Remove-AzPeeringServicePrefix.ps1 | 215 +
.../Start-AzPeeringInvokeLookingGlass.ps1 | 216 +
.../Test-AzPeeringRegisteredPrefix.ps1 | 209 +
...t-AzPeeringServiceProviderAvailability.ps1 | 223 +
src/Peering/exports/Update-AzPeering.ps1 | 211 +
.../exports/Update-AzPeeringService.ps1 | 211 +
src/Peering/generate-help.ps1 | 74 +
src/Peering/generate-info.json | 8 +
src/Peering/generated/Module.cs | 181 +
.../Api20221001/BgpSession.PowerShell.cs | 244 +
.../Api20221001/BgpSession.TypeConverter.cs | 146 +
.../api/Models/Api20221001/BgpSession.cs | 227 +
.../api/Models/Api20221001/BgpSession.json.cs | 134 +
.../CdnPeeringPrefix.PowerShell.cs | 228 +
.../CdnPeeringPrefix.TypeConverter.cs | 147 +
.../Models/Api20221001/CdnPeeringPrefix.cs | 180 +
.../Api20221001/CdnPeeringPrefix.json.cs | 110 +
.../CdnPeeringPrefixListResult.PowerShell.cs | 172 +
...dnPeeringPrefixListResult.TypeConverter.cs | 147 +
.../Api20221001/CdnPeeringPrefixListResult.cs | 68 +
.../CdnPeeringPrefixListResult.json.cs | 118 +
.../CdnPeeringPrefixProperties.PowerShell.cs | 196 +
...dnPeeringPrefixProperties.TypeConverter.cs | 147 +
.../Api20221001/CdnPeeringPrefixProperties.cs | 134 +
.../CdnPeeringPrefixProperties.json.cs | 131 +
...iceProviderAvailabilityInput.PowerShell.cs | 177 +
...ProviderAvailabilityInput.TypeConverter.cs | 150 +
.../CheckServiceProviderAvailabilityInput.cs | 68 +
...ckServiceProviderAvailabilityInput.json.cs | 111 +
.../ConnectionMonitorTest.PowerShell.cs | 244 +
.../ConnectionMonitorTest.TypeConverter.cs | 147 +
.../Api20221001/ConnectionMonitorTest.cs | 197 +
.../Api20221001/ConnectionMonitorTest.json.cs | 110 +
...nectionMonitorTestListResult.PowerShell.cs | 174 +
...tionMonitorTestListResult.TypeConverter.cs | 148 +
.../ConnectionMonitorTestListResult.cs | 68 +
.../ConnectionMonitorTestListResult.json.cs | 118 +
...nectionMonitorTestProperties.PowerShell.cs | 214 +
...tionMonitorTestProperties.TypeConverter.cs | 148 +
.../ConnectionMonitorTestProperties.cs | 162 +
.../ConnectionMonitorTestProperties.json.cs | 137 +
.../Api20221001/ContactDetail.PowerShell.cs | 180 +
.../ContactDetail.TypeConverter.cs | 147 +
.../api/Models/Api20221001/ContactDetail.cs | 85 +
.../Models/Api20221001/ContactDetail.json.cs | 112 +
.../DirectConnection.PowerShell.cs | 324 +
.../DirectConnection.TypeConverter.cs | 147 +
.../Models/Api20221001/DirectConnection.cs | 383 +
.../Api20221001/DirectConnection.json.cs | 138 +
.../DirectPeeringFacility.PowerShell.cs | 188 +
.../DirectPeeringFacility.TypeConverter.cs | 147 +
.../Api20221001/DirectPeeringFacility.cs | 102 +
.../Api20221001/DirectPeeringFacility.json.cs | 114 +
.../Api20221001/ErrorDetail.PowerShell.cs | 172 +
.../Api20221001/ErrorDetail.TypeConverter.cs | 147 +
.../api/Models/Api20221001/ErrorDetail.cs | 74 +
.../Models/Api20221001/ErrorDetail.json.cs | 116 +
.../Api20221001/ErrorResponse.PowerShell.cs | 180 +
.../ErrorResponse.TypeConverter.cs | 147 +
.../api/Models/Api20221001/ErrorResponse.cs | 80 +
.../Models/Api20221001/ErrorResponse.json.cs | 108 +
.../ExchangeConnection.PowerShell.cs | 284 +
.../ExchangeConnection.TypeConverter.cs | 147 +
.../Models/Api20221001/ExchangeConnection.cs | 280 +
.../Api20221001/ExchangeConnection.json.cs | 122 +
.../ExchangePeeringFacility.PowerShell.cs | 220 +
.../ExchangePeeringFacility.TypeConverter.cs | 147 +
.../Api20221001/ExchangePeeringFacility.cs | 176 +
.../ExchangePeeringFacility.json.cs | 122 +
...AnalyticsWorkspaceProperties.PowerShell.cs | 182 +
...lyticsWorkspaceProperties.TypeConverter.cs | 148 +
.../LogAnalyticsWorkspaceProperties.cs | 94 +
.../LogAnalyticsWorkspaceProperties.json.cs | 129 +
.../LookingGlassOutput.PowerShell.cs | 172 +
.../LookingGlassOutput.TypeConverter.cs | 147 +
.../Models/Api20221001/LookingGlassOutput.cs | 68 +
.../Api20221001/LookingGlassOutput.json.cs | 110 +
.../Api20221001/MetricDimension.PowerShell.cs | 172 +
.../MetricDimension.TypeConverter.cs | 147 +
.../api/Models/Api20221001/MetricDimension.cs | 74 +
.../Api20221001/MetricDimension.json.cs | 116 +
.../MetricSpecification.PowerShell.cs | 212 +
.../MetricSpecification.TypeConverter.cs | 147 +
.../Models/Api20221001/MetricSpecification.cs | 180 +
.../Api20221001/MetricSpecification.json.cs | 157 +
.../Api20221001/Operation.PowerShell.cs | 236 +
.../Api20221001/Operation.TypeConverter.cs | 146 +
.../api/Models/Api20221001/Operation.cs | 188 +
.../api/Models/Api20221001/Operation.json.cs | 126 +
.../OperationDisplayInfo.PowerShell.cs | 188 +
.../OperationDisplayInfo.TypeConverter.cs | 147 +
.../Api20221001/OperationDisplayInfo.cs | 114 +
.../Api20221001/OperationDisplayInfo.json.cs | 126 +
.../OperationListResult.PowerShell.cs | 172 +
.../OperationListResult.TypeConverter.cs | 147 +
.../Models/Api20221001/OperationListResult.cs | 68 +
.../Api20221001/OperationListResult.json.cs | 118 +
.../OperationProperties.PowerShell.cs | 172 +
.../OperationProperties.TypeConverter.cs | 147 +
.../Models/Api20221001/OperationProperties.cs | 63 +
.../Api20221001/OperationProperties.json.cs | 111 +
.../Models/Api20221001/PeerAsn.PowerShell.cs | 228 +
.../Api20221001/PeerAsn.TypeConverter.cs | 146 +
.../api/Models/Api20221001/PeerAsn.cs | 176 +
.../api/Models/Api20221001/PeerAsn.json.cs | 110 +
.../PeerAsnListResult.PowerShell.cs | 172 +
.../PeerAsnListResult.TypeConverter.cs | 147 +
.../Models/Api20221001/PeerAsnListResult.cs | 68 +
.../Api20221001/PeerAsnListResult.json.cs | 118 +
.../PeerAsnProperties.PowerShell.cs | 196 +
.../PeerAsnProperties.TypeConverter.cs | 147 +
.../Models/Api20221001/PeerAsnProperties.cs | 125 +
.../Api20221001/PeerAsnProperties.json.cs | 130 +
.../Models/Api20221001/Peering.PowerShell.cs | 350 +
.../Api20221001/Peering.TypeConverter.cs | 146 +
.../api/Models/Api20221001/Peering.cs | 379 +
.../api/Models/Api20221001/Peering.json.cs | 120 +
.../PeeringBandwidthOffer.PowerShell.cs | 172 +
.../PeeringBandwidthOffer.TypeConverter.cs | 147 +
.../Api20221001/PeeringBandwidthOffer.cs | 68 +
.../Api20221001/PeeringBandwidthOffer.json.cs | 110 +
.../PeeringListResult.PowerShell.cs | 172 +
.../PeeringListResult.TypeConverter.cs | 147 +
.../Models/Api20221001/PeeringListResult.cs | 68 +
.../Api20221001/PeeringListResult.json.cs | 118 +
.../Api20221001/PeeringLocation.PowerShell.cs | 262 +
.../PeeringLocation.TypeConverter.cs | 147 +
.../api/Models/Api20221001/PeeringLocation.cs | 210 +
.../Api20221001/PeeringLocation.json.cs | 114 +
.../PeeringLocationListResult.PowerShell.cs | 172 +
...PeeringLocationListResult.TypeConverter.cs | 147 +
.../Api20221001/PeeringLocationListResult.cs | 68 +
.../PeeringLocationListResult.json.cs | 118 +
.../PeeringLocationProperties.PowerShell.cs | 220 +
...PeeringLocationProperties.TypeConverter.cs | 147 +
.../Api20221001/PeeringLocationProperties.cs | 151 +
.../PeeringLocationProperties.json.cs | 116 +
...ringLocationPropertiesDirect.PowerShell.cs | 174 +
...gLocationPropertiesDirect.TypeConverter.cs | 148 +
.../PeeringLocationPropertiesDirect.cs | 68 +
.../PeeringLocationPropertiesDirect.json.cs | 126 +
...ngLocationPropertiesExchange.PowerShell.cs | 168 +
...ocationPropertiesExchange.TypeConverter.cs | 148 +
.../PeeringLocationPropertiesExchange.cs | 51 +
.../PeeringLocationPropertiesExchange.json.cs | 116 +
.../PeeringProperties.PowerShell.cs | 252 +
.../PeeringProperties.TypeConverter.cs | 147 +
.../Models/Api20221001/PeeringProperties.cs | 192 +
.../Api20221001/PeeringProperties.json.cs | 117 +
.../PeeringPropertiesDirect.PowerShell.cs | 196 +
.../PeeringPropertiesDirect.TypeConverter.cs | 147 +
.../Api20221001/PeeringPropertiesDirect.cs | 114 +
.../PeeringPropertiesDirect.json.cs | 125 +
.../PeeringPropertiesExchange.PowerShell.cs | 180 +
...PeeringPropertiesExchange.TypeConverter.cs | 147 +
.../Api20221001/PeeringPropertiesExchange.cs | 77 +
.../PeeringPropertiesExchange.json.cs | 118 +
.../PeeringReceivedRoute.PowerShell.cs | 212 +
.../PeeringReceivedRoute.TypeConverter.cs | 147 +
.../Api20221001/PeeringReceivedRoute.cs | 186 +
.../Api20221001/PeeringReceivedRoute.json.cs | 141 +
...eringReceivedRouteListResult.PowerShell.cs | 174 +
...ngReceivedRouteListResult.TypeConverter.cs | 148 +
.../PeeringReceivedRouteListResult.cs | 68 +
.../PeeringReceivedRouteListResult.json.cs | 118 +
.../PeeringRegisteredAsn.PowerShell.cs | 212 +
.../PeeringRegisteredAsn.TypeConverter.cs | 147 +
.../Api20221001/PeeringRegisteredAsn.cs | 146 +
.../Api20221001/PeeringRegisteredAsn.json.cs | 110 +
...eringRegisteredAsnListResult.PowerShell.cs | 174 +
...ngRegisteredAsnListResult.TypeConverter.cs | 148 +
.../PeeringRegisteredAsnListResult.cs | 68 +
.../PeeringRegisteredAsnListResult.json.cs | 118 +
...eringRegisteredAsnProperties.PowerShell.cs | 182 +
...ngRegisteredAsnProperties.TypeConverter.cs | 148 +
.../PeeringRegisteredAsnProperties.cs | 91 +
.../PeeringRegisteredAsnProperties.json.cs | 118 +
.../PeeringRegisteredPrefix.PowerShell.cs | 228 +
.../PeeringRegisteredPrefix.TypeConverter.cs | 147 +
.../Api20221001/PeeringRegisteredPrefix.cs | 182 +
.../PeeringRegisteredPrefix.json.cs | 110 +
...ngRegisteredPrefixListResult.PowerShell.cs | 176 +
...egisteredPrefixListResult.TypeConverter.cs | 148 +
.../PeeringRegisteredPrefixListResult.cs | 68 +
.../PeeringRegisteredPrefixListResult.json.cs | 118 +
...ngRegisteredPrefixProperties.PowerShell.cs | 200 +
...egisteredPrefixProperties.TypeConverter.cs | 148 +
.../PeeringRegisteredPrefixProperties.cs | 131 +
.../PeeringRegisteredPrefixProperties.json.cs | 128 +
.../Api20221001/PeeringService.PowerShell.cs | 292 +
.../PeeringService.TypeConverter.cs | 147 +
.../api/Models/Api20221001/PeeringService.cs | 308 +
.../Models/Api20221001/PeeringService.json.cs | 116 +
.../PeeringServiceCountry.PowerShell.cs | 180 +
.../PeeringServiceCountry.TypeConverter.cs | 147 +
.../Api20221001/PeeringServiceCountry.cs | 74 +
.../Api20221001/PeeringServiceCountry.json.cs | 108 +
...ringServiceCountryListResult.PowerShell.cs | 174 +
...gServiceCountryListResult.TypeConverter.cs | 148 +
.../PeeringServiceCountryListResult.cs | 68 +
.../PeeringServiceCountryListResult.json.cs | 118 +
.../PeeringServiceListResult.PowerShell.cs | 172 +
.../PeeringServiceListResult.TypeConverter.cs | 147 +
.../Api20221001/PeeringServiceListResult.cs | 68 +
.../PeeringServiceListResult.json.cs | 118 +
.../PeeringServiceLocation.PowerShell.cs | 212 +
.../PeeringServiceLocation.TypeConverter.cs | 147 +
.../Api20221001/PeeringServiceLocation.cs | 135 +
.../PeeringServiceLocation.json.cs | 110 +
...ingServiceLocationListResult.PowerShell.cs | 174 +
...ServiceLocationListResult.TypeConverter.cs | 148 +
.../PeeringServiceLocationListResult.cs | 68 +
.../PeeringServiceLocationListResult.json.cs | 118 +
...ingServiceLocationProperties.PowerShell.cs | 182 +
...ServiceLocationProperties.TypeConverter.cs | 148 +
.../PeeringServiceLocationProperties.cs | 85 +
.../PeeringServiceLocationProperties.json.cs | 112 +
.../PeeringServicePrefix.PowerShell.cs | 244 +
.../PeeringServicePrefix.TypeConverter.cs | 147 +
.../Api20221001/PeeringServicePrefix.cs | 215 +
.../Api20221001/PeeringServicePrefix.json.cs | 110 +
.../PeeringServicePrefixEvent.PowerShell.cs | 196 +
...PeeringServicePrefixEvent.TypeConverter.cs | 147 +
.../Api20221001/PeeringServicePrefixEvent.cs | 134 +
.../PeeringServicePrefixEvent.json.cs | 131 +
...eringServicePrefixListResult.PowerShell.cs | 174 +
...ngServicePrefixListResult.TypeConverter.cs | 148 +
.../PeeringServicePrefixListResult.cs | 68 +
.../PeeringServicePrefixListResult.json.cs | 118 +
...eringServicePrefixProperties.PowerShell.cs | 214 +
...ngServicePrefixProperties.TypeConverter.cs | 148 +
.../PeeringServicePrefixProperties.cs | 168 +
.../PeeringServicePrefixProperties.json.cs | 143 +
.../PeeringServiceProperties.PowerShell.cs | 228 +
.../PeeringServiceProperties.TypeConverter.cs | 147 +
.../Api20221001/PeeringServiceProperties.cs | 197 +
.../PeeringServiceProperties.json.cs | 121 +
.../PeeringServiceProvider.PowerShell.cs | 204 +
.../PeeringServiceProvider.TypeConverter.cs | 147 +
.../Api20221001/PeeringServiceProvider.cs | 120 +
.../PeeringServiceProvider.json.cs | 110 +
...ingServiceProviderListResult.PowerShell.cs | 174 +
...ServiceProviderListResult.TypeConverter.cs | 148 +
.../PeeringServiceProviderListResult.cs | 68 +
.../PeeringServiceProviderListResult.json.cs | 118 +
...ingServiceProviderProperties.PowerShell.cs | 174 +
...ServiceProviderProperties.TypeConverter.cs | 148 +
.../PeeringServiceProviderProperties.cs | 68 +
.../PeeringServiceProviderProperties.json.cs | 118 +
.../PeeringServiceSku.PowerShell.cs | 164 +
.../PeeringServiceSku.TypeConverter.cs | 147 +
.../Models/Api20221001/PeeringServiceSku.cs | 51 +
.../Api20221001/PeeringServiceSku.json.cs | 108 +
.../PeeringServiceTags.PowerShell.cs | 160 +
.../PeeringServiceTags.TypeConverter.cs | 147 +
.../Models/Api20221001/PeeringServiceTags.cs | 35 +
.../PeeringServiceTags.dictionary.cs | 75 +
.../Api20221001/PeeringServiceTags.json.cs | 109 +
.../Api20221001/PeeringSku.PowerShell.cs | 188 +
.../Api20221001/PeeringSku.TypeConverter.cs | 146 +
.../api/Models/Api20221001/PeeringSku.cs | 111 +
.../api/Models/Api20221001/PeeringSku.json.cs | 123 +
.../Api20221001/PeeringTags.PowerShell.cs | 160 +
.../Api20221001/PeeringTags.TypeConverter.cs | 147 +
.../api/Models/Api20221001/PeeringTags.cs | 35 +
.../Api20221001/PeeringTags.dictionary.cs | 75 +
.../Models/Api20221001/PeeringTags.json.cs | 109 +
.../Models/Api20221001/Resource.PowerShell.cs | 180 +
.../Api20221001/Resource.TypeConverter.cs | 146 +
.../api/Models/Api20221001/Resource.cs | 94 +
.../api/Models/Api20221001/Resource.json.cs | 121 +
.../Api20221001/ResourceTags.PowerShell.cs | 160 +
.../Api20221001/ResourceTags.TypeConverter.cs | 147 +
.../api/Models/Api20221001/ResourceTags.cs | 35 +
.../Api20221001/ResourceTags.dictionary.cs | 75 +
.../Models/Api20221001/ResourceTags.json.cs | 109 +
.../Api20221001/ResourceTags1.PowerShell.cs | 164 +
.../ResourceTags1.TypeConverter.cs | 147 +
.../api/Models/Api20221001/ResourceTags1.cs | 51 +
.../Models/Api20221001/ResourceTags1.json.cs | 108 +
.../RpUnbilledPrefix.PowerShell.cs | 180 +
.../RpUnbilledPrefix.TypeConverter.cs | 147 +
.../Models/Api20221001/RpUnbilledPrefix.cs | 97 +
.../Api20221001/RpUnbilledPrefix.json.cs | 121 +
.../RpUnbilledPrefixListResult.PowerShell.cs | 172 +
...pUnbilledPrefixListResult.TypeConverter.cs | 147 +
.../Api20221001/RpUnbilledPrefixListResult.cs | 68 +
.../RpUnbilledPrefixListResult.json.cs | 118 +
.../ServiceSpecification.PowerShell.cs | 164 +
.../ServiceSpecification.TypeConverter.cs | 147 +
.../Api20221001/ServiceSpecification.cs | 54 +
.../Api20221001/ServiceSpecification.json.cs | 119 +
.../Api20221001/SubResource.PowerShell.cs | 164 +
.../Api20221001/SubResource.TypeConverter.cs | 147 +
.../api/Models/Api20221001/SubResource.cs | 51 +
.../Models/Api20221001/SubResource.json.cs | 108 +
.../api/Models/PeeringIdentity.PowerShell.cs | 234 +
.../Models/PeeringIdentity.TypeConverter.cs | 157 +
.../generated/api/Models/PeeringIdentity.cs | 201 +
.../api/Models/PeeringIdentity.json.cs | 125 +
src/Peering/generated/api/Peering.cs | 7944 +++++++++++++++++
.../api/Support/Command.Completer.cs | 43 +
.../api/Support/Command.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Command.cs | 100 +
.../api/Support/ConnectionState.Completer.cs | 71 +
.../Support/ConnectionState.TypeConverter.cs | 59 +
.../generated/api/Support/ConnectionState.cs | 114 +
.../Support/DirectPeeringType.Completer.cs | 63 +
.../DirectPeeringType.TypeConverter.cs | 59 +
.../api/Support/DirectPeeringType.cs | 110 +
.../generated/api/Support/Family.Completer.cs | 39 +
.../api/Support/Family.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Family.cs | 98 +
.../generated/api/Support/Kind.Completer.cs | 39 +
.../api/Support/Kind.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Kind.cs | 98 +
.../api/Support/LearnedType.Completer.cs | 43 +
.../api/Support/LearnedType.TypeConverter.cs | 59 +
.../generated/api/Support/LearnedType.cs | 100 +
.../Support/LegacyPeeringsKind.Completer.cs | 39 +
.../LegacyPeeringsKind.TypeConverter.cs | 59 +
.../api/Support/LegacyPeeringsKind.cs | 97 +
.../Support/LookingGlassCommand.Completer.cs | 43 +
.../LookingGlassCommand.TypeConverter.cs | 59 +
.../api/Support/LookingGlassCommand.cs | 99 +
.../LookingGlassSourceType.Completer.cs | 39 +
.../LookingGlassSourceType.TypeConverter.cs | 59 +
.../api/Support/LookingGlassSourceType.cs | 97 +
...ingLocationsDirectPeeringType.Completer.cs | 63 +
...ocationsDirectPeeringType.TypeConverter.cs | 59 +
.../PeeringLocationsDirectPeeringType.cs | 115 +
.../Support/PeeringLocationsKind.Completer.cs | 39 +
.../PeeringLocationsKind.TypeConverter.cs | 59 +
.../api/Support/PeeringLocationsKind.cs | 97 +
.../PrefixValidationState.Completer.cs | 59 +
.../PrefixValidationState.TypeConverter.cs | 59 +
.../api/Support/PrefixValidationState.cs | 108 +
.../Support/ProvisioningState.Completer.cs | 47 +
.../ProvisioningState.TypeConverter.cs | 59 +
.../api/Support/ProvisioningState.cs | 102 +
.../generated/api/Support/Role.Completer.cs | 55 +
.../api/Support/Role.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Role.cs | 106 +
.../SessionAddressProvider.Completer.cs | 39 +
.../SessionAddressProvider.TypeConverter.cs | 59 +
.../api/Support/SessionAddressProvider.cs | 98 +
.../api/Support/SessionStateV4.Completer.cs | 75 +
.../Support/SessionStateV4.TypeConverter.cs | 59 +
.../generated/api/Support/SessionStateV4.cs | 116 +
.../api/Support/SessionStateV6.Completer.cs | 75 +
.../Support/SessionStateV6.TypeConverter.cs | 59 +
.../generated/api/Support/SessionStateV6.cs | 116 +
.../generated/api/Support/Size.Completer.cs | 43 +
.../api/Support/Size.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Size.cs | 100 +
.../generated/api/Support/Tier.Completer.cs | 39 +
.../api/Support/Tier.TypeConverter.cs | 59 +
src/Peering/generated/api/Support/Tier.cs | 98 +
.../api/Support/ValidationState.Completer.cs | 47 +
.../Support/ValidationState.TypeConverter.cs | 59 +
.../generated/api/Support/ValidationState.cs | 102 +
.../generated/cmdlets/GetAzPeeringAsn_Get.cs | 390 +
.../cmdlets/GetAzPeeringAsn_GetViaIdentity.cs | 378 +
.../generated/cmdlets/GetAzPeeringAsn_List.cs | 397 +
.../cmdlets/GetAzPeeringCdnPrefix_List.cs | 411 +
.../GetAzPeeringConnectionMonitorTest_Get.cs | 421 +
...ingConnectionMonitorTest_GetViaIdentity.cs | 389 +
.../GetAzPeeringConnectionMonitorTest_List.cs | 427 +
.../cmdlets/GetAzPeeringLegacy_List.cs | 457 +
.../cmdlets/GetAzPeeringLocation_List.cs | 427 +
.../cmdlets/GetAzPeeringOperation_List.cs | 377 +
.../cmdlets/GetAzPeeringReceivedRoute_List.cs | 499 ++
.../cmdlets/GetAzPeeringRegisteredAsn_Get.cs | 420 +
...etAzPeeringRegisteredAsn_GetViaIdentity.cs | 388 +
.../cmdlets/GetAzPeeringRegisteredAsn_List.cs | 427 +
.../GetAzPeeringRegisteredPrefix_Get.cs | 420 +
...zPeeringRegisteredPrefix_GetViaIdentity.cs | 388 +
.../GetAzPeeringRegisteredPrefix_List.cs | 427 +
.../GetAzPeeringRpUnbilledPrefix_List.cs | 439 +
.../GetAzPeeringServiceCountry_List.cs | 397 +
.../GetAzPeeringServiceLocation_List.cs | 411 +
.../cmdlets/GetAzPeeringServicePrefix_Get.cs | 434 +
...etAzPeeringServicePrefix_GetViaIdentity.cs | 402 +
.../cmdlets/GetAzPeeringServicePrefix_List.cs | 441 +
.../GetAzPeeringServiceProvider_List.cs | 399 +
.../cmdlets/GetAzPeeringService_Get.cs | 406 +
.../GetAzPeeringService_GetViaIdentity.cs | 384 +
.../cmdlets/GetAzPeeringService_List.cs | 413 +
.../cmdlets/GetAzPeeringService_List1.cs | 397 +
.../generated/cmdlets/GetAzPeering_Get.cs | 404 +
.../cmdlets/GetAzPeering_GetViaIdentity.cs | 384 +
.../generated/cmdlets/GetAzPeering_List.cs | 409 +
.../generated/cmdlets/GetAzPeering_List1.cs | 397 +
...ringServiceConnectionMonitor_Initialize.cs | 380 +
...ConnectionMonitor_InitializeViaIdentity.cs | 383 +
.../cmdlets/NewAzPeeringAsn_CreateExpanded.cs | 465 +
...ingConnectionMonitorTest_CreateExpanded.cs | 504 ++
...ewAzPeeringRegisteredAsn_CreateExpanded.cs | 470 +
...zPeeringRegisteredPrefix_CreateExpanded.cs | 470 +
...ewAzPeeringServicePrefix_CreateExpanded.cs | 481 +
.../NewAzPeeringService_CreateExpanded.cs | 529 ++
.../cmdlets/NewAzPeering_CreateExpanded.cs | 564 ++
.../cmdlets/RemoveAzPeeringAsn_Delete.cs | 431 +
.../RemoveAzPeeringAsn_DeleteViaIdentity.cs | 422 +
...veAzPeeringConnectionMonitorTest_Delete.cs | 460 +
...ConnectionMonitorTest_DeleteViaIdentity.cs | 431 +
.../RemoveAzPeeringRegisteredAsn_Delete.cs | 459 +
...zPeeringRegisteredAsn_DeleteViaIdentity.cs | 430 +
.../RemoveAzPeeringRegisteredPrefix_Delete.cs | 459 +
...eringRegisteredPrefix_DeleteViaIdentity.cs | 430 +
.../RemoveAzPeeringServicePrefix_Delete.cs | 459 +
...zPeeringServicePrefix_DeleteViaIdentity.cs | 430 +
.../cmdlets/RemoveAzPeeringService_Delete.cs | 445 +
...emoveAzPeeringService_DeleteViaIdentity.cs | 426 +
.../cmdlets/RemoveAzPeering_Delete.cs | 445 +
.../RemoveAzPeering_DeleteViaIdentity.cs | 426 +
...StartAzPeeringInvokeLookingGlass_Invoke.cs | 433 +
...ingInvokeLookingGlass_InvokeViaIdentity.cs | 435 +
.../TestAzPeeringRegisteredPrefix_Validate.cs | 420 +
...ingRegisteredPrefix_ValidateViaIdentity.cs | 391 +
...eeringServiceProviderAvailability_Check.cs | 390 +
...rviceProviderAvailability_CheckExpanded.cs | 400 +
...ceProviderAvailability_CheckViaIdentity.cs | 392 +
...erAvailability_CheckViaIdentityExpanded.cs | 403 +
.../UpdateAzPeeringService_UpdateExpanded.cs | 421 +
...eeringService_UpdateViaIdentityExpanded.cs | 402 +
.../cmdlets/UpdateAzPeering_UpdateExpanded.cs | 421 +
...dateAzPeering_UpdateViaIdentityExpanded.cs | 402 +
.../generated/runtime/AsyncCommandRuntime.cs | 832 ++
src/Peering/generated/runtime/AsyncJob.cs | 270 +
.../runtime/AsyncOperationResponse.cs | 176 +
.../BuildTime/Cmdlets/ExportCmdletSurface.cs | 113 +
.../BuildTime/Cmdlets/ExportExampleStub.cs | 74 +
.../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 101 +
.../BuildTime/Cmdlets/ExportHelpMarkdown.cs | 53 +
.../BuildTime/Cmdlets/ExportModelSurface.cs | 117 +
.../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 177 +
.../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 191 +
.../BuildTime/Cmdlets/ExportTestStub.cs | 148 +
.../BuildTime/Cmdlets/GetCommonParameter.cs | 52 +
.../BuildTime/Cmdlets/GetModuleGuid.cs | 31 +
.../BuildTime/Cmdlets/GetScriptCmdlet.cs | 54 +
.../runtime/BuildTime/CollectionExtensions.cs | 20 +
.../runtime/BuildTime/MarkdownRenderer.cs | 114 +
.../runtime/BuildTime/Models/PsFormatTypes.cs | 138 +
.../BuildTime/Models/PsHelpMarkdownOutputs.cs | 199 +
.../runtime/BuildTime/Models/PsHelpTypes.cs | 202 +
.../BuildTime/Models/PsMarkdownTypes.cs | 294 +
.../BuildTime/Models/PsProxyOutputs.cs | 611 ++
.../runtime/BuildTime/Models/PsProxyTypes.cs | 514 ++
.../runtime/BuildTime/PsAttributes.cs | 114 +
.../runtime/BuildTime/PsExtensions.cs | 169 +
.../generated/runtime/BuildTime/PsHelpers.cs | 105 +
.../runtime/BuildTime/StringExtensions.cs | 24 +
.../runtime/BuildTime/XmlExtensions.cs | 28 +
.../generated/runtime/CmdInfoHandler.cs | 40 +
.../Conversions/ConversionException.cs | 17 +
.../runtime/Conversions/IJsonConverter.cs | 13 +
.../Conversions/Instances/BinaryConverter.cs | 24 +
.../Conversions/Instances/BooleanConverter.cs | 13 +
.../Instances/DateTimeConverter.cs | 18 +
.../Instances/DateTimeOffsetConverter.cs | 15 +
.../Conversions/Instances/DecimalConverter.cs | 16 +
.../Conversions/Instances/DoubleConverter.cs | 13 +
.../Conversions/Instances/EnumConverter.cs | 30 +
.../Conversions/Instances/GuidConverter.cs | 15 +
.../Instances/HashSet'1Converter.cs | 27 +
.../Conversions/Instances/Int16Converter.cs | 13 +
.../Conversions/Instances/Int32Converter.cs | 13 +
.../Conversions/Instances/Int64Converter.cs | 13 +
.../Instances/JsonArrayConverter.cs | 13 +
.../Instances/JsonObjectConverter.cs | 13 +
.../Conversions/Instances/SingleConverter.cs | 13 +
.../Conversions/Instances/StringConverter.cs | 13 +
.../Instances/TimeSpanConverter.cs | 15 +
.../Conversions/Instances/UInt16Converter.cs | 13 +
.../Conversions/Instances/UInt32Converter.cs | 13 +
.../Conversions/Instances/UInt64Converter.cs | 13 +
.../Conversions/Instances/UriConverter.cs | 15 +
.../runtime/Conversions/JsonConverter.cs | 21 +
.../Conversions/JsonConverterAttribute.cs | 18 +
.../Conversions/JsonConverterFactory.cs | 91 +
.../Conversions/StringLikeConverter.cs | 45 +
.../Customizations/IJsonSerializable.cs | 263 +
.../runtime/Customizations/JsonArray.cs | 13 +
.../runtime/Customizations/JsonBoolean.cs | 16 +
.../runtime/Customizations/JsonNode.cs | 21 +
.../runtime/Customizations/JsonNumber.cs | 78 +
.../runtime/Customizations/JsonObject.cs | 183 +
.../runtime/Customizations/JsonString.cs | 34 +
.../runtime/Customizations/XNodeArray.cs | 44 +
src/Peering/generated/runtime/Debugging.cs | 28 +
.../generated/runtime/DictionaryExtensions.cs | 33 +
src/Peering/generated/runtime/EventData.cs | 78 +
.../generated/runtime/EventDataExtensions.cs | 94 +
.../generated/runtime/EventListener.cs | 247 +
src/Peering/generated/runtime/Events.cs | 27 +
.../generated/runtime/EventsExtensions.cs | 27 +
src/Peering/generated/runtime/Extensions.cs | 117 +
.../Extensions/StringBuilderExtensions.cs | 23 +
.../Helpers/Extensions/TypeExtensions.cs | 61 +
.../generated/runtime/Helpers/Seperator.cs | 11 +
.../generated/runtime/Helpers/TypeDetails.cs | 116 +
.../generated/runtime/Helpers/XHelper.cs | 75 +
src/Peering/generated/runtime/HttpPipeline.cs | 88 +
.../generated/runtime/HttpPipelineMocking.ps1 | 110 +
.../generated/runtime/IAssociativeArray.cs | 24 +
.../generated/runtime/IHeaderSerializable.cs | 14 +
src/Peering/generated/runtime/ISendAsync.cs | 300 +
.../generated/runtime/InfoAttribute.cs | 34 +
src/Peering/generated/runtime/Iso/IsoDate.cs | 214 +
src/Peering/generated/runtime/JsonType.cs | 18 +
.../generated/runtime/MessageAttribute.cs | 360 +
.../runtime/MessageAttributeHelper.cs | 161 +
src/Peering/generated/runtime/Method.cs | 19 +
.../generated/runtime/Models/JsonMember.cs | 83 +
.../generated/runtime/Models/JsonModel.cs | 89 +
.../runtime/Models/JsonModelCache.cs | 19 +
.../runtime/Nodes/Collections/JsonArray.cs | 65 +
.../Nodes/Collections/XImmutableArray.cs | 62 +
.../runtime/Nodes/Collections/XList.cs | 64 +
.../runtime/Nodes/Collections/XNodeArray.cs | 68 +
.../runtime/Nodes/Collections/XSet.cs | 60 +
.../generated/runtime/Nodes/JsonBoolean.cs | 42 +
.../generated/runtime/Nodes/JsonDate.cs | 173 +
.../generated/runtime/Nodes/JsonNode.cs | 250 +
.../generated/runtime/Nodes/JsonNumber.cs | 109 +
.../generated/runtime/Nodes/JsonObject.cs | 172 +
.../generated/runtime/Nodes/JsonString.cs | 42 +
.../generated/runtime/Nodes/XBinary.cs | 40 +
src/Peering/generated/runtime/Nodes/XNull.cs | 15 +
.../Parser/Exceptions/ParseException.cs | 24 +
.../generated/runtime/Parser/JsonParser.cs | 180 +
.../generated/runtime/Parser/JsonToken.cs | 66 +
.../generated/runtime/Parser/JsonTokenizer.cs | 177 +
.../generated/runtime/Parser/Location.cs | 43 +
.../runtime/Parser/Readers/SourceReader.cs | 130 +
.../generated/runtime/Parser/TokenReader.cs | 39 +
.../generated/runtime/PipelineMocking.cs | 262 +
.../runtime/Properties/Resources.Designer.cs | 5633 ++++++++++++
.../runtime/Properties/Resources.resx | 1741 ++++
src/Peering/generated/runtime/Response.cs | 27 +
.../runtime/Serialization/JsonSerializer.cs | 350 +
.../Serialization/PropertyTransformation.cs | 21 +
.../Serialization/SerializationOptions.cs | 65 +
.../generated/runtime/SerializationMode.cs | 16 +
.../runtime/TypeConverterExtensions.cs | 211 +
.../runtime/UndeclaredResponseException.cs | 112 +
.../generated/runtime/Writers/JsonWriter.cs | 223 +
src/Peering/generated/runtime/delegates.cs | 23 +
src/Peering/help/Az.Peering.md | 130 +
src/Peering/help/Get-AzPeering.md | 186 +
src/Peering/help/Get-AzPeeringAsn.md | 158 +
src/Peering/help/Get-AzPeeringCdnPrefix.md | 106 +
.../Get-AzPeeringConnectionMonitorTest.md | 191 +
src/Peering/help/Get-AzPeeringLegacy.md | 146 +
src/Peering/help/Get-AzPeeringLocation.md | 123 +
.../help/Get-AzPeeringReceivedRoute.md | 224 +
.../help/Get-AzPeeringRegisteredAsn.md | 191 +
.../help/Get-AzPeeringRegisteredPrefix.md | 194 +
.../help/Get-AzPeeringRpUnbilledPrefix.md | 131 +
src/Peering/help/Get-AzPeeringService.md | 206 +
.../help/Get-AzPeeringServiceCountry.md | 98 +
.../help/Get-AzPeeringServiceLocation.md | 145 +
.../help/Get-AzPeeringServicePrefix.md | 206 +
.../help/Get-AzPeeringServiceProvider.md | 98 +
...alize-AzPeeringServiceConnectionMonitor.md | 166 +
src/Peering/help/New-AzPeering.md | 336 +
src/Peering/help/New-AzPeeringAsn.md | 189 +
...kServiceProviderAvailabilityInputObject.md | 84 +
.../New-AzPeeringConnectionMonitorTest.md | 221 +
.../help/New-AzPeeringContactDetailObject.md | 98 +
.../New-AzPeeringDirectConnectionObject.md | 270 +
.../New-AzPeeringExchangeConnectionObject.md | 223 +
.../help/New-AzPeeringRegisteredAsn.md | 176 +
.../help/New-AzPeeringRegisteredPrefix.md | 176 +
src/Peering/help/New-AzPeeringService.md | 252 +
.../help/New-AzPeeringServicePrefix.md | 191 +
src/Peering/help/Remove-AzPeering.md | 196 +
src/Peering/help/Remove-AzPeeringAsn.md | 181 +
.../Remove-AzPeeringConnectionMonitorTest.md | 211 +
.../help/Remove-AzPeeringRegisteredAsn.md | 211 +
.../help/Remove-AzPeeringRegisteredPrefix.md | 211 +
src/Peering/help/Remove-AzPeeringService.md | 196 +
.../help/Remove-AzPeeringServicePrefix.md | 211 +
.../help/Start-AzPeeringInvokeLookingGlass.md | 219 +
.../help/Test-AzPeeringRegisteredPrefix.md | 202 +
...st-AzPeeringServiceProviderAvailability.md | 222 +
src/Peering/help/Update-AzPeering.md | 203 +
src/Peering/help/Update-AzPeeringService.md | 203 +
src/Peering/how-to.md | 58 +
src/Peering/internal/Az.Peering.internal.psm1 | 38 +
.../internal/Get-AzPeeringOperation.ps1 | 124 +
.../internal/ProxyCmdletDefinitions.ps1 | 124 +
src/Peering/internal/README.md | 14 +
src/Peering/pack-module.ps1 | 17 +
src/Peering/run-module.ps1 | 62 +
src/Peering/test-module.ps1 | 94 +
src/Peering/test/Get-AzPeering.Recording.json | 124 +
src/Peering/test/Get-AzPeering.Tests.ps1 | 38 +
.../test/Get-AzPeeringAsn.Recording.json | 162 +
src/Peering/test/Get-AzPeeringAsn.Tests.ps1 | 39 +
.../Get-AzPeeringCdnPrefix.Recording.json | 42 +
.../test/Get-AzPeeringCdnPrefix.Tests.ps1 | 24 +
...t-AzPeeringConnectionMonitorTest.Tests.ps1 | 29 +
.../test/Get-AzPeeringLegacy.Tests.ps1 | 21 +
.../test/Get-AzPeeringLocation.Recording.json | 42 +
.../test/Get-AzPeeringLocation.Tests.ps1 | 24 +
.../Get-AzPeeringReceivedRoute.Recording.json | 42 +
.../test/Get-AzPeeringReceivedRoute.Tests.ps1 | 24 +
.../Get-AzPeeringRegisteredAsn.Recording.json | 82 +
.../test/Get-AzPeeringRegisteredAsn.Tests.ps1 | 31 +
...t-AzPeeringRegisteredPrefix.Recording.json | 82 +
.../Get-AzPeeringRegisteredPrefix.Tests.ps1 | 32 +
...t-AzPeeringRpUnbilledPrefix.Recording.json | 44 +
.../Get-AzPeeringRpUnbilledPrefix.Tests.ps1 | 26 +
.../test/Get-AzPeeringService.Recording.json | 124 +
.../test/Get-AzPeeringService.Tests.ps1 | 39 +
...Get-AzPeeringServiceCountry.Recording.json | 42 +
.../Get-AzPeeringServiceCountry.Tests.ps1 | 24 +
...et-AzPeeringServiceLocation.Recording.json | 82 +
.../Get-AzPeeringServiceLocation.Tests.ps1 | 27 +
.../Get-AzPeeringServicePrefix.Recording.json | 82 +
.../test/Get-AzPeeringServicePrefix.Tests.ps1 | 31 +
...et-AzPeeringServiceProvider.Recording.json | 42 +
.../Get-AzPeeringServiceProvider.Tests.ps1 | 24 +
...zPeeringServiceConnectionMonitor.Tests.ps1 | 25 +
src/Peering/test/New-AzPeering.Recording.json | 37 +
src/Peering/test/New-AzPeering.Tests.ps1 | 27 +
.../test/New-AzPeeringAsn.Recording.json | 37 +
src/Peering/test/New-AzPeeringAsn.Tests.ps1 | 26 +
...eProviderAvailabilityInputObject.Tests.ps1 | 24 +
...w-AzPeeringConnectionMonitorTest.Tests.ps1 | 21 +
...New-AzPeeringContactDetailObject.Tests.ps1 | 24 +
...-AzPeeringDirectConnectionObject.Tests.ps1 | 24 +
...zPeeringExchangeConnectionObject.Tests.ps1 | 24 +
.../New-AzPeeringRegisteredAsn.Recording.json | 37 +
.../test/New-AzPeeringRegisteredAsn.Tests.ps1 | 24 +
.../New-AzPeeringRegisteredPrefix.Tests.ps1 | 21 +
.../test/New-AzPeeringService.Recording.json | 37 +
.../test/New-AzPeeringService.Tests.ps1 | 24 +
.../test/New-AzPeeringServicePrefix.Tests.ps1 | 21 +
src/Peering/test/README.md | 17 +
.../test/Remove-AzPeering.Recording.json | 41 +
src/Peering/test/Remove-AzPeering.Tests.ps1 | 23 +
.../test/Remove-AzPeeringAsn.Recording.json | 41 +
.../test/Remove-AzPeeringAsn.Tests.ps1 | 23 +
...e-AzPeeringConnectionMonitorTest.Tests.ps1 | 25 +
...move-AzPeeringRegisteredAsn.Recording.json | 41 +
.../Remove-AzPeeringRegisteredAsn.Tests.ps1 | 23 +
...e-AzPeeringRegisteredPrefix.Recording.json | 40 +
...Remove-AzPeeringRegisteredPrefix.Tests.ps1 | 23 +
.../Remove-AzPeeringService.Recording.json | 41 +
.../test/Remove-AzPeeringService.Tests.ps1 | 23 +
...move-AzPeeringServicePrefix.Recording.json | 40 +
.../Remove-AzPeeringServicePrefix.Tests.ps1 | 23 +
...AzPeeringInvokeLookingGlass.Recording.json | 42 +
...tart-AzPeeringInvokeLookingGlass.Tests.ps1 | 24 +
...t-AzPeeringRegisteredPrefix.Recording.json | 42 +
.../Test-AzPeeringRegisteredPrefix.Tests.ps1 | 24 +
...ServiceProviderAvailability.Recording.json | 37 +
...eringServiceProviderAvailability.Tests.ps1 | 26 +
.../test/Update-AzPeering.Recording.json | 37 +
src/Peering/test/Update-AzPeering.Tests.ps1 | 25 +
.../Update-AzPeeringService.Recording.json | 37 +
.../test/Update-AzPeeringService.Tests.ps1 | 25 +
src/Peering/test/env.json | 4 +
src/Peering/test/envDogfood.json | 4 +
src/Peering/test/loadEnv.ps1 | 29 +
src/Peering/test/loadEnvDogfood.ps1 | 29 +
src/Peering/test/utils.ps1 | 31 +
src/Peering/utils/Unprotect-SecureString.ps1 | 16 +
764 files changed, 132388 insertions(+)
create mode 100644 src/Peering/Az.Peering.csproj
create mode 100644 src/Peering/Az.Peering.format.ps1xml
create mode 100644 src/Peering/Az.Peering.psd1
create mode 100644 src/Peering/Az.Peering.psm1
create mode 100644 src/Peering/Changelog.md
create mode 100644 src/Peering/Peering.sln
create mode 100644 src/Peering/Properties/AssemblyInfo.cs
create mode 100644 src/Peering/README.md
create mode 100644 src/Peering/build-module.ps1
create mode 100644 src/Peering/check-dependencies.ps1
create mode 100644 src/Peering/create-model-cmdlets.ps1
create mode 100644 src/Peering/custom/Az.Peering.custom.psm1
create mode 100644 src/Peering/custom/README.md
create mode 100644 src/Peering/custom/autogen-model-cmdlets/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
create mode 100644 src/Peering/custom/autogen-model-cmdlets/New-AzPeeringContactDetailObject.ps1
create mode 100644 src/Peering/custom/autogen-model-cmdlets/New-AzPeeringDirectConnectionObject.ps1
create mode 100644 src/Peering/custom/autogen-model-cmdlets/New-AzPeeringExchangeConnectionObject.ps1
create mode 100644 src/Peering/examples/Get-AzPeering.md
create mode 100644 src/Peering/examples/Get-AzPeeringAsn.md
create mode 100644 src/Peering/examples/Get-AzPeeringCdnPrefix.md
create mode 100644 src/Peering/examples/Get-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/examples/Get-AzPeeringLegacy.md
create mode 100644 src/Peering/examples/Get-AzPeeringLocation.md
create mode 100644 src/Peering/examples/Get-AzPeeringReceivedRoute.md
create mode 100644 src/Peering/examples/Get-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/examples/Get-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/examples/Get-AzPeeringRpUnbilledPrefix.md
create mode 100644 src/Peering/examples/Get-AzPeeringService.md
create mode 100644 src/Peering/examples/Get-AzPeeringServiceCountry.md
create mode 100644 src/Peering/examples/Get-AzPeeringServiceLocation.md
create mode 100644 src/Peering/examples/Get-AzPeeringServicePrefix.md
create mode 100644 src/Peering/examples/Get-AzPeeringServiceProvider.md
create mode 100644 src/Peering/examples/Initialize-AzPeeringServiceConnectionMonitor.md
create mode 100644 src/Peering/examples/New-AzPeering.md
create mode 100644 src/Peering/examples/New-AzPeeringAsn.md
create mode 100644 src/Peering/examples/New-AzPeeringCheckServiceProviderAvailabilityInputObject.md
create mode 100644 src/Peering/examples/New-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/examples/New-AzPeeringContactDetailObject.md
create mode 100644 src/Peering/examples/New-AzPeeringDirectConnectionObject.md
create mode 100644 src/Peering/examples/New-AzPeeringExchangeConnectionObject.md
create mode 100644 src/Peering/examples/New-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/examples/New-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/examples/New-AzPeeringService.md
create mode 100644 src/Peering/examples/New-AzPeeringServicePrefix.md
create mode 100644 src/Peering/examples/Remove-AzPeering.md
create mode 100644 src/Peering/examples/Remove-AzPeeringAsn.md
create mode 100644 src/Peering/examples/Remove-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/examples/Remove-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/examples/Remove-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/examples/Remove-AzPeeringService.md
create mode 100644 src/Peering/examples/Remove-AzPeeringServicePrefix.md
create mode 100644 src/Peering/examples/Start-AzPeeringInvokeLookingGlass.md
create mode 100644 src/Peering/examples/Test-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/examples/Test-AzPeeringServiceProviderAvailability.md
create mode 100644 src/Peering/examples/Update-AzPeering.md
create mode 100644 src/Peering/examples/Update-AzPeeringService.md
create mode 100644 src/Peering/export-surface.ps1
create mode 100644 src/Peering/exports/Get-AzPeering.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringAsn.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringCdnPrefix.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringConnectionMonitorTest.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringLegacy.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringLocation.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringReceivedRoute.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringRegisteredAsn.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringRegisteredPrefix.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringRpUnbilledPrefix.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringService.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringServiceCountry.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringServiceLocation.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringServicePrefix.ps1
create mode 100644 src/Peering/exports/Get-AzPeeringServiceProvider.ps1
create mode 100644 src/Peering/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1
create mode 100644 src/Peering/exports/New-AzPeering.ps1
create mode 100644 src/Peering/exports/New-AzPeeringAsn.ps1
create mode 100644 src/Peering/exports/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
create mode 100644 src/Peering/exports/New-AzPeeringConnectionMonitorTest.ps1
create mode 100644 src/Peering/exports/New-AzPeeringContactDetailObject.ps1
create mode 100644 src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1
create mode 100644 src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1
create mode 100644 src/Peering/exports/New-AzPeeringRegisteredAsn.ps1
create mode 100644 src/Peering/exports/New-AzPeeringRegisteredPrefix.ps1
create mode 100644 src/Peering/exports/New-AzPeeringService.ps1
create mode 100644 src/Peering/exports/New-AzPeeringServicePrefix.ps1
create mode 100644 src/Peering/exports/ProxyCmdletDefinitions.ps1
create mode 100644 src/Peering/exports/README.md
create mode 100644 src/Peering/exports/Remove-AzPeering.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringAsn.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringConnectionMonitorTest.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringRegisteredAsn.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringRegisteredPrefix.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringService.ps1
create mode 100644 src/Peering/exports/Remove-AzPeeringServicePrefix.ps1
create mode 100644 src/Peering/exports/Start-AzPeeringInvokeLookingGlass.ps1
create mode 100644 src/Peering/exports/Test-AzPeeringRegisteredPrefix.ps1
create mode 100644 src/Peering/exports/Test-AzPeeringServiceProviderAvailability.ps1
create mode 100644 src/Peering/exports/Update-AzPeering.ps1
create mode 100644 src/Peering/exports/Update-AzPeeringService.ps1
create mode 100644 src/Peering/generate-help.ps1
create mode 100644 src/Peering/generate-info.json
create mode 100644 src/Peering/generated/Module.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/BgpSession.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/BgpSession.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/BgpSession.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/BgpSession.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefix.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefix.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefix.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefix.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CdnPeeringPrefixProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CheckServiceProviderAvailabilityInput.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CheckServiceProviderAvailabilityInput.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CheckServiceProviderAvailabilityInput.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/CheckServiceProviderAvailabilityInput.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTest.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTest.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTest.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTest.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ConnectionMonitorTestProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ContactDetail.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ContactDetail.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ContactDetail.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ContactDetail.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectConnection.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectConnection.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectConnection.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectConnection.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectPeeringFacility.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectPeeringFacility.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectPeeringFacility.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/DirectPeeringFacility.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorDetail.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorDetail.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorDetail.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorDetail.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorResponse.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorResponse.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorResponse.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ErrorResponse.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangeConnection.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangeConnection.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangeConnection.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangeConnection.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangePeeringFacility.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangePeeringFacility.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangePeeringFacility.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ExchangePeeringFacility.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LogAnalyticsWorkspaceProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LogAnalyticsWorkspaceProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LogAnalyticsWorkspaceProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LogAnalyticsWorkspaceProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LookingGlassOutput.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LookingGlassOutput.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LookingGlassOutput.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/LookingGlassOutput.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricDimension.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricDimension.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricDimension.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricDimension.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricSpecification.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricSpecification.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricSpecification.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/MetricSpecification.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Operation.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Operation.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Operation.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Operation.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationDisplayInfo.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationDisplayInfo.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationDisplayInfo.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationDisplayInfo.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/OperationProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsn.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsn.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsn.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsn.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeerAsnProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Peering.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Peering.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Peering.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Peering.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringBandwidthOffer.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringBandwidthOffer.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringBandwidthOffer.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringBandwidthOffer.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocation.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocation.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocation.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocation.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesDirect.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesDirect.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesDirect.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesDirect.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesExchange.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesExchange.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesExchange.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringLocationPropertiesExchange.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesDirect.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesDirect.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesDirect.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesDirect.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesExchange.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesExchange.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesExchange.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringPropertiesExchange.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRoute.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRoute.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRoute.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRoute.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRouteListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRouteListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRouteListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringReceivedRouteListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsn.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsn.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsn.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsn.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredAsnProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefix.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefix.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefix.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefix.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringRegisteredPrefixProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringService.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringService.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringService.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringService.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountry.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountry.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountry.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountry.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountryListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountryListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountryListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceCountryListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocation.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocation.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocation.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocation.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceLocationProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefix.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefix.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefix.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefix.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixEvent.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixEvent.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixEvent.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixEvent.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServicePrefixProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProvider.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProvider.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProvider.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProvider.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderProperties.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderProperties.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderProperties.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceProviderProperties.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceSku.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceSku.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceSku.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceSku.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceTags.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceTags.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceTags.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceTags.dictionary.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringServiceTags.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringSku.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringSku.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringSku.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringSku.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringTags.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringTags.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringTags.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringTags.dictionary.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/PeeringTags.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Resource.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Resource.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Resource.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/Resource.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags.dictionary.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags1.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags1.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags1.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ResourceTags1.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefix.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefix.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefix.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefix.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefixListResult.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefixListResult.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefixListResult.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/RpUnbilledPrefixListResult.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ServiceSpecification.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ServiceSpecification.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ServiceSpecification.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/ServiceSpecification.json.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/SubResource.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/SubResource.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/SubResource.cs
create mode 100644 src/Peering/generated/api/Models/Api20221001/SubResource.json.cs
create mode 100644 src/Peering/generated/api/Models/PeeringIdentity.PowerShell.cs
create mode 100644 src/Peering/generated/api/Models/PeeringIdentity.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Models/PeeringIdentity.cs
create mode 100644 src/Peering/generated/api/Models/PeeringIdentity.json.cs
create mode 100644 src/Peering/generated/api/Peering.cs
create mode 100644 src/Peering/generated/api/Support/Command.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Command.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Command.cs
create mode 100644 src/Peering/generated/api/Support/ConnectionState.Completer.cs
create mode 100644 src/Peering/generated/api/Support/ConnectionState.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/ConnectionState.cs
create mode 100644 src/Peering/generated/api/Support/DirectPeeringType.Completer.cs
create mode 100644 src/Peering/generated/api/Support/DirectPeeringType.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/DirectPeeringType.cs
create mode 100644 src/Peering/generated/api/Support/Family.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Family.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Family.cs
create mode 100644 src/Peering/generated/api/Support/Kind.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Kind.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Kind.cs
create mode 100644 src/Peering/generated/api/Support/LearnedType.Completer.cs
create mode 100644 src/Peering/generated/api/Support/LearnedType.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/LearnedType.cs
create mode 100644 src/Peering/generated/api/Support/LegacyPeeringsKind.Completer.cs
create mode 100644 src/Peering/generated/api/Support/LegacyPeeringsKind.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/LegacyPeeringsKind.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassCommand.Completer.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassCommand.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassCommand.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassSourceType.Completer.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassSourceType.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/LookingGlassSourceType.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsDirectPeeringType.Completer.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsDirectPeeringType.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsDirectPeeringType.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsKind.Completer.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsKind.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/PeeringLocationsKind.cs
create mode 100644 src/Peering/generated/api/Support/PrefixValidationState.Completer.cs
create mode 100644 src/Peering/generated/api/Support/PrefixValidationState.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/PrefixValidationState.cs
create mode 100644 src/Peering/generated/api/Support/ProvisioningState.Completer.cs
create mode 100644 src/Peering/generated/api/Support/ProvisioningState.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/ProvisioningState.cs
create mode 100644 src/Peering/generated/api/Support/Role.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Role.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Role.cs
create mode 100644 src/Peering/generated/api/Support/SessionAddressProvider.Completer.cs
create mode 100644 src/Peering/generated/api/Support/SessionAddressProvider.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/SessionAddressProvider.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV4.Completer.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV4.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV4.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV6.Completer.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV6.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/SessionStateV6.cs
create mode 100644 src/Peering/generated/api/Support/Size.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Size.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Size.cs
create mode 100644 src/Peering/generated/api/Support/Tier.Completer.cs
create mode 100644 src/Peering/generated/api/Support/Tier.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/Tier.cs
create mode 100644 src/Peering/generated/api/Support/ValidationState.Completer.cs
create mode 100644 src/Peering/generated/api/Support/ValidationState.TypeConverter.cs
create mode 100644 src/Peering/generated/api/Support/ValidationState.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringAsn_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringAsn_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringAsn_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringCdnPrefix_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringConnectionMonitorTest_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringConnectionMonitorTest_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringConnectionMonitorTest_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringLegacy_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringLocation_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringOperation_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringReceivedRoute_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredAsn_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredAsn_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredAsn_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredPrefix_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredPrefix_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRegisteredPrefix_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringRpUnbilledPrefix_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServiceCountry_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServiceLocation_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServicePrefix_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServicePrefix_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServicePrefix_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringServiceProvider_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringService_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringService_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringService_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeeringService_List1.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeering_Get.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeering_GetViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeering_List.cs
create mode 100644 src/Peering/generated/cmdlets/GetAzPeering_List1.cs
create mode 100644 src/Peering/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_Initialize.cs
create mode 100644 src/Peering/generated/cmdlets/InitializeAzPeeringServiceConnectionMonitor_InitializeViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringAsn_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringConnectionMonitorTest_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringRegisteredAsn_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringRegisteredPrefix_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringServicePrefix_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeeringService_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/NewAzPeering_CreateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringAsn_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringAsn_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringConnectionMonitorTest_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringRegisteredAsn_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringRegisteredAsn_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringRegisteredPrefix_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringServicePrefix_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringServicePrefix_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringService_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeeringService_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeering_Delete.cs
create mode 100644 src/Peering/generated/cmdlets/RemoveAzPeering_DeleteViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/StartAzPeeringInvokeLookingGlass_Invoke.cs
create mode 100644 src/Peering/generated/cmdlets/StartAzPeeringInvokeLookingGlass_InvokeViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringRegisteredPrefix_Validate.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringRegisteredPrefix_ValidateViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringServiceProviderAvailability_Check.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringServiceProviderAvailability_CheckExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringServiceProviderAvailability_CheckViaIdentity.cs
create mode 100644 src/Peering/generated/cmdlets/TestAzPeeringServiceProviderAvailability_CheckViaIdentityExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/UpdateAzPeeringService_UpdateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/UpdateAzPeeringService_UpdateViaIdentityExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/UpdateAzPeering_UpdateExpanded.cs
create mode 100644 src/Peering/generated/cmdlets/UpdateAzPeering_UpdateViaIdentityExpanded.cs
create mode 100644 src/Peering/generated/runtime/AsyncCommandRuntime.cs
create mode 100644 src/Peering/generated/runtime/AsyncJob.cs
create mode 100644 src/Peering/generated/runtime/AsyncOperationResponse.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportCmdletSurface.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportExampleStub.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportHelpMarkdown.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportModelSurface.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/GetCommonParameter.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/GetModuleGuid.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/CollectionExtensions.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/MarkdownRenderer.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsFormatTypes.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsHelpTypes.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsProxyOutputs.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/Models/PsProxyTypes.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/PsAttributes.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/PsExtensions.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/PsHelpers.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/StringExtensions.cs
create mode 100644 src/Peering/generated/runtime/BuildTime/XmlExtensions.cs
create mode 100644 src/Peering/generated/runtime/CmdInfoHandler.cs
create mode 100644 src/Peering/generated/runtime/Conversions/ConversionException.cs
create mode 100644 src/Peering/generated/runtime/Conversions/IJsonConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/BinaryConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/BooleanConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/DateTimeConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/DateTimeOffsetConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/DecimalConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/DoubleConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/EnumConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/GuidConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/HashSet'1Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/Int16Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/Int32Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/Int64Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/JsonArrayConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/JsonObjectConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/SingleConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/StringConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/TimeSpanConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/UInt16Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/UInt32Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/UInt64Converter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/Instances/UriConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/JsonConverter.cs
create mode 100644 src/Peering/generated/runtime/Conversions/JsonConverterAttribute.cs
create mode 100644 src/Peering/generated/runtime/Conversions/JsonConverterFactory.cs
create mode 100644 src/Peering/generated/runtime/Conversions/StringLikeConverter.cs
create mode 100644 src/Peering/generated/runtime/Customizations/IJsonSerializable.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonArray.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonBoolean.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonNode.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonNumber.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonObject.cs
create mode 100644 src/Peering/generated/runtime/Customizations/JsonString.cs
create mode 100644 src/Peering/generated/runtime/Customizations/XNodeArray.cs
create mode 100644 src/Peering/generated/runtime/Debugging.cs
create mode 100644 src/Peering/generated/runtime/DictionaryExtensions.cs
create mode 100644 src/Peering/generated/runtime/EventData.cs
create mode 100644 src/Peering/generated/runtime/EventDataExtensions.cs
create mode 100644 src/Peering/generated/runtime/EventListener.cs
create mode 100644 src/Peering/generated/runtime/Events.cs
create mode 100644 src/Peering/generated/runtime/EventsExtensions.cs
create mode 100644 src/Peering/generated/runtime/Extensions.cs
create mode 100644 src/Peering/generated/runtime/Helpers/Extensions/StringBuilderExtensions.cs
create mode 100644 src/Peering/generated/runtime/Helpers/Extensions/TypeExtensions.cs
create mode 100644 src/Peering/generated/runtime/Helpers/Seperator.cs
create mode 100644 src/Peering/generated/runtime/Helpers/TypeDetails.cs
create mode 100644 src/Peering/generated/runtime/Helpers/XHelper.cs
create mode 100644 src/Peering/generated/runtime/HttpPipeline.cs
create mode 100644 src/Peering/generated/runtime/HttpPipelineMocking.ps1
create mode 100644 src/Peering/generated/runtime/IAssociativeArray.cs
create mode 100644 src/Peering/generated/runtime/IHeaderSerializable.cs
create mode 100644 src/Peering/generated/runtime/ISendAsync.cs
create mode 100644 src/Peering/generated/runtime/InfoAttribute.cs
create mode 100644 src/Peering/generated/runtime/Iso/IsoDate.cs
create mode 100644 src/Peering/generated/runtime/JsonType.cs
create mode 100644 src/Peering/generated/runtime/MessageAttribute.cs
create mode 100644 src/Peering/generated/runtime/MessageAttributeHelper.cs
create mode 100644 src/Peering/generated/runtime/Method.cs
create mode 100644 src/Peering/generated/runtime/Models/JsonMember.cs
create mode 100644 src/Peering/generated/runtime/Models/JsonModel.cs
create mode 100644 src/Peering/generated/runtime/Models/JsonModelCache.cs
create mode 100644 src/Peering/generated/runtime/Nodes/Collections/JsonArray.cs
create mode 100644 src/Peering/generated/runtime/Nodes/Collections/XImmutableArray.cs
create mode 100644 src/Peering/generated/runtime/Nodes/Collections/XList.cs
create mode 100644 src/Peering/generated/runtime/Nodes/Collections/XNodeArray.cs
create mode 100644 src/Peering/generated/runtime/Nodes/Collections/XSet.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonBoolean.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonDate.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonNode.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonNumber.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonObject.cs
create mode 100644 src/Peering/generated/runtime/Nodes/JsonString.cs
create mode 100644 src/Peering/generated/runtime/Nodes/XBinary.cs
create mode 100644 src/Peering/generated/runtime/Nodes/XNull.cs
create mode 100644 src/Peering/generated/runtime/Parser/Exceptions/ParseException.cs
create mode 100644 src/Peering/generated/runtime/Parser/JsonParser.cs
create mode 100644 src/Peering/generated/runtime/Parser/JsonToken.cs
create mode 100644 src/Peering/generated/runtime/Parser/JsonTokenizer.cs
create mode 100644 src/Peering/generated/runtime/Parser/Location.cs
create mode 100644 src/Peering/generated/runtime/Parser/Readers/SourceReader.cs
create mode 100644 src/Peering/generated/runtime/Parser/TokenReader.cs
create mode 100644 src/Peering/generated/runtime/PipelineMocking.cs
create mode 100644 src/Peering/generated/runtime/Properties/Resources.Designer.cs
create mode 100644 src/Peering/generated/runtime/Properties/Resources.resx
create mode 100644 src/Peering/generated/runtime/Response.cs
create mode 100644 src/Peering/generated/runtime/Serialization/JsonSerializer.cs
create mode 100644 src/Peering/generated/runtime/Serialization/PropertyTransformation.cs
create mode 100644 src/Peering/generated/runtime/Serialization/SerializationOptions.cs
create mode 100644 src/Peering/generated/runtime/SerializationMode.cs
create mode 100644 src/Peering/generated/runtime/TypeConverterExtensions.cs
create mode 100644 src/Peering/generated/runtime/UndeclaredResponseException.cs
create mode 100644 src/Peering/generated/runtime/Writers/JsonWriter.cs
create mode 100644 src/Peering/generated/runtime/delegates.cs
create mode 100644 src/Peering/help/Az.Peering.md
create mode 100644 src/Peering/help/Get-AzPeering.md
create mode 100644 src/Peering/help/Get-AzPeeringAsn.md
create mode 100644 src/Peering/help/Get-AzPeeringCdnPrefix.md
create mode 100644 src/Peering/help/Get-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/help/Get-AzPeeringLegacy.md
create mode 100644 src/Peering/help/Get-AzPeeringLocation.md
create mode 100644 src/Peering/help/Get-AzPeeringReceivedRoute.md
create mode 100644 src/Peering/help/Get-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/help/Get-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/help/Get-AzPeeringRpUnbilledPrefix.md
create mode 100644 src/Peering/help/Get-AzPeeringService.md
create mode 100644 src/Peering/help/Get-AzPeeringServiceCountry.md
create mode 100644 src/Peering/help/Get-AzPeeringServiceLocation.md
create mode 100644 src/Peering/help/Get-AzPeeringServicePrefix.md
create mode 100644 src/Peering/help/Get-AzPeeringServiceProvider.md
create mode 100644 src/Peering/help/Initialize-AzPeeringServiceConnectionMonitor.md
create mode 100644 src/Peering/help/New-AzPeering.md
create mode 100644 src/Peering/help/New-AzPeeringAsn.md
create mode 100644 src/Peering/help/New-AzPeeringCheckServiceProviderAvailabilityInputObject.md
create mode 100644 src/Peering/help/New-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/help/New-AzPeeringContactDetailObject.md
create mode 100644 src/Peering/help/New-AzPeeringDirectConnectionObject.md
create mode 100644 src/Peering/help/New-AzPeeringExchangeConnectionObject.md
create mode 100644 src/Peering/help/New-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/help/New-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/help/New-AzPeeringService.md
create mode 100644 src/Peering/help/New-AzPeeringServicePrefix.md
create mode 100644 src/Peering/help/Remove-AzPeering.md
create mode 100644 src/Peering/help/Remove-AzPeeringAsn.md
create mode 100644 src/Peering/help/Remove-AzPeeringConnectionMonitorTest.md
create mode 100644 src/Peering/help/Remove-AzPeeringRegisteredAsn.md
create mode 100644 src/Peering/help/Remove-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/help/Remove-AzPeeringService.md
create mode 100644 src/Peering/help/Remove-AzPeeringServicePrefix.md
create mode 100644 src/Peering/help/Start-AzPeeringInvokeLookingGlass.md
create mode 100644 src/Peering/help/Test-AzPeeringRegisteredPrefix.md
create mode 100644 src/Peering/help/Test-AzPeeringServiceProviderAvailability.md
create mode 100644 src/Peering/help/Update-AzPeering.md
create mode 100644 src/Peering/help/Update-AzPeeringService.md
create mode 100644 src/Peering/how-to.md
create mode 100644 src/Peering/internal/Az.Peering.internal.psm1
create mode 100644 src/Peering/internal/Get-AzPeeringOperation.ps1
create mode 100644 src/Peering/internal/ProxyCmdletDefinitions.ps1
create mode 100644 src/Peering/internal/README.md
create mode 100644 src/Peering/pack-module.ps1
create mode 100644 src/Peering/run-module.ps1
create mode 100644 src/Peering/test-module.ps1
create mode 100644 src/Peering/test/Get-AzPeering.Recording.json
create mode 100644 src/Peering/test/Get-AzPeering.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringAsn.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringAsn.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringCdnPrefix.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringCdnPrefix.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringConnectionMonitorTest.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringLegacy.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringLocation.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringLocation.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringReceivedRoute.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringReceivedRoute.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringRegisteredAsn.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringRegisteredAsn.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringRegisteredPrefix.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringRegisteredPrefix.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringService.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringService.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringServiceCountry.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringServiceCountry.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringServiceLocation.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringServiceLocation.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringServicePrefix.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringServicePrefix.Tests.ps1
create mode 100644 src/Peering/test/Get-AzPeeringServiceProvider.Recording.json
create mode 100644 src/Peering/test/Get-AzPeeringServiceProvider.Tests.ps1
create mode 100644 src/Peering/test/Initialize-AzPeeringServiceConnectionMonitor.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeering.Recording.json
create mode 100644 src/Peering/test/New-AzPeering.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringAsn.Recording.json
create mode 100644 src/Peering/test/New-AzPeeringAsn.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringCheckServiceProviderAvailabilityInputObject.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringConnectionMonitorTest.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringContactDetailObject.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringDirectConnectionObject.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringExchangeConnectionObject.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringRegisteredAsn.Recording.json
create mode 100644 src/Peering/test/New-AzPeeringRegisteredAsn.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringRegisteredPrefix.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringService.Recording.json
create mode 100644 src/Peering/test/New-AzPeeringService.Tests.ps1
create mode 100644 src/Peering/test/New-AzPeeringServicePrefix.Tests.ps1
create mode 100644 src/Peering/test/README.md
create mode 100644 src/Peering/test/Remove-AzPeering.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeering.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringAsn.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeeringAsn.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringConnectionMonitorTest.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringRegisteredAsn.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeeringRegisteredAsn.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringRegisteredPrefix.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeeringRegisteredPrefix.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringService.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeeringService.Tests.ps1
create mode 100644 src/Peering/test/Remove-AzPeeringServicePrefix.Recording.json
create mode 100644 src/Peering/test/Remove-AzPeeringServicePrefix.Tests.ps1
create mode 100644 src/Peering/test/Start-AzPeeringInvokeLookingGlass.Recording.json
create mode 100644 src/Peering/test/Start-AzPeeringInvokeLookingGlass.Tests.ps1
create mode 100644 src/Peering/test/Test-AzPeeringRegisteredPrefix.Recording.json
create mode 100644 src/Peering/test/Test-AzPeeringRegisteredPrefix.Tests.ps1
create mode 100644 src/Peering/test/Test-AzPeeringServiceProviderAvailability.Recording.json
create mode 100644 src/Peering/test/Test-AzPeeringServiceProviderAvailability.Tests.ps1
create mode 100644 src/Peering/test/Update-AzPeering.Recording.json
create mode 100644 src/Peering/test/Update-AzPeering.Tests.ps1
create mode 100644 src/Peering/test/Update-AzPeeringService.Recording.json
create mode 100644 src/Peering/test/Update-AzPeeringService.Tests.ps1
create mode 100644 src/Peering/test/env.json
create mode 100644 src/Peering/test/envDogfood.json
create mode 100644 src/Peering/test/loadEnv.ps1
create mode 100644 src/Peering/test/loadEnvDogfood.ps1
create mode 100644 src/Peering/test/utils.ps1
create mode 100644 src/Peering/utils/Unprotect-SecureString.ps1
diff --git a/src/Peering/Az.Peering.csproj b/src/Peering/Az.Peering.csproj
new file mode 100644
index 000000000000..f109277f49e1
--- /dev/null
+++ b/src/Peering/Az.Peering.csproj
@@ -0,0 +1,8 @@
+
+
+ Peering
+
+
+
+
+
diff --git a/src/Peering/Az.Peering.format.ps1xml b/src/Peering/Az.Peering.format.ps1xml
new file mode 100644
index 000000000000..028aa8b9260e
--- /dev/null
+++ b/src/Peering/Az.Peering.format.ps1xml
@@ -0,0 +1,2289 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PeeringIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConnectionMonitorTestName
+
+
+ PeerAsnName
+
+
+ PeeringName
+
+
+ PeeringServiceName
+
+
+ PrefixName
+
+
+ RegisteredAsnName
+
+
+ RegisteredPrefixName
+
+
+ ResourceGroupName
+
+
+ SubscriptionId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.BgpSession
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.BgpSession
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MaxPrefixesAdvertisedV4
+
+
+ MaxPrefixesAdvertisedV6
+
+
+ Md5AuthenticationKey
+
+
+ MicrosoftSessionIPv4Address
+
+
+ MicrosoftSessionIPv6Address
+
+
+ PeerSessionIPv4Address
+
+
+ PeerSessionIPv6Address
+
+
+ SessionPrefixV4
+
+
+ SessionPrefixV6
+
+
+ SessionStateV4
+
+
+ SessionStateV6
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefix
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefix
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Prefix
+
+
+ AzureRegion
+
+
+ AzureService
+
+
+ IsPrimaryRegion
+
+
+ BgpCommunity
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefixListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefixListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefixProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CdnPeeringPrefixProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AzureRegion
+
+
+ AzureService
+
+
+ BgpCommunity
+
+
+ IsPrimaryRegion
+
+
+ Prefix
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PeeringServiceLocation
+
+
+ PeeringServiceProvider
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTest
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTest
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTestListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTestListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTestProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ConnectionMonitorTestProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Destination
+
+
+ DestinationPort
+
+
+ IsTestSuccessful
+
+
+ Path
+
+
+ ProvisioningState
+
+
+ SourceAgent
+
+
+ TestFrequencyInSec
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Email
+
+
+ Phone
+
+
+ Role
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BandwidthInMbps
+
+
+ ConnectionIdentifier
+
+
+ ConnectionState
+
+
+ ErrorMessage
+
+
+ MicrosoftTrackingId
+
+
+ PeeringDbFacilityId
+
+
+ ProvisionedBandwidthInMbps
+
+
+ SessionAddressProvider
+
+
+ UseForPeeringService
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectPeeringFacility
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectPeeringFacility
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Address
+
+
+ DirectPeeringType
+
+
+ PeeringDbFacilityId
+
+
+ PeeringDbFacilityLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ErrorDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ErrorDetail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConnectionIdentifier
+
+
+ ConnectionState
+
+
+ ErrorMessage
+
+
+ PeeringDbFacilityId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangePeeringFacility
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangePeeringFacility
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BandwidthInMbps
+
+
+ ExchangeName
+
+
+ FacilityIPv4Prefix
+
+
+ FacilityIPv6Prefix
+
+
+ MicrosoftIPv4Address
+
+
+ MicrosoftIPv6Address
+
+
+ PeeringDbFacilityId
+
+
+ PeeringDbFacilityLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.LogAnalyticsWorkspaceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.LogAnalyticsWorkspaceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ConnectedAgent
+
+
+ Key
+
+
+ WorkspaceId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.LookingGlassOutput
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.LookingGlassOutput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Command
+
+
+ Output
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.MetricDimension
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.MetricDimension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DisplayName
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.MetricSpecification
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.MetricSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AggregationType
+
+
+ DisplayDescription
+
+
+ DisplayName
+
+
+ Name
+
+
+ SupportedTimeGrainType
+
+
+ Unit
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Operation
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Operation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsDataAction
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.OperationDisplayInfo
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.OperationDisplayInfo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ Operation
+
+
+ Provider
+
+
+ Resource
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.OperationListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.OperationListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsn
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsn
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ PeerName
+
+
+ PropertiesPeerAsn
+
+
+ ValidationState
+
+
+ PeerContactDetail
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsnListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsnListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsnProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeerAsnProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ErrorMessage
+
+
+ PeerAsn
+
+
+ PeerName
+
+
+ ValidationState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Peering
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Peering
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SkuName
+
+
+ Kind
+
+
+ PeeringLocation
+
+
+ ProvisioningState
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringBandwidthOffer
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringBandwidthOffer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OfferName
+
+
+ ValueInMbps
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocation
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Country
+
+
+ AzureRegion
+
+
+ Kind
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocationListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocationListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringLocationProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AzureRegion
+
+
+ Country
+
+
+ PeeringLocation
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PeeringLocation
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringPropertiesDirect
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringPropertiesDirect
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DirectPeeringType
+
+
+ UseForPeeringService
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringReceivedRoute
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringReceivedRoute
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AsPath
+
+
+ NextHop
+
+
+ OriginAsValidationState
+
+
+ Prefix
+
+
+ ReceivedTimestamp
+
+
+ RpkiValidationState
+
+
+ TrustAnchor
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringReceivedRouteListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringReceivedRouteListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsn
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsn
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Asn
+
+
+ PeeringServicePrefixKey
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsnListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsnListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsnProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredAsnProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Asn
+
+
+ PeeringServicePrefixKey
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefix
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefix
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Prefix
+
+
+ PeeringServicePrefixKey
+
+
+ PrefixValidationState
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefixListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefixListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefixProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringRegisteredPrefixProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ErrorMessage
+
+
+ PeeringServicePrefixKey
+
+
+ Prefix
+
+
+ PrefixValidationState
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringService
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringService
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ PeeringServiceLocation
+
+
+ Provider
+
+
+ ProvisioningState
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceCountry
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceCountry
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceCountryListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceCountryListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocation
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ State
+
+
+ Country
+
+
+ AzureRegion
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocationListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocationListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocationProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceLocationProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AzureRegion
+
+
+ Country
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefix
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefix
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ Prefix
+
+
+ Key
+
+
+ PrefixValidationState
+
+
+ LearnedType
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixEvent
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixEvent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EventDescription
+
+
+ EventLevel
+
+
+ EventSummary
+
+
+ EventTimestamp
+
+
+ EventType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServicePrefixProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ErrorMessage
+
+
+ LearnedType
+
+
+ PeeringServicePrefixKey
+
+
+ Prefix
+
+
+ PrefixValidationState
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PeeringServiceLocation
+
+
+ PeeringServiceProvider
+
+
+ ProviderBackupPeeringLocation
+
+
+ ProviderPrimaryPeeringLocation
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProvider
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProvider
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ PeeringLocation
+
+
+ ServiceProviderName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProviderListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProviderListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProviderProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceProviderProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PeeringLocation
+
+
+ ServiceProviderName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceSku
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceSku
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringServiceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringSku
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringSku
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Family
+
+
+ Name
+
+
+ Size
+
+
+ Tier
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.PeeringTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.Resource
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.RpUnbilledPrefix
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.RpUnbilledPrefix
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Prefix
+
+
+ AzureRegion
+
+
+ PeerAsn
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.RpUnbilledPrefixListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.RpUnbilledPrefixListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Peering/Az.Peering.psd1 b/src/Peering/Az.Peering.psd1
new file mode 100644
index 000000000000..3024d5d46938
--- /dev/null
+++ b/src/Peering/Az.Peering.psd1
@@ -0,0 +1,155 @@
+#
+# Module manifest for module 'Az.Peering'
+#
+# Generated by: Microsoft Corporation
+#
+# Generated on: 1/30/2023
+#
+
+@{
+
+# Script module or binary module file associated with this manifest.
+RootModule = './Az.Peering.psm1'
+
+# Version number of this module.
+ModuleVersion = '0.1.0'
+
+# Supported PSEditions
+CompatiblePSEditions = 'Core', 'Desktop'
+
+# ID used to uniquely identify this module
+GUID = '78c6a853-5ea3-4374-9c5f-5b532d62c892'
+
+# Author of this module
+Author = 'Microsoft Corporation'
+
+# Company or vendor of this module
+CompanyName = 'Microsoft Corporation'
+
+# Copyright statement for this module
+Copyright = 'Microsoft Corporation. All rights reserved.'
+
+# Description of the functionality provided by this module
+Description = 'Microsoft Azure PowerShell: Peering cmdlets'
+
+# Minimum version of the PowerShell engine required by this module
+PowerShellVersion = '5.1'
+
+# Name of the PowerShell host required by this module
+# PowerShellHostName = ''
+
+# Minimum version of the PowerShell host required by this module
+# PowerShellHostVersion = ''
+
+# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+DotNetFrameworkVersion = '4.7.2'
+
+# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+# ClrVersion = ''
+
+# Processor architecture (None, X86, Amd64) required by this module
+# ProcessorArchitecture = ''
+
+# Modules that must be imported into the global environment prior to importing this module
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.11.1'; })
+
+# Assemblies that must be loaded prior to importing this module
+RequiredAssemblies = './bin/Az.Peering.private.dll'
+
+# Script files (.ps1) that are run in the caller's environment prior to importing this module.
+# ScriptsToProcess = @()
+
+# Type files (.ps1xml) to be loaded when importing this module
+# TypesToProcess = @()
+
+# Format files (.ps1xml) to be loaded when importing this module
+FormatsToProcess = './Az.Peering.format.ps1xml'
+
+# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
+# NestedModules = @()
+
+# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
+FunctionsToExport = 'Get-AzPeering', 'Get-AzPeeringAsn', 'Get-AzPeeringCdnPrefix',
+ 'Get-AzPeeringConnectionMonitorTest', 'Get-AzPeeringLegacy',
+ 'Get-AzPeeringLocation', 'Get-AzPeeringReceivedRoute',
+ 'Get-AzPeeringRegisteredAsn', 'Get-AzPeeringRegisteredPrefix',
+ 'Get-AzPeeringRpUnbilledPrefix', 'Get-AzPeeringService',
+ 'Get-AzPeeringServiceCountry', 'Get-AzPeeringServiceLocation',
+ 'Get-AzPeeringServicePrefix', 'Get-AzPeeringServiceProvider',
+ 'Initialize-AzPeeringServiceConnectionMonitor', 'New-AzPeering',
+ 'New-AzPeeringAsn',
+ 'New-AzPeeringCheckServiceProviderAvailabilityInputObject',
+ 'New-AzPeeringConnectionMonitorTest',
+ 'New-AzPeeringContactDetailObject',
+ 'New-AzPeeringDirectConnectionObject',
+ 'New-AzPeeringExchangeConnectionObject',
+ 'New-AzPeeringRegisteredAsn', 'New-AzPeeringRegisteredPrefix',
+ 'New-AzPeeringService', 'New-AzPeeringServicePrefix',
+ 'Remove-AzPeering', 'Remove-AzPeeringAsn',
+ 'Remove-AzPeeringConnectionMonitorTest',
+ 'Remove-AzPeeringRegisteredAsn', 'Remove-AzPeeringRegisteredPrefix',
+ 'Remove-AzPeeringService', 'Remove-AzPeeringServicePrefix',
+ 'Start-AzPeeringInvokeLookingGlass',
+ 'Test-AzPeeringRegisteredPrefix',
+ 'Test-AzPeeringServiceProviderAvailability', 'Update-AzPeering',
+ 'Update-AzPeeringService'
+
+# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
+CmdletsToExport = @()
+
+# Variables to export from this module
+# VariablesToExport = @()
+
+# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
+AliasesToExport = '*'
+
+# DSC resources to export from this module
+# DscResourcesToExport = @()
+
+# List of all modules packaged with this module
+# ModuleList = @()
+
+# List of all files packaged with this module
+# FileList = @()
+
+# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
+PrivateData = @{
+
+ PSData = @{
+
+ # Tags applied to this module. These help with module discovery in online galleries.
+ Tags = 'Azure','ResourceManager','ARM','PSModule','Peering'
+
+ # A URL to the license for this module.
+ LicenseUri = 'https://aka.ms/azps-license'
+
+ # A URL to the main website for this project.
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+
+ # A URL to an icon representing this module.
+ # IconUri = ''
+
+ # ReleaseNotes of this module
+ # ReleaseNotes = ''
+
+ # Prerelease string of this module
+ # Prerelease = ''
+
+ # Flag to indicate whether the module requires explicit user acceptance for install/update/save
+ # RequireLicenseAcceptance = $false
+
+ # External dependent modules of this module
+ # ExternalModuleDependencies = @()
+
+ } # End of PSData hashtable
+
+ } # End of PrivateData hashtable
+
+# HelpInfo URI of this module
+# HelpInfoURI = ''
+
+# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
+# DefaultCommandPrefix = ''
+
+}
+
diff --git a/src/Peering/Az.Peering.psm1 b/src/Peering/Az.Peering.psm1
new file mode 100644
index 000000000000..f3db634a5816
--- /dev/null
+++ b/src/Peering/Az.Peering.psm1
@@ -0,0 +1,115 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ # Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ 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
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.Peering.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.Peering.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
+
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.Peering.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/src/Peering/Changelog.md b/src/Peering/Changelog.md
new file mode 100644
index 000000000000..a5bb0f5ac385
--- /dev/null
+++ b/src/Peering/Changelog.md
@@ -0,0 +1,24 @@
+
+## Upcoming Release
+
+## Version 0.1.0
+* First preview release for module Az.Peering
+
diff --git a/src/Peering/Peering.sln b/src/Peering/Peering.sln
new file mode 100644
index 000000000000..bc344934ca58
--- /dev/null
+++ b/src/Peering/Peering.sln
@@ -0,0 +1,58 @@
+
+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}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B16E67AF-2829-4A77-991E-9E68E3BFFD44}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A7492AB5-BD93-41D1-A087-0491E53F36DF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{E707E9BE-792F-4505-8835-4891A0C24919}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Peering", "Az.Peering.csproj", "{2792EF2D-6752-4768-BD06-56D8ADE95E98}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ 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
+ EndGlobalSection
+EndGlobal
diff --git a/src/Peering/Properties/AssemblyInfo.cs b/src/Peering/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..ddacfaea526d
--- /dev/null
+++ b/src/Peering/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Microsoft Azure Powershell - Peering")]
+[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
+[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(false)]
+[assembly: Guid("354e399e-5975-4d1d-9ad1-739c1259dd79")]
+[assembly: AssemblyVersion("0.1.0")]
+[assembly: AssemblyFileVersion("0.1.0")]
diff --git a/src/Peering/README.md b/src/Peering/README.md
new file mode 100644
index 000000000000..5164e13b7ccd
--- /dev/null
+++ b/src/Peering/README.md
@@ -0,0 +1,239 @@
+
+# Az.Peering
+This directory contains the PowerShell module for the Peering service.
+
+---
+## Status
+[![Az.Peering](https://img.shields.io/powershellgallery/v/Az.Peering.svg?style=flat-square&label=Az.Peering "Az.Peering")](https://www.powershellgallery.com/packages/Az.Peering/)
+
+## Info
+- Modifiable: yes
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+---
+## Detail
+This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
+
+## Module Requirements
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
+
+## Authentication
+AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
+
+## Development
+For information on how to develop for `Az.Peering`, see [how-to.md](how-to.md).
+
+
+### AutoRest Configuration
+> see https://aka.ms/autorest
+
+``` yaml
+# Please specify the commit id that includes your features to make sure generated codes stable.
+branch: 5fc05d0f0b15cbf16de942cadce464b495c66a58
+require:
+# readme.azure.noprofile.md is the common configuration file
+ - $(this-folder)/../readme.azure.noprofile.md
+input-file:
+# You need to specify your swagger files here.
+ - $(repo)/specification/peering/resource-manager/Microsoft.Peering/stable/2022-10-01/peering.json
+# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
+# - (this-folder)/relative-path-to-your-swagger
+
+# For new RP, the version is 0.1.0
+module-version: 0.1.0
+# Normally, title is the service name
+title: Peering
+subject-prefix: $(service-name)
+
+# If there are post APIs for some kinds of actions in the RP, you may need to
+# uncomment following line to support viaIdentity for these post APIs
+resourcegroup-append: true
+identity-correction-for-post: true
+nested-object-to-string: true
+
+directive:
+ # Following is two common directive which are normally required in all the RPs
+ # 1. Remove the unexpanded parameter set
+ # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
+ - where:
+ variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
+ remove: true
+
+ # Remove the set-* cmdlet
+ - where:
+ verb: Set
+ remove: true
+ # Change cmdlet verb: Invoke-AzPeeringInvokeLookingGlass -> Start-AzPeeringInvokeLookingGlass
+ - where:
+ verb: Invoke
+ subject: ^InvokeLookingGlass$
+ set:
+ verb: Start
+ # Change cmdlet subject: *-AzPeeringPeerAsn -> *-AzPeeringAsn
+ - where:
+ subject-prefix: Peering
+ subject: PeerAsn
+ set:
+ subject: Asn
+ # Change cmdlet: *-AzPeeringLegacyPeering -> *-AzPeeringLegacy
+ - where:
+ subject-prefix: Peering
+ subject: LegacyPeering
+ set:
+ subject: Legacy
+ # Change cmdlet: *-AzPeeringCdnPeeringPrefix -> *-AzPeeringCdnPrefix
+ - where:
+ subject-prefix: Peering
+ subject: CdnPeeringPrefix
+ set:
+ subject: CdnPrefix
+ # Change cmdlet: *-AzPeeringPrefix -> *-AzPeeringServicePrefix
+ - where:
+ subject-prefix: Peering
+ subject: Prefix
+ set:
+ subject: ServicePrefix
+
+ # Some parameter is Array, so we need to change it and custom it
+ # ExchangeConnection: New-AzPeeringExchangeConnectionObject
+ # DirectConnection: New-AzPeeringDirectConnectionObject
+ # ContactDetail: New-AzPeeringContactDetailObject
+ # CheckServiceProviderAvailabilityInput: New-AzPeeringCheckServiceProviderAvailabilityInputObject
+ # eg:
+ # New-AzPeering [-DirectConnection ]
+ # $directConnection = New-AzPeeringDirectConnectionObject ......
+ # New-AzPeering -DirectConnection $directConnection ......
+ - model-cmdlet:
+ - ExchangeConnection
+ - DirectConnection
+ - ContactDetail
+ - CheckServiceProviderAvailabilityInput
+
+ # Change all parameters named SkuName(SkuName -> Sku) and add the alias SkuName to Sku
+ - where:
+ parameter-name: SkuName
+ set:
+ parameter-name: Sku
+ alias: SkuName
+
+ # Parameter information to be displayed after the command is returned
+ # module-name source: .\azure-powershell\src\Peering\exports\Get-AzPeerAsn.ps1 Line 51 [IPeerAsn]
+ - where:
+ model-name: PeerAsn
+ set:
+ format-table:
+ properties:
+ - Name
+ - PeerName
+ - PropertiesPeerAsn
+ - ValidationState
+ - PeerContactDetail
+ resource:
+ - Id
+ - where:
+ model-name: CdnPeeringPrefix
+ set:
+ format-table:
+ properties:
+ - Prefix
+ - AzureRegion
+ - AzureService
+ - IsPrimaryRegion
+ - BgpCommunity
+ - where:
+ model-name: Peering
+ set:
+ format-table:
+ properties:
+ - Name
+ - SkuName
+ - Kind
+ - PeeringLocation
+ - ProvisioningState
+ - Location
+ - where:
+ model-name: PeeringLocation
+ set:
+ format-table:
+ properties:
+ - Name
+ - Country
+ - AzureRegion
+ - Kind
+ - where:
+ model-name: PeeringRegisteredAsn
+ set:
+ format-table:
+ properties:
+ - Name
+ - Asn
+ - PeeringServicePrefixKey
+ - ProvisioningState
+ - where:
+ model-name: PeeringRegisteredPrefix
+ set:
+ format-table:
+ properties:
+ - Name
+ - Prefix
+ - PeeringServicePrefixKey
+ - PrefixValidationState
+ - ProvisioningState
+ - where:
+ model-name: PeeringService
+ set:
+ format-table:
+ properties:
+ - Name
+ - ResourceGroupName
+ - PeeringServiceLocation
+ - Provider
+ - ProvisioningState
+ - Location
+ - where:
+ model-name: PeeringServiceLocation
+ set:
+ format-table:
+ properties:
+ - Name
+ - State
+ - Country
+ - AzureRegion
+ - where:
+ model-name: PeeringServicePrefix
+ set:
+ format-table:
+ properties:
+ - Name
+ - Prefix
+ - Key
+ - PrefixValidationState
+ - LearnedType
+ - ProvisioningState
+ - where:
+ model-name: PeeringServiceProvider
+ set:
+ format-table:
+ properties:
+ - Name
+ - PeeringLocation
+ - ServiceProviderName
+ - where:
+ model-name: PeeringExchangeConnectionObject
+ set:
+ format-table:
+ properties:
+ - Name
+ - PeeringLocation
+ - ServiceProviderName
+ - where:
+ model-name: RpUnbilledPrefix
+ set:
+ format-table:
+ properties:
+ - Prefix
+ - AzureRegion
+ - PeerAsn
+```
diff --git a/src/Peering/build-module.ps1 b/src/Peering/build-module.ps1
new file mode 100644
index 000000000000..c27fdf1be568
--- /dev/null
+++ b/src/Peering/build-module.ps1
@@ -0,0 +1,161 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+$ErrorActionPreference = 'Stop'
+
+if($PSEdition -ne 'Core') {
+ Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
+}
+
+if(-not $Isolated -and -not $Debugger) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+
+ if($LastExitCode -ne 0) {
+ # Build failed. Don't attempt to run the module.
+ return
+ }
+
+ if($Test) {
+ . (Join-Path $PSScriptRoot 'test-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Tests failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Docs) {
+ . (Join-Path $PSScriptRoot 'generate-help.ps1')
+ if($LastExitCode -ne 0) {
+ # Docs generation failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Pack) {
+ . (Join-Path $PSScriptRoot 'pack-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Packing failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
+ if($Code) {
+ . $runModulePath -Code
+ } elseif($Run) {
+ . $runModulePath
+ } else {
+ Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
+ }
+ return
+}
+
+$binFolder = Join-Path $PSScriptRoot 'bin'
+$objFolder = Join-Path $PSScriptRoot 'obj'
+
+if(-not $Debugger) {
+ Write-Host -ForegroundColor Green 'Cleaning build folders...'
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
+
+ if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
+ Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
+ Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
+ }
+
+ Write-Host -ForegroundColor Green 'Compiling module...'
+ $buildConfig = 'Debug'
+ if($Release) {
+ $buildConfig = 'Release'
+ }
+ dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
+ if($LastExitCode -ne 0) {
+ Write-Error 'Compilation failed.'
+ }
+
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.Peering.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+
+# Load DLL to use build-time cmdlets
+$null = Import-Module -Name $dll
+
+$modulePaths = $dll
+$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.Peering.custom.psm1'
+if(Test-Path $customPsm1) {
+ $modulePaths = @($dll, $customPsm1)
+}
+
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+if(Test-Path $exportsFolder) {
+ $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $exportsFolder
+
+$internalFolder = Join-Path $PSScriptRoot 'internal'
+if(Test-Path $internalFolder) {
+ $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $internalFolder
+
+$psd1 = Join-Path $PSScriptRoot './Az.Peering.psd1'
+$guid = Get-ModuleGuid -Psd1Path $psd1
+$moduleName = 'Az.Peering'
+$examplesFolder = Join-Path $PSScriptRoot 'examples'
+$null = New-Item -ItemType Directory -Force -Path $examplesFolder
+
+Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
+$modelCmdlets = @('ExchangeConnection', 'DirectConnection', 'ContactDetail', 'CheckServiceProviderAvailabilityInput')
+if ($modelCmdlets.Count -gt 0) {
+ . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
+ CreateModelCmdlet($modelCmdlets)
+}
+
+if($NoDocs) {
+ Write-Host -ForegroundColor Green 'Creating exports...'
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
+} else {
+ Write-Host -ForegroundColor Green 'Creating exports and docs...'
+ $moduleDescription = 'Microsoft Azure PowerShell: Peering cmdlets'
+ $docsFolder = Join-Path $PSScriptRoot 'docs'
+ if(Test-Path $docsFolder) {
+ $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+ }
+ $null = New-Item -ItemType Directory -Force -Path $docsFolder
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+}
+
+Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.Peering.format.ps1xml'
+Export-FormatPs1xml -FilePath $formatPs1xml
+
+Write-Host -ForegroundColor Green 'Creating psd1...'
+$customFolder = Join-Path $PSScriptRoot 'custom'
+Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
+
+Write-Host -ForegroundColor Green 'Creating test stubs...'
+$testFolder = Join-Path $PSScriptRoot 'test'
+$null = New-Item -ItemType Directory -Force -Path $testFolder
+Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
+
+Write-Host -ForegroundColor Green 'Creating example stubs...'
+Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/Peering/check-dependencies.ps1 b/src/Peering/check-dependencies.ps1
new file mode 100644
index 000000000000..c29591c7bfe1
--- /dev/null
+++ b/src/Peering/check-dependencies.ps1
@@ -0,0 +1,65 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/src/Peering/create-model-cmdlets.ps1 b/src/Peering/create-model-cmdlets.ps1
new file mode 100644
index 000000000000..f8d864b4815d
--- /dev/null
+++ b/src/Peering/create-model-cmdlets.ps1
@@ -0,0 +1,179 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+function CreateModelCmdlet {
+
+ param([string[]]$Models)
+
+ if ($Models.Count -eq 0)
+ {
+ return
+ }
+
+ $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
+ $ModuleName = 'Peering'
+ $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
+ $null = New-Item -ItemType Directory -Force -Path $OutputDir
+
+ $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
+ $Content = ''
+ $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
+ { $Content += get-content $_.fullname -raw
+ } }
+
+ $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
+ $Nodes = $Tree.ChildNodes().ChildNodes()
+ foreach ($Model in $Models)
+ {
+ $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
+ if ($InterfaceNode.count -eq 0) {
+ continue
+ }
+ # through a queue, we iterate all the parent models.
+ $Queue = @($InterfaceNode)
+ $visited = @("I$Model")
+ $AllInterfaceNodes = @()
+ while ($Queue.count -ne 0)
+ {
+ $AllInterfaceNodes += $Queue[0]
+ # Baselist contains the direct parent models.
+ foreach ($parent in $Queue[0].BaseList.Types)
+ {
+ if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value)))
+ {
+ $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) })
+ $visited = [Array]$visited + $parent.Type.Right.Identifier.Value
+ }
+ }
+ $first, $Queue = $Queue
+ }
+
+ $Namespace = $InterfaceNode.Parent.Name
+ $ObjectType = $Model
+ $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
+ # remove duplicated module name
+ if ($ObjectType.StartsWith($ModuleName)) {
+ $ModulePrefix = ''
+ } else {
+ $ModulePrefix = $ModuleName
+ }
+ $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
+
+ $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string]
+ $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string]
+ foreach ($Node in $AllInterfaceNodes)
+ {
+ foreach ($Member in $Node.Members)
+ {
+ $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
+ $Required = $false
+ $Description = ""
+ $Readonly = $False
+ foreach ($Argument in $Arguments)
+ {
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
+ {
+ $Required = $Argument.Expression.Token.Value
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Description")
+ {
+ $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"')
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly")
+ {
+ $Readonly = $Argument.Expression.Token.Value
+ }
+ }
+ if ($Readonly)
+ {
+ continue
+ }
+ $Identifier = $Member.Identifier.Value
+ $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
+ $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
+ if ($Required)
+ {
+ $ParameterDefinePropertyList.Add("Mandatory")
+ }
+ if ($Description -ne "")
+ {
+ $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
+ }
+ $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
+ $ParameterDefineScript = "
+ [Parameter($ParameterDefineProperty)]${completer}
+ [${Type}]
+ `$${Identifier}"
+ $ParameterDefineScriptList.Add($ParameterDefineScript)
+ $ParameterAssignScriptList.Add("
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
+ }
+ }
+ $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
+ $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
+
+ $Script = "
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the ""License"");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an ""AS IS"" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ${ObjectType}.
+.Description
+Create an in-memory object for ${ObjectType}.
+
+.Outputs
+${ObjectTypeWithNamespace}
+.Link
+https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
+#>
+function New-Az${ModulePrefix}${ObjectType}Object {
+ [OutputType('${ObjectTypeWithNamespace}')]
+ [CmdletBinding(PositionalBinding=`$false)]
+ Param(
+${ParameterDefineScript}
+ )
+
+ process {
+ `$Object = [${ObjectTypeWithNamespace}]::New()
+${ParameterAssignScript}
+ return `$Object
+ }
+}
+"
+ Set-Content -Path $OutputPath -Value $Script
+ }
+}
diff --git a/src/Peering/custom/Az.Peering.custom.psm1 b/src/Peering/custom/Az.Peering.custom.psm1
new file mode 100644
index 000000000000..3cd45c5addb1
--- /dev/null
+++ b/src/Peering/custom/Az.Peering.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.Peering.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.Peering.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/src/Peering/custom/README.md b/src/Peering/custom/README.md
new file mode 100644
index 000000000000..ec560a23208e
--- /dev/null
+++ b/src/Peering/custom/README.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.Peering` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Peering.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.Peering` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.Peering.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.Peering.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.Peering`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### 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://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`
+ - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Peering`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.Peering.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1 b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
new file mode 100644
index 000000000000..ed792154bf3d
--- /dev/null
+++ b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
@@ -0,0 +1,53 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for CheckServiceProviderAvailabilityInput.
+.Description
+Create an in-memory object for CheckServiceProviderAvailabilityInput.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringCheckServiceProviderAvailabilityInputObject
+#>
+function New-AzPeeringCheckServiceProviderAvailabilityInputObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Gets or sets the peering service location.")]
+ [string]
+ $PeeringServiceLocation,
+ [Parameter(HelpMessage="Gets or sets the peering service provider.")]
+ [string]
+ $PeeringServiceProvider
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput]::New()
+
+ if ($PSBoundParameters.ContainsKey('PeeringServiceLocation')) {
+ $Object.PeeringServiceLocation = $PeeringServiceLocation
+ }
+ if ($PSBoundParameters.ContainsKey('PeeringServiceProvider')) {
+ $Object.PeeringServiceProvider = $PeeringServiceProvider
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringContactDetailObject.ps1 b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringContactDetailObject.ps1
new file mode 100644
index 000000000000..a309c3283c2b
--- /dev/null
+++ b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringContactDetailObject.ps1
@@ -0,0 +1,60 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ContactDetail.
+.Description
+Create an in-memory object for ContactDetail.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringContactDetailObject
+#>
+function New-AzPeeringContactDetailObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The e-mail address of the contact.")]
+ [string]
+ $Email,
+ [Parameter(HelpMessage="The phone number of the contact.")]
+ [string]
+ $Phone,
+ [Parameter(HelpMessage="The role of the contact.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Role])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Role]
+ $Role
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail]::New()
+
+ if ($PSBoundParameters.ContainsKey('Email')) {
+ $Object.Email = $Email
+ }
+ if ($PSBoundParameters.ContainsKey('Phone')) {
+ $Object.Phone = $Phone
+ }
+ if ($PSBoundParameters.ContainsKey('Role')) {
+ $Object.Role = $Role
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringDirectConnectionObject.ps1 b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringDirectConnectionObject.ps1
new file mode 100644
index 000000000000..bea2a10edfd0
--- /dev/null
+++ b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringDirectConnectionObject.ps1
@@ -0,0 +1,126 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for DirectConnection.
+.Description
+Create an in-memory object for DirectConnection.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringDirectConnectionObject
+#>
+function New-AzPeeringDirectConnectionObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The bandwidth of the connection.")]
+ [int]
+ $BandwidthInMbps,
+ [Parameter(HelpMessage="The maximum number of prefixes advertised over the IPv4 session.")]
+ [int]
+ $BgpSessionMaxPrefixesAdvertisedV4,
+ [Parameter(HelpMessage="The maximum number of prefixes advertised over the IPv6 session.")]
+ [int]
+ $BgpSessionMaxPrefixesAdvertisedV6,
+ [Parameter(HelpMessage="The MD5 authentication key of the session.")]
+ [string]
+ $BgpSessionMd5AuthenticationKey,
+ [Parameter(HelpMessage="The IPv4 session address on Microsoft's end.")]
+ [string]
+ $BgpSessionMicrosoftSessionIPv4Address,
+ [Parameter(HelpMessage="The IPv6 session address on Microsoft's end.")]
+ [string]
+ $BgpSessionMicrosoftSessionIPv6Address,
+ [Parameter(HelpMessage="The IPv4 session address on peer's end.")]
+ [string]
+ $BgpSessionPeerSessionIPv4Address,
+ [Parameter(HelpMessage="The IPv6 session address on peer's end.")]
+ [string]
+ $BgpSessionPeerSessionIPv6Address,
+ [Parameter(HelpMessage="The IPv4 prefix that contains both ends' IPv4 addresses.")]
+ [string]
+ $BgpSessionPrefixV4,
+ [Parameter(HelpMessage="The IPv6 prefix that contains both ends' IPv6 addresses.")]
+ [string]
+ $BgpSessionPrefixV6,
+ [Parameter(HelpMessage="The unique identifier (GUID) for the connection.")]
+ [string]
+ $ConnectionIdentifier,
+ [Parameter(HelpMessage="The PeeringDB.com ID of the facility at which the connection has to be set up.")]
+ [int]
+ $PeeringDbFacilityId,
+ [Parameter(HelpMessage="The field indicating if Microsoft provides session ip addresses.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.SessionAddressProvider])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.SessionAddressProvider]
+ $SessionAddressProvider,
+ [Parameter(HelpMessage="The flag that indicates whether or not the connection is used for peering service.")]
+ [bool]
+ $UseForPeeringService
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection]::New()
+
+ if ($PSBoundParameters.ContainsKey('BandwidthInMbps')) {
+ $Object.BandwidthInMbps = $BandwidthInMbps
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMaxPrefixesAdvertisedV4')) {
+ $Object.BgpSessionMaxPrefixesAdvertisedV4 = $BgpSessionMaxPrefixesAdvertisedV4
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMaxPrefixesAdvertisedV6')) {
+ $Object.BgpSessionMaxPrefixesAdvertisedV6 = $BgpSessionMaxPrefixesAdvertisedV6
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMd5AuthenticationKey')) {
+ $Object.BgpSessionMd5AuthenticationKey = $BgpSessionMd5AuthenticationKey
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMicrosoftSessionIPv4Address')) {
+ $Object.BgpSessionMicrosoftSessionIPv4Address = $BgpSessionMicrosoftSessionIPv4Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMicrosoftSessionIPv6Address')) {
+ $Object.BgpSessionMicrosoftSessionIPv6Address = $BgpSessionMicrosoftSessionIPv6Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPeerSessionIPv4Address')) {
+ $Object.BgpSessionPeerSessionIPv4Address = $BgpSessionPeerSessionIPv4Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPeerSessionIPv6Address')) {
+ $Object.BgpSessionPeerSessionIPv6Address = $BgpSessionPeerSessionIPv6Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPrefixV4')) {
+ $Object.BgpSessionPrefixV4 = $BgpSessionPrefixV4
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPrefixV6')) {
+ $Object.BgpSessionPrefixV6 = $BgpSessionPrefixV6
+ }
+ if ($PSBoundParameters.ContainsKey('ConnectionIdentifier')) {
+ $Object.ConnectionIdentifier = $ConnectionIdentifier
+ }
+ if ($PSBoundParameters.ContainsKey('PeeringDbFacilityId')) {
+ $Object.PeeringDbFacilityId = $PeeringDbFacilityId
+ }
+ if ($PSBoundParameters.ContainsKey('SessionAddressProvider')) {
+ $Object.SessionAddressProvider = $SessionAddressProvider
+ }
+ if ($PSBoundParameters.ContainsKey('UseForPeeringService')) {
+ $Object.UseForPeeringService = $UseForPeeringService
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringExchangeConnectionObject.ps1 b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringExchangeConnectionObject.ps1
new file mode 100644
index 000000000000..49f4e41e3bba
--- /dev/null
+++ b/src/Peering/custom/autogen-model-cmdlets/New-AzPeeringExchangeConnectionObject.ps1
@@ -0,0 +1,107 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ExchangeConnection.
+.Description
+Create an in-memory object for ExchangeConnection.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringExchangeConnectionObject
+#>
+function New-AzPeeringExchangeConnectionObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The maximum number of prefixes advertised over the IPv4 session.")]
+ [int]
+ $BgpSessionMaxPrefixesAdvertisedV4,
+ [Parameter(HelpMessage="The maximum number of prefixes advertised over the IPv6 session.")]
+ [int]
+ $BgpSessionMaxPrefixesAdvertisedV6,
+ [Parameter(HelpMessage="The MD5 authentication key of the session.")]
+ [string]
+ $BgpSessionMd5AuthenticationKey,
+ [Parameter(HelpMessage="The IPv4 session address on Microsoft's end.")]
+ [string]
+ $BgpSessionMicrosoftSessionIPv4Address,
+ [Parameter(HelpMessage="The IPv6 session address on Microsoft's end.")]
+ [string]
+ $BgpSessionMicrosoftSessionIPv6Address,
+ [Parameter(HelpMessage="The IPv4 session address on peer's end.")]
+ [string]
+ $BgpSessionPeerSessionIPv4Address,
+ [Parameter(HelpMessage="The IPv6 session address on peer's end.")]
+ [string]
+ $BgpSessionPeerSessionIPv6Address,
+ [Parameter(HelpMessage="The IPv4 prefix that contains both ends' IPv4 addresses.")]
+ [string]
+ $BgpSessionPrefixV4,
+ [Parameter(HelpMessage="The IPv6 prefix that contains both ends' IPv6 addresses.")]
+ [string]
+ $BgpSessionPrefixV6,
+ [Parameter(HelpMessage="The unique identifier (GUID) for the connection.")]
+ [string]
+ $ConnectionIdentifier,
+ [Parameter(HelpMessage="The PeeringDB.com ID of the facility at which the connection has to be set up.")]
+ [int]
+ $PeeringDbFacilityId
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection]::New()
+
+ if ($PSBoundParameters.ContainsKey('BgpSessionMaxPrefixesAdvertisedV4')) {
+ $Object.BgpSessionMaxPrefixesAdvertisedV4 = $BgpSessionMaxPrefixesAdvertisedV4
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMaxPrefixesAdvertisedV6')) {
+ $Object.BgpSessionMaxPrefixesAdvertisedV6 = $BgpSessionMaxPrefixesAdvertisedV6
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMd5AuthenticationKey')) {
+ $Object.BgpSessionMd5AuthenticationKey = $BgpSessionMd5AuthenticationKey
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMicrosoftSessionIPv4Address')) {
+ $Object.BgpSessionMicrosoftSessionIPv4Address = $BgpSessionMicrosoftSessionIPv4Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionMicrosoftSessionIPv6Address')) {
+ $Object.BgpSessionMicrosoftSessionIPv6Address = $BgpSessionMicrosoftSessionIPv6Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPeerSessionIPv4Address')) {
+ $Object.BgpSessionPeerSessionIPv4Address = $BgpSessionPeerSessionIPv4Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPeerSessionIPv6Address')) {
+ $Object.BgpSessionPeerSessionIPv6Address = $BgpSessionPeerSessionIPv6Address
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPrefixV4')) {
+ $Object.BgpSessionPrefixV4 = $BgpSessionPrefixV4
+ }
+ if ($PSBoundParameters.ContainsKey('BgpSessionPrefixV6')) {
+ $Object.BgpSessionPrefixV6 = $BgpSessionPrefixV6
+ }
+ if ($PSBoundParameters.ContainsKey('ConnectionIdentifier')) {
+ $Object.ConnectionIdentifier = $ConnectionIdentifier
+ }
+ if ($PSBoundParameters.ContainsKey('PeeringDbFacilityId')) {
+ $Object.PeeringDbFacilityId = $PeeringDbFacilityId
+ }
+ return $Object
+ }
+}
+
diff --git a/src/Peering/examples/Get-AzPeering.md b/src/Peering/examples/Get-AzPeering.md
new file mode 100644
index 000000000000..7605f1dade4d
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeering.md
@@ -0,0 +1,33 @@
+### Example 1: List all peerings
+```powershell
+ Get-AzPeering
+```
+
+```output
+Name SkuName Kind PeeringLocation ProvisioningState Location
+---- ------- ---- --------------- ----------------- --------
+DemoComp1 Premium_Direct_Free Direct Dallas Succeeded South Central US
+DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
+TestEdgeZone Premium_Direct_Free Direct Atlanta Succeeded East US 2
+MapsIxRs Premium_Direct_Free Direct Ashburn Succeeded East US
+DemoMapsConfig Premium_Direct_Free Direct Seattle Succeeded West US 2
+testexchange Basic_Exchange_Free Exchange Amsterdam Succeeded West Europe
+TestPeer1 Basic_Direct_Free Direct Amsterdam Succeeded West Europe
+test1 Basic_Direct_Free Direct Athens Succeeded France Central
+```
+
+List all peerings in subscription
+
+### Example 2: Get specific peering by name and resource group
+```powershell
+Get-AzPeering -Name DemoPeering -ResourceGroupName DemoRG
+```
+
+```output
+Name SkuName Kind PeeringLocation ProvisioningState Location
+---- ------- ---- --------------- ----------------- --------
+DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
+```
+
+Get a specific peering by resource group and name
+
diff --git a/src/Peering/examples/Get-AzPeeringAsn.md b/src/Peering/examples/Get-AzPeeringAsn.md
new file mode 100644
index 000000000000..67d0cc680504
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringAsn.md
@@ -0,0 +1,26 @@
+### Example 1: List PeerAsns
+```powershell
+Get-AzPeeringAsn
+```
+
+```output
+Name PeerName PropertiesPeerAsn ValidationState PeerContactDetail
+---- -------- ----------------- --------------- -----------------
+ContosoEdgeTest Contoso 65000 Approved {{…}}
+
+```
+
+List all the peer asns under subscription
+
+### Example 2: Get Specific PeerAsn
+```powershell
+Get-AzPeeringAsn -Name ContosoEdgeTest
+```
+
+```output
+Name PeerName PropertiesPeerAsn ValidationState PeerContactDetail
+---- -------- ----------------- --------------- -----------------
+ContosoEdgeTest Contoso 65000 Approved {{…}}
+```
+
+Get peer asn by name
\ No newline at end of file
diff --git a/src/Peering/examples/Get-AzPeeringCdnPrefix.md b/src/Peering/examples/Get-AzPeeringCdnPrefix.md
new file mode 100644
index 000000000000..f3ed2b2e92a1
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringCdnPrefix.md
@@ -0,0 +1,19 @@
+### Example 1: Get Cdn prefixes
+```powershell
+Get-AzPeeringCdnPrefix -PeeringLocation Seattle
+```
+
+```output
+Prefix AzureRegion AzureService IsPrimaryRegion BgpCommunity
+------ ----------- ------------ --------------- ------------
+20.157.110.0/24 West US 2 AzureCompute True 8069:51026
+20.157.118.0/24 West US 2 AzureCompute True 8069:51026
+20.157.125.0/24 West US 2 AzureCompute True 8069:51026
+20.157.180.0/24 West US 2 AzureStorage True 8069:52026
+20.157.25.0/24 West US 2 AzureCompute True 8069:51026
+20.157.50.0/23 West US 2 AzureStorage True 8069:52026
+20.47.120.0/23 West US 2 AzureCompute True 8069:51026
+20.47.62.0/23 West US 2 AzureStorage True 8069:52026
+```
+
+Get all cdn prefixes for subscription
diff --git a/src/Peering/examples/Get-AzPeeringConnectionMonitorTest.md b/src/Peering/examples/Get-AzPeeringConnectionMonitorTest.md
new file mode 100644
index 000000000000..56053654b293
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringConnectionMonitorTest.md
@@ -0,0 +1,27 @@
+### Example 1: Lists all connection monitor tests
+```powershell
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest
+```
+
+```output
+SourceAgent Destination DestinationPort TestFrequency Sucessful ProvisioningState
+----------- ----------- --------------- ------------- --------- -----------------
+Agent 1 1.1.1.1 80 30 True Succeeded
+Agent 2 8.8.8.8 80 30 True Succeeded
+```
+
+Lists all connection monitor test objects
+
+### Example 2: Get single connection monitor test
+```powershell
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest -Name TestName
+```
+
+```output
+SourceAgent Destination DestinationPort TestFrequency Sucessful ProvisioningState
+----------- ----------- --------------- ------------- --------- -----------------
+Agent 1 1.1.1.1 80 30 True Succeeded
+```
+
+Gets a single connection monitor test
+
diff --git a/src/Peering/examples/Get-AzPeeringLegacy.md b/src/Peering/examples/Get-AzPeeringLegacy.md
new file mode 100644
index 000000000000..542fe985425e
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringLegacy.md
@@ -0,0 +1,15 @@
+### Example 1: Gets legacy peering object
+```powershell
+Get-AzPeeringLegacy -Kind Direct -PeeringLocation Seattle
+```
+
+```output
+Name SkuName Kind PeeringLocation ProvisioningState Location
+---- ------- ---- --------------- ----------------- --------
+DemoComp1 Premium_Direct_Free Direct Dallas Succeeded South Central US
+DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
+TestEdgeZone Premium_Direct_Free Direct Atlanta Succeeded East US 2
+```
+
+Gets legacy peering object
+
diff --git a/src/Peering/examples/Get-AzPeeringLocation.md b/src/Peering/examples/Get-AzPeeringLocation.md
new file mode 100644
index 000000000000..f0dbb3574d60
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringLocation.md
@@ -0,0 +1,21 @@
+### Example 1: Get all direct peering locations
+```powershell
+Get-AzPeeringLocation -Kind Direct
+```
+
+```output
+Get-AzPeeringLocation -Kind Direct
+
+Name Country AzureRegion Kind
+---- ------- ----------- ----
+Amsterdam NL West Europe Direct
+Ashburn US East US Direct
+Athens GR France Central Direct
+Atlanta US East US 2 Direct
+Auckland NZ Australia East Direct
+Barcelona ES France Central Direct
+Berlin DE West Europe Direct
+...
+```
+
+Gets all peering locations for direct peers
\ No newline at end of file
diff --git a/src/Peering/examples/Get-AzPeeringReceivedRoute.md b/src/Peering/examples/Get-AzPeeringReceivedRoute.md
new file mode 100644
index 000000000000..361226fa518a
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringReceivedRoute.md
@@ -0,0 +1,46 @@
+### Example 1: Get all received routes for a specific peering
+```powershell
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG
+```
+
+```output
+AsPath NextHop OriginAsValidationState Prefix ReceivedTimestamp RpkiValidationState TrustAnchor
+------ ------- ----------------------- ------ ----------------- ------------------- -----------
+7018 13335 12.90.152.69 Valid 1.0.0.0/24 2022-12-05T11:51:51.2062620Z Valid None
+7018 13335 12.90.152.69 Valid 1.1.1.0/24 2022-12-05T11:51:51.2062620Z Valid None
+7018 4837 4808 12.90.152.69 Valid 1.119.192.0/21 2021-12-07T05:21:11.7043790Z Unknown None
+7018 4837 4808 12.90.152.69 Valid 1.119.200.0/22 2021-12-07T05:21:11.7043790Z Unknown None
+7018 4837 4808 59034 12.90.152.69 Valid 1.119.204.0/24 2021-12-07T05:21:13.7045170Z Unknown None
+7018 9680 9680 3462 12.90.152.69 Valid 1.160.0.0/12 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.160.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.161.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.162.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.163.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 15169 396982 12.90.152.69 Unknown 1.179.112.0/20 2021-12-07T05:21:16.7056160Z Unknown None
+7018 9680 9680 3462 12.90.152.69 Valid 1.164.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.165.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.166.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.167.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+...
+```
+
+Gets all the received routes for a specific peering
+
+### Example 2: Filter received routes based on optional parameters
+```powershell
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG -AsPath "7018 9680 9680 3462"
+```
+
+```output
+AsPath NextHop OriginAsValidationState Prefix ReceivedTimestamp RpkiValidationState TrustAnchor
+------ ------- ----------------------- ------ ----------------- ------------------- -----------
+7018 9680 9680 3462 12.90.152.69 Valid 1.160.0.0/12 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.160.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.161.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.162.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.163.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+7018 9680 9680 3462 12.90.152.69 Valid 1.164.0.0/16 2022-11-29T07:46:45.2062680Z Valid None
+...
+```
+
+Gets all received routes of a peering with a specific AsPath
diff --git a/src/Peering/examples/Get-AzPeeringRegisteredAsn.md b/src/Peering/examples/Get-AzPeeringRegisteredAsn.md
new file mode 100644
index 000000000000..0304a5632e38
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringRegisteredAsn.md
@@ -0,0 +1,28 @@
+### Example 1: List all registered asns for peering
+```powershell
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo
+```
+
+```output
+Name Asn PeeringServicePrefixKey ProvisioningState
+---- --- ----------------------- -----------------
+fgfg 6500 767c9f30-7388-49ef-ba8e-e2d16d1c08e4 Succeeded
+homedepottest 65000 32259ee0-ea01-495e-8279-06c24ef7aae0 Succeeded
+JonOrmondTest 62540 e3f552c5-909e-434b-8fab-93e524a1aeed Succeeded
+```
+
+Lists all registered asn's for a peering
+
+### Example 2: Get specific registered asn for peering
+```powershell
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Name fgfg
+```
+
+```output
+Name Asn PeeringServicePrefixKey ProvisioningState
+---- --- ----------------------- -----------------
+fgfg 6500 767c9f30-7388-49ef-ba8e-e2d16d1c08e4 Succeeded
+```
+
+Gets a specific registered asn for a peering by name
+
diff --git a/src/Peering/examples/Get-AzPeeringRegisteredPrefix.md b/src/Peering/examples/Get-AzPeeringRegisteredPrefix.md
new file mode 100644
index 000000000000..71206ce88957
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringRegisteredPrefix.md
@@ -0,0 +1,30 @@
+### Example 1: List all registered prefixes for a peering
+```powershell
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+```
+
+```output
+Name Prefix PeeringServicePrefixKey PrefixValidationState ProvisioningState
+---- ------ ----------------------- --------------------- -----------------
+accessibilityTesting1 240.0.0.0/24 f5947454-80e3-4ce5-bcb3-2501537b6952 Failed Succeeded
+accessibilityTesting2 240.0.1.0/24 249aa0dd-6177-4105-94fe-dfefcbf5ab48 Failed Succeeded
+accessibilityTesting3 240.0.2.0/24 4fb59e9e-d4eb-4847-b2ad-9939edda750b Failed Succeeded
+accessibilityTesting4 240.0.4.0/24 b725f16c-759b-4144-93ed-ed4eb89cb8f7 Failed Succeeded
+accessibilityTesting5 240.0.3.0/24 bb1262ca-0b31-45f3-a301-105b0615b21c Failed Succeeded
+```
+
+List all registered prefixes
+
+### Example 2: Get specific registered prefix for a peering
+```powershell
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG -Name accessibilityTesting1
+```
+
+```output
+Name Prefix PeeringServicePrefixKey PrefixValidationState ProvisioningState
+---- ------ ----------------------- --------------------- -----------------
+accessibilityTesting1 240.0.0.0/24 f5947454-80e3-4ce5-bcb3-2501537b6952 Failed Succeeded
+```
+
+Get a specific registered prefix by name
+
diff --git a/src/Peering/examples/Get-AzPeeringRpUnbilledPrefix.md b/src/Peering/examples/Get-AzPeeringRpUnbilledPrefix.md
new file mode 100644
index 000000000000..25a882591ae6
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringRpUnbilledPrefix.md
@@ -0,0 +1,15 @@
+### Example 1: List all unbilled prefixes for a peering
+```powershell
+Get-AzPeeringRpUnbilledPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+```
+
+```output
+Prefix AzureRegion PeerASN
+------ ----------- -------
+2.16.0.0/13 West US 2 65010
+23.0.0.0/12 West US 2 65010
+...
+```
+
+Lists all the unbilled prefixes for a peering
+
diff --git a/src/Peering/examples/Get-AzPeeringService.md b/src/Peering/examples/Get-AzPeeringService.md
new file mode 100644
index 000000000000..76231167217b
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringService.md
@@ -0,0 +1,53 @@
+### Example 1: List all peering services under subscription
+```powershell
+Get-AzPeeringService
+```
+
+```output
+Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
+---- ----------------- ---------------------- -------- ----------------- --------
+TestPrefixForAtlanta DemoRG Georgia MicrosoftEdge Succeeded East US 2
+TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
+TestExtension2 DemoRG Virginia MicrosoftEdge Succeeded East US
+DemoPeeringServiceInterCloudLondon DemoRG London InterCloud Succeeded UK South
+DRTestInterCloud DemoRG Ile-de-France InterCloud Succeeded UK South
+Gaurav Thareja DemoRG Ile-de-France InterCloud Succeeded UK South
+TestDRInterCloudZurich DemoRG Zurich InterCloud Succeeded France Central
+DRTest DemoRG Ile-de-France InterCloud Succeeded France Central
+```
+
+Lists all peering services under default subscription
+
+### Example 2: List all peering services under a specific resource group
+```powershell
+Get-AzPeeringService -ResourceGroupName DemoRG
+```
+
+```output
+Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
+---- ----------------- ---------------------- -------- ----------------- --------
+TestPrefixForAtlanta DemoRG Georgia MicrosoftEdge Succeeded East US 2
+TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
+TestExtension2 DemoRG Virginia MicrosoftEdge Succeeded East US
+DemoPeeringServiceInterCloudLondon DemoRG London InterCloud Succeeded UK South
+DRTestInterCloud DemoRG Ile-de-France InterCloud Succeeded UK South
+Gaurav Thareja DemoRG Ile-de-France InterCloud Succeeded UK South
+TestDRInterCloudZurich DemoRG Zurich InterCloud Succeeded France Central
+DRTest DemoRG Ile-de-France InterCloud Succeeded France Central
+```
+
+Lists all the peering services under a resource group
+
+
+### Example 3: List all peering services under a specific resource group
+```powershell
+Get-AzPeeringService -ResourceGroupName DemoRG -Name TestExtension
+```
+
+```output
+Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
+---- ----------------- ---------------------- -------- ----------------- --------
+TestExtension DemoRG Virginia MicrosoftEdge Succeeded East US
+```
+
+Gets a peering service with matching name and resource group
\ No newline at end of file
diff --git a/src/Peering/examples/Get-AzPeeringServiceCountry.md b/src/Peering/examples/Get-AzPeeringServiceCountry.md
new file mode 100644
index 000000000000..68a570159682
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringServiceCountry.md
@@ -0,0 +1,27 @@
+### Example 1: Lists all the peering service countries
+```powershell
+Get-AzPeeringServiceCountry
+```
+
+```output
+Name
+----
+Australia
+Belgium
+Brazil
+Canada
+Denmark
+Finland
+France
+Germany
+Hong Kong
+Japan
+Kenya
+Korea, South
+Malaysia
+Netherlands
+New Zealand
+...
+```
+
+Lists the countries available for peering service.
diff --git a/src/Peering/examples/Get-AzPeeringServiceLocation.md b/src/Peering/examples/Get-AzPeeringServiceLocation.md
new file mode 100644
index 000000000000..b20d9f58120b
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringServiceLocation.md
@@ -0,0 +1,59 @@
+### Example 1: List all peering service locations
+```powershell
+Get-AzPeeringServiceLocation
+```
+
+```output
+Name State Country AzureRegion
+---- ----- ------- -----------
+Obwalden Obwalden Switzerland France Central
+Sankt Gallen Sankt Gallen Switzerland France Central
+Schaffhausen Schaffhausen Switzerland France Central
+Schwyz Schwyz Switzerland France Central
+Solothurn Solothurn Switzerland France Central
+Thurgau Thurgau Switzerland France Central
+Ticino Ticino Switzerland France Central
+Uri Uri Switzerland France Central
+Valais Valais Switzerland France Central
+Vaud Vaud Switzerland France Central
+Zug Zug Switzerland France Central
+Zurich Zurich Switzerland France Central
+Aberdeen City Aberdeen City United Kingdom UK West
+Angus Angus United Kingdom UK West
+Antrim and Newtownabbey Antrim and Newtownabbey United Kingdom North Europe
+Ards and North Down Ards and North Down United Kingdom North Europe
+Argyll and Bute Argyll and Bute United Kingdom North Europe
+Armagh, Banbridge and Craigavon Armagh, Banbridge and Craigavon United Kingdom North Europe
+Barking and Dagenham Barking and Dagenham United Kingdom UK South
+...
+```
+
+Retrieves all peering service locations
+
+### Example 2: List all peering service
+```powershell
+Get-AzPeeringServiceLocation -Country Japan
+```
+
+```output
+Name State Country AzureRegion
+---- ----- ------- -----------
+Aichi Aichi Japan Japan West
+Akita Akita Japan Japan East
+Aomori Aomori Japan Japan East
+Chiba Chiba Japan Japan East
+Ehime Ehime Japan Japan West
+Fukui Fukui Japan Japan West
+Fukuoka Fukuoka Japan Japan West
+Fukushima Fukushima Japan Japan East
+Gifu Gifu Japan Japan West
+Gunma Gunma Japan Japan East
+Hiroshima Hiroshima Japan Japan West
+Hyogo Hyogo Japan Japan West
+Ibaraki Ibaraki Japan Japan East
+Ishikawa Ishikawa Japan Japan West
+...
+```
+
+Retrieves all peering service locations for a specific country
+
diff --git a/src/Peering/examples/Get-AzPeeringServicePrefix.md b/src/Peering/examples/Get-AzPeeringServicePrefix.md
new file mode 100644
index 000000000000..fb1839f724ff
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringServicePrefix.md
@@ -0,0 +1,27 @@
+### Example 1: List all peering service prefixes
+```powershell
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
+```
+
+```output
+Name Prefix Key PrefixValidationState LearnedType ProvisioningState
+---- ------ --- --------------------- ----------- -----------------
+TestPrefix 91.194.255.0/24 6a7f0d42-e49c-4eea-a930-280610671c3f Failed None Succeeded
+TestPrefix2 240.0.0.0/24 Failed None Succeeded
+```
+
+Lists all peering service prefixes for the peering service
+
+### Example 2: Get specific peering service prefix
+```powershell
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -Name TestPrefix
+```
+
+```output
+Name Prefix Key PrefixValidationState LearnedType ProvisioningState
+---- ------ --- --------------------- ----------- -----------------
+TestPrefix 91.194.255.0/24 6a7f0d42-e49c-4eea-a930-280610671c3f Failed None Succeeded
+```
+
+Gets a specific peering service prefix
+
diff --git a/src/Peering/examples/Get-AzPeeringServiceProvider.md b/src/Peering/examples/Get-AzPeeringServiceProvider.md
new file mode 100644
index 000000000000..c538bad79634
--- /dev/null
+++ b/src/Peering/examples/Get-AzPeeringServiceProvider.md
@@ -0,0 +1,27 @@
+### Example 1: List all peering service providers
+```powershell
+Get-AzPeeringServiceProvider
+```
+
+```output
+Name PeeringLocation ServiceProviderName
+---- --------------- -------------------
+IIJ {Osaka, Tokyo} IIJ
+NTTCom {Osaka, Tokyo} NTTCom
+Kordia Limited {Auckland, Sydney} Kordia Limited
+Liquid Telecommunications Ltd {Cape Town, Johannesburg, Nairobi} Liquid Telecommunications Ltd
+InterCloud {london, Paris, Zurich, Geneva} InterCloud
+Computer Concepts Limited {Auckland} Computer Concepts Limited
+Singnet {singapore} Singnet
+NTT Communications - Flexible InterConnect {Osaka, Tokyo} NTT Communications - Flexible InterConnect
+NAPAfrica {Johannesburg, Cape Town} NAPAfrica
+Vocusgroup NZ {Sydney, Auckland} Vocusgroup NZ
+CMC NETWORKS {Johannesburg, Nairobi, cape Town} CMC NETWORKS
+MainOne {Lisbon, Lagos} MainOne
+Swisscom Switzerland Ltd {Geneva, Zurich} Swisscom Switzerland Ltd
+DE-CIX {Frankfurt, Marseille, Newark, Madrid…} DE-CIX
+Lumen Technologies {denver, los Angeles} Lumen Technologies
+Colt Technology Services {Amsterdam, Barcelona, Berlin, Frankfurt…} Colt Technology Services
+```
+
+Lists all peering service providers
diff --git a/src/Peering/examples/Initialize-AzPeeringServiceConnectionMonitor.md b/src/Peering/examples/Initialize-AzPeeringServiceConnectionMonitor.md
new file mode 100644
index 000000000000..83cffda30bfb
--- /dev/null
+++ b/src/Peering/examples/Initialize-AzPeeringServiceConnectionMonitor.md
@@ -0,0 +1,7 @@
+### Example 1: Initialize connection monitor functionality
+```powershell
+Initialize-AzPeeringServiceConnectionMonitor
+```
+
+Initialize connection monitor functionality
+
diff --git a/src/Peering/examples/New-AzPeering.md b/src/Peering/examples/New-AzPeering.md
new file mode 100644
index 000000000000..92611b124e0a
--- /dev/null
+++ b/src/Peering/examples/New-AzPeering.md
@@ -0,0 +1,15 @@
+### Example 1: Create a new direct peering object
+```powershell
+$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ...
+$directConnections = ,$connection1
+New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited
+```
+
+```output
+Name SkuName Kind PeeringLocation ProvisioningState Location
+---- ------- ---- --------------- ----------------- --------
+TestPeering Premium_Direct_Unlimited Direct Dallas Succeeded South Central US
+```
+
+Create a new direct peering object
+
diff --git a/src/Peering/examples/New-AzPeeringAsn.md b/src/Peering/examples/New-AzPeeringAsn.md
new file mode 100644
index 000000000000..ed0fc5314bf7
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringAsn.md
@@ -0,0 +1,15 @@
+### Example 1: Create a new peering asn
+```powershell
+$contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc"
+$PeerContactList = ,$contactDetail
+New-AzPeeringAsn -Name PsTestAsn -PeerAsn 65001 -PeerContactDetail $PeerContactList -PeerName DemoPeering
+```
+
+```output
+Name PeerName PropertiesPeerAsn ValidationState PeerContactDetail
+---- -------- ----------------- --------------- -----------------
+PsTestAsn DemoPeering 65001 Pending {{…
+```
+
+Create a new peering asn with the specified properties
+
diff --git a/src/Peering/examples/New-AzPeeringCheckServiceProviderAvailabilityInputObject.md b/src/Peering/examples/New-AzPeeringCheckServiceProviderAvailabilityInputObject.md
new file mode 100644
index 000000000000..052651e8ff92
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringCheckServiceProviderAvailabilityInputObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create a check service provider availability object
+```powershell
+New-AzPeeringCheckServiceProviderAvailabilityInputObject -PeeringServiceLocation Osaka -PeeringServiceProvider IIJ
+```
+
+```output
+PeeringServiceLocation PeeringServiceProvider
+---------------------- ----------------------
+Osaka IIJ
+```
+
+Creates a CheckServiceProviderAvailabilityInputObject with the specified location and provider and stores it in memory
diff --git a/src/Peering/examples/New-AzPeeringConnectionMonitorTest.md b/src/Peering/examples/New-AzPeeringConnectionMonitorTest.md
new file mode 100644
index 000000000000..1a5345898975
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringConnectionMonitorTest.md
@@ -0,0 +1,13 @@
+### Example 1: Create a new connection monitor test
+```powershell
+New-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG
+```
+
+```output
+SourceAgent Destination DestinationPort TestFrequency Sucessful ProvisioningState
+----------- ----------- --------------- ------------- --------- -----------------
+Agent 1 1.1.1.1 80 30 True Succeeded
+```
+
+Creates a connection monitor test for the peering service
+
diff --git a/src/Peering/examples/New-AzPeeringContactDetailObject.md b/src/Peering/examples/New-AzPeeringContactDetailObject.md
new file mode 100644
index 000000000000..f7de3ccfb7ce
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringContactDetailObject.md
@@ -0,0 +1,13 @@
+### Example 1: Create a Contact Detail object
+```powershell
+New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc"
+```
+
+```output
+Email Phone Role
+----- ----- ----
+abc@xyz.com 1234567890 Noc
+```
+
+Creates a ContactDetail object with the specified email phone and role stores it in memory
+
diff --git a/src/Peering/examples/New-AzPeeringDirectConnectionObject.md b/src/Peering/examples/New-AzPeeringDirectConnectionObject.md
new file mode 100644
index 000000000000..6111c9a7ea49
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringDirectConnectionObject.md
@@ -0,0 +1,14 @@
+### Example 1: Create a direct connection object
+```powershell
+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]
+--------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- ... -------------
+10000 c111111111111 PendingApproval 82
+
+```
+
+Creates an in-memory direct connection object
+
diff --git a/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md b/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md
new file mode 100644
index 000000000000..9f16da1f1357
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md
@@ -0,0 +1,13 @@
+### Example 1: Create an exchange connection object
+```powershell
+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]
+-------------------- --------------- ------------ ------------------- ... -------------
+c111111111111 82
+```
+
+Create a exchange connection object in memory
+
diff --git a/src/Peering/examples/New-AzPeeringRegisteredAsn.md b/src/Peering/examples/New-AzPeeringRegisteredAsn.md
new file mode 100644
index 000000000000..3423d0379082
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringRegisteredAsn.md
@@ -0,0 +1,12 @@
+### Example 1: Create registered asn
+```powershell
+New-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001
+```
+
+```output
+Name Asn PeeringServicePrefixKey ProvisioningState
+---- --- ----------------------- -----------------
+TestAsn 65001 45a8db73-4b7c-4800-bb0f-d304a747d6f1 Succeeded
+```
+
+Create a new registered asn for a peering
diff --git a/src/Peering/examples/New-AzPeeringRegisteredPrefix.md b/src/Peering/examples/New-AzPeeringRegisteredPrefix.md
new file mode 100644
index 000000000000..579a746d213c
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringRegisteredPrefix.md
@@ -0,0 +1,13 @@
+### Example 1: Create a new registered prefix
+```powershell
+New-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24
+```
+
+```output
+Name Prefix PeeringServicePrefixKey PrefixValidationState ProvisioningState
+---- ------ ----------------------- --------------------- -----------------
+accessibilityTesting6 240.0.5.0/24 f5947454-80e3-4ce5-bcb3-2501537b6952 Pending Updating
+```
+
+Create a new registered prefix object
+
diff --git a/src/Peering/examples/New-AzPeeringService.md b/src/Peering/examples/New-AzPeeringService.md
new file mode 100644
index 000000000000..7271f100212a
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringService.md
@@ -0,0 +1,12 @@
+### Example 1: Create a new peering service
+```powershell
+New-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG -Location "East US 2" -PeeringServiceLocation Georgia -PeeringServiceProvider MicrosoftEdge -ProviderPrimaryPeeringLocation Atlanta
+```
+
+```output
+Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
+---- ----------------- ---------------------- -------- ----------------- --------
+TestPeeringService DemoRG Georgia MicrosoftEdge ProvisioningStarted East US 2
+```
+
+Create a new peering service in the resource group
\ No newline at end of file
diff --git a/src/Peering/examples/New-AzPeeringServicePrefix.md b/src/Peering/examples/New-AzPeeringServicePrefix.md
new file mode 100644
index 000000000000..705666ec214f
--- /dev/null
+++ b/src/Peering/examples/New-AzPeeringServicePrefix.md
@@ -0,0 +1,13 @@
+### Example 1: Create Peering service prefix
+```powershell
+New-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -PeeringServicePrefixKey 6a7f0d42-e49c-4eea-a930-280610671c3f -Prefix 91.194.255.0/24
+```
+
+```output
+Name Prefix Key PrefixValidationState LearnedType ProvisioningState
+---- ------ --- --------------------- ----------- -----------------
+TestPrefix 91.194.255.0/24 6a7f0d42-e49c-4eea-a930-280610671c3f Failed None Succeeded
+```
+
+Create a peering service prefix
+
diff --git a/src/Peering/examples/Remove-AzPeering.md b/src/Peering/examples/Remove-AzPeering.md
new file mode 100644
index 000000000000..69b391d69500
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeering.md
@@ -0,0 +1,7 @@
+### Example 1: Remove peering
+```powershell
+Remove-AzPeering -Name TestPeering -ResourceGroupName DemoRG
+```
+
+Remove a peering from the given resource group
+
diff --git a/src/Peering/examples/Remove-AzPeeringAsn.md b/src/Peering/examples/Remove-AzPeeringAsn.md
new file mode 100644
index 000000000000..a4bbb4752c51
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringAsn.md
@@ -0,0 +1,7 @@
+### Example 1: Remove peer asn
+```powershell
+Remove-AzPeeringAsn -Name PsTestAsn
+```
+
+Removes peer asn with the name specified
+
diff --git a/src/Peering/examples/Remove-AzPeeringConnectionMonitorTest.md b/src/Peering/examples/Remove-AzPeeringConnectionMonitorTest.md
new file mode 100644
index 000000000000..68da517e77c5
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringConnectionMonitorTest.md
@@ -0,0 +1,7 @@
+### Example 1: Remove connection monitor test
+```powershell
+Remove-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
+```
+
+Removes the given connection monitor test from the peering service
+
diff --git a/src/Peering/examples/Remove-AzPeeringRegisteredAsn.md b/src/Peering/examples/Remove-AzPeeringRegisteredAsn.md
new file mode 100644
index 000000000000..7ade89312b31
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringRegisteredAsn.md
@@ -0,0 +1,6 @@
+### Example 1: Remove a registered asn from the peering
+```powershell
+Remove-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo
+```
+
+Remove a registered asn from the peering object
diff --git a/src/Peering/examples/Remove-AzPeeringRegisteredPrefix.md b/src/Peering/examples/Remove-AzPeeringRegisteredPrefix.md
new file mode 100644
index 000000000000..1bab58bdb993
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringRegisteredPrefix.md
@@ -0,0 +1,6 @@
+### Example 1: Remove registered prefix
+```powershell
+Remove-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG
+```
+
+Removes the specified registered prefix from peering
diff --git a/src/Peering/examples/Remove-AzPeeringService.md b/src/Peering/examples/Remove-AzPeeringService.md
new file mode 100644
index 000000000000..a252469c7ba5
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringService.md
@@ -0,0 +1,7 @@
+### Example 1: Remove peering service
+```powershell
+Remove-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG
+```
+
+Removes a peering service from the given resource group
+
diff --git a/src/Peering/examples/Remove-AzPeeringServicePrefix.md b/src/Peering/examples/Remove-AzPeeringServicePrefix.md
new file mode 100644
index 000000000000..6a01f19b0716
--- /dev/null
+++ b/src/Peering/examples/Remove-AzPeeringServicePrefix.md
@@ -0,0 +1,7 @@
+### Example 1: Remove peering service prefix
+```powershell
+Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG
+```
+
+Removes peering service prefix from peering
+
diff --git a/src/Peering/examples/Start-AzPeeringInvokeLookingGlass.md b/src/Peering/examples/Start-AzPeeringInvokeLookingGlass.md
new file mode 100644
index 000000000000..99c6f8129959
--- /dev/null
+++ b/src/Peering/examples/Start-AzPeeringInvokeLookingGlass.md
@@ -0,0 +1,13 @@
+### Example 1: Invoke looking glass command
+```powershell
+Start-AzPeeringInvokeLookingGlass -Command Ping -DestinationIp 1.1.1.1 -SourceLocation Seattle -SourceType EdgeSite
+```
+
+```output
+Command Output
+------- ------
+Ping PING 1.1.1.1 (1.1.1.1): 56 data bytes…
+```
+
+Invoke the given looking glass command
+
diff --git a/src/Peering/examples/Test-AzPeeringRegisteredPrefix.md b/src/Peering/examples/Test-AzPeeringRegisteredPrefix.md
new file mode 100644
index 000000000000..989796889dbd
--- /dev/null
+++ b/src/Peering/examples/Test-AzPeeringRegisteredPrefix.md
@@ -0,0 +1,13 @@
+### Example 1: Test registered prefix
+```powershell
+Test-AzPeeringRegisteredPrefix -Name accessibilityTesting2 -PeeringName DemoPeering -ResourceGroupName DemoRG
+```
+
+```output
+Name Prefix PeeringServicePrefixKey PrefixValidationState ProvisioningState
+---- ------ ----------------------- --------------------- -----------------
+accessibilityTesting2 240.0.1.0/24 249aa0dd-6177-4105-94fe-dfefcbf5ab48 Pending Succeeded
+```
+
+Tests the validity of the given registered prefix (shown in prefix validation state)
+
diff --git a/src/Peering/examples/Test-AzPeeringServiceProviderAvailability.md b/src/Peering/examples/Test-AzPeeringServiceProviderAvailability.md
new file mode 100644
index 000000000000..6048b2f5140e
--- /dev/null
+++ b/src/Peering/examples/Test-AzPeeringServiceProviderAvailability.md
@@ -0,0 +1,11 @@
+### Example 1: Check if provider is available at a location
+```powershell
+$providerAvailability = New-AzPeeringCheckServiceProviderAvailabilityInputObject -PeeringServiceLocation Osaka -PeeringServiceProvider IIJ
+Test-AzPeeringServiceProviderAvailability -CheckServiceProviderAvailabilityInput $providerAvailability
+```
+
+```output
+"Available"
+```
+
+Check whether the given provider is available at the given location
diff --git a/src/Peering/examples/Update-AzPeering.md b/src/Peering/examples/Update-AzPeering.md
new file mode 100644
index 000000000000..3b6e429a0cf8
--- /dev/null
+++ b/src/Peering/examples/Update-AzPeering.md
@@ -0,0 +1,14 @@
+### Example 1: Update peering tags
+```powershell
+$tags=@{hello='world'}
+Update-AzPeering -Name DemoPeering -ResourceGroupName DemoRG -Tag $tags
+```
+
+```output
+Name SkuName Kind PeeringLocation ProvisioningState Location
+---- ------- ---- --------------- ----------------- --------
+DemoPeering Premium_Direct_Free Direct Dallas Succeeded South Central US
+```
+
+Updates the specified peering's tags
+
diff --git a/src/Peering/examples/Update-AzPeeringService.md b/src/Peering/examples/Update-AzPeeringService.md
new file mode 100644
index 000000000000..5ca9ffb8e113
--- /dev/null
+++ b/src/Peering/examples/Update-AzPeeringService.md
@@ -0,0 +1,13 @@
+### Example 1: Update peering service tags
+```powershell
+$tags=@{hello='world'}
+Update-AzPeeringService -Name DRTestInterCloud -ResourceGroupName DemoRG -Tag $tags
+```
+
+```output
+Name ResourceGroupName PeeringServiceLocation Provider ProvisioningState Location
+---- ----------------- ---------------------- -------- ----------------- --------
+DRTestInterCloud DemoRG Ile-de-France InterCloud Succeeded UK South
+```
+
+Updates the peering service tags
\ No newline at end of file
diff --git a/src/Peering/export-surface.ps1 b/src/Peering/export-surface.ps1
new file mode 100644
index 000000000000..097cb4e2aafd
--- /dev/null
+++ b/src/Peering/export-surface.ps1
@@ -0,0 +1,41 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.Peering.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+$null = Import-Module -Name $dll
+
+$moduleName = 'Az.Peering'
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+$resourcesFolder = Join-Path $PSScriptRoot 'resources'
+
+Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'"
+
+Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'"
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
\ No newline at end of file
diff --git a/src/Peering/exports/Get-AzPeering.ps1 b/src/Peering/exports/Get-AzPeering.ps1
new file mode 100644
index 000000000000..185727711122
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeering.ps1
@@ -0,0 +1,210 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing peering with the specified name under the given subscription and resource group.
+.Description
+Gets an existing peering with the specified name under the given subscription and resource group.
+.Example
+ Get-AzPeering
+.Example
+Get-AzPeering -Name DemoPeering -ResourceGroupName DemoRG
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeering
+#>
+function Get-AzPeering {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeeringName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeering_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeering_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeering_List';
+ List1 = 'Az.Peering.private\Get-AzPeering_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringAsn.ps1 b/src/Peering/exports/Get-AzPeeringAsn.ps1
new file mode 100644
index 000000000000..c1b71f74afb5
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringAsn.ps1
@@ -0,0 +1,201 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets the peer ASN with the specified name under the given subscription.
+.Description
+Gets the peer ASN with the specified name under the given subscription.
+.Example
+Get-AzPeeringAsn
+.Example
+Get-AzPeeringAsn -Name ContosoEdgeTest
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringasn
+#>
+function Get-AzPeeringAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeerAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peer ASN name.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringAsn_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringAsn_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringAsn_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringCdnPrefix.ps1 b/src/Peering/exports/Get-AzPeeringCdnPrefix.ps1
new file mode 100644
index 000000000000..af9e808ca4f8
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringCdnPrefix.ps1
@@ -0,0 +1,170 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the advertised prefixes for the specified peering location
+.Description
+Lists all of the advertised prefixes for the specified peering location
+.Example
+Get-AzPeeringCdnPrefix -PeeringLocation Seattle
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ICdnPeeringPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringcdnprefix
+#>
+function Get-AzPeeringCdnPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ICdnPeeringPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The peering location.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringCdnPrefix_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringConnectionMonitorTest.ps1 b/src/Peering/exports/Get-AzPeeringConnectionMonitorTest.ps1
new file mode 100644
index 000000000000..9dae3ce9cac4
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringConnectionMonitorTest.ps1
@@ -0,0 +1,215 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Description
+Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Example
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest
+.Example
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest -Name TestName
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringconnectionmonitortest
+#>
+function Get-AzPeeringConnectionMonitorTest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ConnectionMonitorTestName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the connection monitor test
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringLegacy.ps1 b/src/Peering/exports/Get-AzPeeringLegacy.ps1
new file mode 100644
index 000000000000..a3768599a830
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringLegacy.ps1
@@ -0,0 +1,190 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the legacy peerings under the given subscription matching the specified kind and location.
+.Description
+Lists all of the legacy peerings under the given subscription matching the specified kind and location.
+.Example
+Get-AzPeeringLegacy -Kind Direct -PeeringLocation Seattle
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringlegacy
+#>
+function Get-AzPeeringLegacy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.LegacyPeeringsKind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.LegacyPeeringsKind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The location of the peering.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.Int32]
+ # The ASN number associated with a legacy peering.
+ ${Asn},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType]
+ # The direct peering type.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringLegacy_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringLocation.ps1 b/src/Peering/exports/Get-AzPeeringLocation.ps1
new file mode 100644
index 000000000000..90ba08392e9b
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringLocation.ps1
@@ -0,0 +1,178 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the available peering locations for the specified kind of peering.
+.Description
+Lists all of the available peering locations for the specified kind of peering.
+.Example
+Get-AzPeeringLocation -Kind Direct
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringLocation
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringlocation
+#>
+function Get-AzPeeringLocation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringLocation])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsKind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsKind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsDirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsDirectPeeringType]
+ # The type of direct peering.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringLocation_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringReceivedRoute.ps1 b/src/Peering/exports/Get-AzPeeringReceivedRoute.ps1
new file mode 100644
index 000000000000..ec7aa79da36e
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringReceivedRoute.ps1
@@ -0,0 +1,208 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists the prefixes received over the specified peering under the given subscription and resource group.
+.Description
+Lists the prefixes received over the specified peering under the given subscription and resource group.
+.Example
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG -AsPath "7018 9680 9680 3462"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringReceivedRoute
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringreceivedroute
+#>
+function Get-AzPeeringReceivedRoute {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringReceivedRoute])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional AS path that can be used to filter the routes.
+ ${AsPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional origin AS validation state that can be used to filter the routes.
+ ${OriginAsValidationState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional prefix that can be used to filter the routes.
+ ${Prefix},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional RPKI validation state that can be used to filter the routes.
+ ${RpkiValidationState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional page continuation token that is used in the event of paginated result.
+ ${SkipToken},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringReceivedRoute_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringRegisteredAsn.ps1 b/src/Peering/exports/Get-AzPeeringRegisteredAsn.ps1
new file mode 100644
index 000000000000..b6ef3744aa9f
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringRegisteredAsn.ps1
@@ -0,0 +1,215 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
+.Description
+Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
+.Example
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo
+.Example
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Name fgfg
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringregisteredasn
+#>
+function Get-AzPeeringRegisteredAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('RegisteredAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered ASN.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringRegisteredPrefix.ps1 b/src/Peering/exports/Get-AzPeeringRegisteredPrefix.ps1
new file mode 100644
index 000000000000..d308f0fc1cfd
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringRegisteredPrefix.ps1
@@ -0,0 +1,215 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.
+.Description
+Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.
+.Example
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG -Name accessibilityTesting1
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringregisteredprefix
+#>
+function Get-AzPeeringRegisteredPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('RegisteredPrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered prefix.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringRpUnbilledPrefix.ps1 b/src/Peering/exports/Get-AzPeeringRpUnbilledPrefix.ps1
new file mode 100644
index 000000000000..0f91bda37031
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringRpUnbilledPrefix.ps1
@@ -0,0 +1,182 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the RP unbilled prefixes for the specified peering
+.Description
+Lists all of the RP unbilled prefixes for the specified peering
+.Example
+Get-AzPeeringRpUnbilledPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IRpUnbilledPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringrpunbilledprefix
+#>
+function Get-AzPeeringRpUnbilledPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IRpUnbilledPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peering name.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The Azure resource group name.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag to enable consolidation prefixes
+ ${Consolidate},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringRpUnbilledPrefix_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringService.ps1 b/src/Peering/exports/Get-AzPeeringService.ps1
new file mode 100644
index 000000000000..105f434beca5
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringService.ps1
@@ -0,0 +1,212 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing peering service with the specified name under the given subscription and resource group.
+.Description
+Gets an existing peering service with the specified name under the given subscription and resource group.
+.Example
+Get-AzPeeringService
+.Example
+Get-AzPeeringService -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringService -ResourceGroupName DemoRG -Name TestExtension
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservice
+#>
+function Get-AzPeeringService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeeringServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringService_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringService_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringService_List';
+ List1 = 'Az.Peering.private\Get-AzPeeringService_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringServiceCountry.ps1 b/src/Peering/exports/Get-AzPeeringServiceCountry.ps1
new file mode 100644
index 000000000000..d173ec677513
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringServiceCountry.ps1
@@ -0,0 +1,164 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the available countries for peering service.
+.Description
+Lists all of the available countries for peering service.
+.Example
+Get-AzPeeringServiceCountry
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IResource
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservicecountry
+#>
+function Get-AzPeeringServiceCountry {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceCountry_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringServiceLocation.ps1 b/src/Peering/exports/Get-AzPeeringServiceLocation.ps1
new file mode 100644
index 000000000000..15ec0d68bd11
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringServiceLocation.ps1
@@ -0,0 +1,172 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the available locations for peering service.
+.Description
+Lists all of the available locations for peering service.
+.Example
+Get-AzPeeringServiceLocation
+.Example
+Get-AzPeeringServiceLocation -Country Japan
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceLocation
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservicelocation
+#>
+function Get-AzPeeringServiceLocation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceLocation])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The country of interest, in which the locations are to be present.
+ ${Country},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceLocation_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringServicePrefix.ps1 b/src/Peering/exports/Get-AzPeeringServicePrefix.ps1
new file mode 100644
index 000000000000..1f019f5fb001
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringServicePrefix.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
+.Description
+Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
+.Example
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -Name TestPrefix
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringserviceprefix
+#>
+function Get-AzPeeringServicePrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the prefix.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The properties to be expanded.
+ ${Expand},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringServicePrefix_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringServicePrefix_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringServicePrefix_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Get-AzPeeringServiceProvider.ps1 b/src/Peering/exports/Get-AzPeeringServiceProvider.ps1
new file mode 100644
index 000000000000..239f83e6d7bb
--- /dev/null
+++ b/src/Peering/exports/Get-AzPeeringServiceProvider.ps1
@@ -0,0 +1,164 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Lists all of the available peering service locations for the specified kind of peering.
+.Description
+Lists all of the available peering service locations for the specified kind of peering.
+.Example
+Get-AzPeeringServiceProvider
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceProvider
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringserviceprovider
+#>
+function Get-AzPeeringServiceProvider {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceProvider])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceProvider_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1 b/src/Peering/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1
new file mode 100644
index 000000000000..ad43859bf04b
--- /dev/null
+++ b/src/Peering/exports/Initialize-AzPeeringServiceConnectionMonitor.ps1
@@ -0,0 +1,196 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Initialize Peering Service for Connection Monitor functionality
+.Description
+Initialize Peering Service for Connection Monitor functionality
+.Example
+Initialize-AzPeeringServiceConnectionMonitor
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/initialize-azpeeringserviceconnectionmonitor
+#>
+function Initialize-AzPeeringServiceConnectionMonitor {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Initialize', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Initialize')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='InitializeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Initialize = 'Az.Peering.private\Initialize-AzPeeringServiceConnectionMonitor_Initialize';
+ InitializeViaIdentity = 'Az.Peering.private\Initialize-AzPeeringServiceConnectionMonitor_InitializeViaIdentity';
+ }
+ if (('Initialize') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeering.ps1 b/src/Peering/exports/New-AzPeering.ps1
new file mode 100644
index 000000000000..429b56f02e06
--- /dev/null
+++ b/src/Peering/exports/New-AzPeering.ps1
@@ -0,0 +1,280 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
+.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
+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
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DIRECTCONNECTION : The set of connections that constitute a direct peering.
+ [BandwidthInMbps ]: The bandwidth of the connection.
+ [BgpSessionMaxPrefixesAdvertisedV4 ]: The maximum number of prefixes advertised over the IPv4 session.
+ [BgpSessionMaxPrefixesAdvertisedV6 ]: The maximum number of prefixes advertised over the IPv6 session.
+ [BgpSessionMd5AuthenticationKey ]: The MD5 authentication key of the session.
+ [BgpSessionMicrosoftSessionIPv4Address ]: The IPv4 session address on Microsoft's end.
+ [BgpSessionMicrosoftSessionIPv6Address ]: The IPv6 session address on Microsoft's end.
+ [BgpSessionPeerSessionIPv4Address ]: The IPv4 session address on peer's end.
+ [BgpSessionPeerSessionIPv6Address ]: The IPv6 session address on peer's end.
+ [BgpSessionPrefixV4 ]: The IPv4 prefix that contains both ends' IPv4 addresses.
+ [BgpSessionPrefixV6 ]: The IPv6 prefix that contains both ends' IPv6 addresses.
+ [ConnectionIdentifier ]: The unique identifier (GUID) for the connection.
+ [PeeringDbFacilityId ]: The PeeringDB.com ID of the facility at which the connection has to be set up.
+ [SessionAddressProvider ]: The field indicating if Microsoft provides session ip addresses.
+ [UseForPeeringService ]: The flag that indicates whether or not the connection is used for peering service.
+
+EXCHANGECONNECTION : The set of connections that constitute an exchange peering.
+ [BgpSessionMaxPrefixesAdvertisedV4 ]: The maximum number of prefixes advertised over the IPv4 session.
+ [BgpSessionMaxPrefixesAdvertisedV6 ]: The maximum number of prefixes advertised over the IPv6 session.
+ [BgpSessionMd5AuthenticationKey ]: The MD5 authentication key of the session.
+ [BgpSessionMicrosoftSessionIPv4Address ]: The IPv4 session address on Microsoft's end.
+ [BgpSessionMicrosoftSessionIPv6Address ]: The IPv6 session address on Microsoft's end.
+ [BgpSessionPeerSessionIPv4Address ]: The IPv4 session address on peer's end.
+ [BgpSessionPeerSessionIPv6Address ]: The IPv6 session address on peer's end.
+ [BgpSessionPrefixV4 ]: The IPv4 prefix that contains both ends' IPv4 addresses.
+ [BgpSessionPrefixV6 ]: The IPv6 prefix that contains both ends' IPv6 addresses.
+ [ConnectionIdentifier ]: The unique identifier (GUID) for the connection.
+ [PeeringDbFacilityId ]: The PeeringDB.com ID of the facility at which the connection has to be set up.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeering
+#>
+function New-AzPeering {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeeringName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Kind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Kind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IDirectConnection[]]
+ # The set of connections that constitute a direct peering.
+ # To construct, see NOTES section for DIRECTCONNECTION properties and create a hash table.
+ ${DirectConnection},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The identifier of the referenced resource.
+ ${DirectPeerAsnId},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType]
+ # The type of direct peering.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IExchangeConnection[]]
+ # The set of connections that constitute an exchange peering.
+ # To construct, see NOTES section for EXCHANGECONNECTION properties and create a hash table.
+ ${ExchangeConnection},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The identifier of the referenced resource.
+ ${ExchangePeerAsnId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the peering.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Alias('SkuName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peering SKU.
+ ${Sku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeering_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringAsn.ps1 b/src/Peering/exports/New-AzPeeringAsn.ps1
new file mode 100644
index 000000000000..373d6d79ab4c
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringAsn.ps1
@@ -0,0 +1,202 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
+.Description
+Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
+.Example
+$contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc"
+$PeerContactList = ,$contactDetail
+New-AzPeeringAsn -Name PsTestAsn -PeerAsn 65001 -PeerContactDetail $PeerContactList -PeerName DemoPeering
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+PEERCONTACTDETAIL : The contact details of the peer.
+ [Email ]: The e-mail address of the contact.
+ [Phone ]: The phone number of the contact.
+ [Role ]: The role of the contact.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringasn
+#>
+function New-AzPeeringAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeerAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peer ASN name.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Autonomous System Number (ASN) of the peer.
+ ${PeerAsn},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IContactDetail[]]
+ # The contact details of the peer.
+ # To construct, see NOTES section for PEERCONTACTDETAIL properties and create a hash table.
+ ${PeerContactDetail},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peer.
+ ${PeerName},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringAsn_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1 b/src/Peering/exports/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
new file mode 100644
index 000000000000..b4e636176122
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringCheckServiceProviderAvailabilityInputObject.ps1
@@ -0,0 +1,119 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for CheckServiceProviderAvailabilityInput.
+.Description
+Create an in-memory object for CheckServiceProviderAvailabilityInput.
+.Example
+New-AzPeeringCheckServiceProviderAvailabilityInputObject -PeeringServiceLocation Osaka -PeeringServiceProvider IIJ
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringCheckServiceProviderAvailabilityInputObject
+#>
+function New-AzPeeringCheckServiceProviderAvailabilityInputObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.CheckServiceProviderAvailabilityInput])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # Gets or sets the peering service location.
+ ${PeeringServiceLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # Gets or sets the peering service provider.
+ ${PeeringServiceProvider}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Peering.custom\New-AzPeeringCheckServiceProviderAvailabilityInputObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringConnectionMonitorTest.ps1 b/src/Peering/exports/New-AzPeeringConnectionMonitorTest.ps1
new file mode 100644
index 000000000000..c5df9fc422b5
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringConnectionMonitorTest.ps1
@@ -0,0 +1,207 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Description
+Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Example
+New-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringconnectionmonitortest
+#>
+function New-AzPeeringConnectionMonitorTest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('ConnectionMonitorTestName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the connection monitor test
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The Connection Monitor test destination
+ ${Destination},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Connection Monitor test destination port
+ ${DestinationPort},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The Connection Monitor test source agent
+ ${SourceAgent},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Connection Monitor test frequency in seconds
+ ${TestFrequencyInSec},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringConnectionMonitorTest_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringContactDetailObject.ps1 b/src/Peering/exports/New-AzPeeringContactDetailObject.ps1
new file mode 100644
index 000000000000..1af08fa19093
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringContactDetailObject.ps1
@@ -0,0 +1,126 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ContactDetail.
+.Description
+Create an in-memory object for ContactDetail.
+.Example
+New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringContactDetailObject
+#>
+function New-AzPeeringContactDetailObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ContactDetail])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The e-mail address of the contact.
+ ${Email},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The phone number of the contact.
+ ${Phone},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Role])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Role]
+ # The role of the contact.
+ ${Role}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Peering.custom\New-AzPeeringContactDetailObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1 b/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1
new file mode 100644
index 000000000000..bd528c2f35e2
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1
@@ -0,0 +1,192 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for DirectConnection.
+.Description
+Create an in-memory object for DirectConnection.
+.Example
+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
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringDirectConnectionObject
+#>
+function New-AzPeeringDirectConnectionObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.DirectConnection])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The bandwidth of the connection.
+ ${BandwidthInMbps},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The maximum number of prefixes advertised over the IPv4 session.
+ ${BgpSessionMaxPrefixesAdvertisedV4},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The maximum number of prefixes advertised over the IPv6 session.
+ ${BgpSessionMaxPrefixesAdvertisedV6},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The MD5 authentication key of the session.
+ ${BgpSessionMd5AuthenticationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 session address on Microsoft's end.
+ ${BgpSessionMicrosoftSessionIPv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 session address on Microsoft's end.
+ ${BgpSessionMicrosoftSessionIPv6Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 session address on peer's end.
+ ${BgpSessionPeerSessionIPv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 session address on peer's end.
+ ${BgpSessionPeerSessionIPv6Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 prefix that contains both ends' IPv4 addresses.
+ ${BgpSessionPrefixV4},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 prefix that contains both ends' IPv6 addresses.
+ ${BgpSessionPrefixV6},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The unique identifier (GUID) for the connection.
+ ${ConnectionIdentifier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The PeeringDB.com ID of the facility at which the connection has to be set up.
+ ${PeeringDbFacilityId},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.SessionAddressProvider])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.SessionAddressProvider]
+ # The field indicating if Microsoft provides session ip addresses.
+ ${SessionAddressProvider},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Boolean]
+ # The flag that indicates whether or not the connection is used for peering service.
+ ${UseForPeeringService}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Peering.custom\New-AzPeeringDirectConnectionObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1 b/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1
new file mode 100644
index 000000000000..19705a6c85d5
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1
@@ -0,0 +1,173 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ExchangeConnection.
+.Description
+Create an in-memory object for ExchangeConnection.
+.Example
+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
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection
+.Link
+https://learn.microsoft.com/powershell/module/az.Peering/new-AzPeeringExchangeConnectionObject
+#>
+function New-AzPeeringExchangeConnectionObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ExchangeConnection])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The maximum number of prefixes advertised over the IPv4 session.
+ ${BgpSessionMaxPrefixesAdvertisedV4},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The maximum number of prefixes advertised over the IPv6 session.
+ ${BgpSessionMaxPrefixesAdvertisedV6},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The MD5 authentication key of the session.
+ ${BgpSessionMd5AuthenticationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 session address on Microsoft's end.
+ ${BgpSessionMicrosoftSessionIPv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 session address on Microsoft's end.
+ ${BgpSessionMicrosoftSessionIPv6Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 session address on peer's end.
+ ${BgpSessionPeerSessionIPv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 session address on peer's end.
+ ${BgpSessionPeerSessionIPv6Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv4 prefix that contains both ends' IPv4 addresses.
+ ${BgpSessionPrefixV4},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The IPv6 prefix that contains both ends' IPv6 addresses.
+ ${BgpSessionPrefixV6},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The unique identifier (GUID) for the connection.
+ ${ConnectionIdentifier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The PeeringDB.com ID of the facility at which the connection has to be set up.
+ ${PeeringDbFacilityId}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.Peering.custom\New-AzPeeringExchangeConnectionObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringRegisteredAsn.ps1 b/src/Peering/exports/New-AzPeeringRegisteredAsn.ps1
new file mode 100644
index 000000000000..79becafaeed9
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringRegisteredAsn.ps1
@@ -0,0 +1,189 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
+.Description
+Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
+.Example
+New-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringregisteredasn
+#>
+function New-AzPeeringRegisteredAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('RegisteredAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the ASN.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The customer's ASN from which traffic originates.
+ ${Asn},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringRegisteredAsn_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringRegisteredPrefix.ps1 b/src/Peering/exports/New-AzPeeringRegisteredPrefix.ps1
new file mode 100644
index 000000000000..74eecafa6c7f
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringRegisteredPrefix.ps1
@@ -0,0 +1,189 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new registered prefix with the specified name under the given subscription, resource group and peering.
+.Description
+Creates a new registered prefix with the specified name under the given subscription, resource group and peering.
+.Example
+New-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringregisteredprefix
+#>
+function New-AzPeeringRegisteredPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('RegisteredPrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered prefix.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The customer's prefix from which traffic originates.
+ ${Prefix},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringRegisteredPrefix_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringService.ps1 b/src/Peering/exports/New-AzPeeringService.ps1
new file mode 100644
index 000000000000..a616e430165a
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringService.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
+.Description
+Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
+.Example
+New-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG -Location "East US 2" -PeeringServiceLocation Georgia -PeeringServiceProvider MicrosoftEdge -ProviderPrimaryPeeringLocation Atlanta
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringservice
+#>
+function New-AzPeeringService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeeringServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location (state/province) of the customer.
+ ${PeeringServiceLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the service provider.
+ ${PeeringServiceProvider},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The backup peering (Microsoft/service provider) location to be used for customer traffic.
+ ${ProviderBackupPeeringLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The primary peering (Microsoft/service provider) location to be used for customer traffic.
+ ${ProviderPrimaryPeeringLocation},
+
+ [Parameter()]
+ [Alias('SkuName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peering service SKU.
+ ${Sku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringService_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/New-AzPeeringServicePrefix.ps1 b/src/Peering/exports/New-AzPeeringServicePrefix.ps1
new file mode 100644
index 000000000000..32fd937d1459
--- /dev/null
+++ b/src/Peering/exports/New-AzPeeringServicePrefix.ps1
@@ -0,0 +1,195 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates a new prefix with the specified name under the given subscription, resource group and peering service.
+.Description
+Creates a new prefix with the specified name under the given subscription, resource group and peering service.
+.Example
+New-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -PeeringServicePrefixKey 6a7f0d42-e49c-4eea-a930-280610671c3f -Prefix 91.194.255.0/24
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringserviceprefix
+#>
+function New-AzPeeringServicePrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the prefix.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The peering service prefix key
+ ${PeeringServicePrefixKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The prefix from which your traffic originates.
+ ${Prefix},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringServicePrefix_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/Peering/exports/ProxyCmdletDefinitions.ps1 b/src/Peering/exports/ProxyCmdletDefinitions.ps1
new file mode 100644
index 000000000000..b55ddef4e1e7
--- /dev/null
+++ b/src/Peering/exports/ProxyCmdletDefinitions.ps1
@@ -0,0 +1,7187 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets the peer ASN with the specified name under the given subscription.
+.Description
+Gets the peer ASN with the specified name under the given subscription.
+.Example
+Get-AzPeeringAsn
+.Example
+Get-AzPeeringAsn -Name ContosoEdgeTest
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringasn
+#>
+function Get-AzPeeringAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeerAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peer ASN name.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringAsn_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringAsn_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringAsn_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the advertised prefixes for the specified peering location
+.Description
+Lists all of the advertised prefixes for the specified peering location
+.Example
+Get-AzPeeringCdnPrefix -PeeringLocation Seattle
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ICdnPeeringPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringcdnprefix
+#>
+function Get-AzPeeringCdnPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.ICdnPeeringPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The peering location.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringCdnPrefix_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Description
+Gets an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Example
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest
+.Example
+ Get-AzPeeringConnectionMonitorTest -ResourceGroupName DemoRG -PeeringServiceName DRTest -Name TestName
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringconnectionmonitortest
+#>
+function Get-AzPeeringConnectionMonitorTest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ConnectionMonitorTestName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the connection monitor test
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringConnectionMonitorTest_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the legacy peerings under the given subscription matching the specified kind and location.
+.Description
+Lists all of the legacy peerings under the given subscription matching the specified kind and location.
+.Example
+Get-AzPeeringLegacy -Kind Direct -PeeringLocation Seattle
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringlegacy
+#>
+function Get-AzPeeringLegacy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.LegacyPeeringsKind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.LegacyPeeringsKind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The location of the peering.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.Int32]
+ # The ASN number associated with a legacy peering.
+ ${Asn},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType]
+ # The direct peering type.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringLegacy_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the available peering locations for the specified kind of peering.
+.Description
+Lists all of the available peering locations for the specified kind of peering.
+.Example
+Get-AzPeeringLocation -Kind Direct
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringLocation
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringlocation
+#>
+function Get-AzPeeringLocation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringLocation])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsKind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsKind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsDirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.PeeringLocationsDirectPeeringType]
+ # The type of direct peering.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringLocation_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists the prefixes received over the specified peering under the given subscription and resource group.
+.Description
+Lists the prefixes received over the specified peering under the given subscription and resource group.
+.Example
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringReceivedRoute -PeeringName DemoPeering -ResourceGroupName DemoRG -AsPath "7018 9680 9680 3462"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringReceivedRoute
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringreceivedroute
+#>
+function Get-AzPeeringReceivedRoute {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringReceivedRoute])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional AS path that can be used to filter the routes.
+ ${AsPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional origin AS validation state that can be used to filter the routes.
+ ${OriginAsValidationState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional prefix that can be used to filter the routes.
+ ${Prefix},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional RPKI validation state that can be used to filter the routes.
+ ${RpkiValidationState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The optional page continuation token that is used in the event of paginated result.
+ ${SkipToken},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringReceivedRoute_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
+.Description
+Gets an existing registered ASN with the specified name under the given subscription, resource group and peering.
+.Example
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo
+.Example
+Get-AzPeeringRegisteredAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Name fgfg
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringregisteredasn
+#>
+function Get-AzPeeringRegisteredAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('RegisteredAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered ASN.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringRegisteredAsn_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.
+.Description
+Gets an existing registered prefix with the specified name under the given subscription, resource group and peering.
+.Example
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringRegisteredPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG -Name accessibilityTesting1
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringregisteredprefix
+#>
+function Get-AzPeeringRegisteredPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('RegisteredPrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered prefix.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringRegisteredPrefix_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the RP unbilled prefixes for the specified peering
+.Description
+Lists all of the RP unbilled prefixes for the specified peering
+.Example
+Get-AzPeeringRpUnbilledPrefix -PeeringName DemoPeering -ResourceGroupName DemoRG
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IRpUnbilledPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringrpunbilledprefix
+#>
+function Get-AzPeeringRpUnbilledPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IRpUnbilledPrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peering name.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The Azure resource group name.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.Management.Automation.SwitchParameter]
+ # Flag to enable consolidation prefixes
+ ${Consolidate},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringRpUnbilledPrefix_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the available countries for peering service.
+.Description
+Lists all of the available countries for peering service.
+.Example
+Get-AzPeeringServiceCountry
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IResource
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservicecountry
+#>
+function Get-AzPeeringServiceCountry {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceCountry_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the available locations for peering service.
+.Description
+Lists all of the available locations for peering service.
+.Example
+Get-AzPeeringServiceLocation
+.Example
+Get-AzPeeringServiceLocation -Country Japan
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceLocation
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservicelocation
+#>
+function Get-AzPeeringServiceLocation {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceLocation])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The country of interest, in which the locations are to be present.
+ ${Country},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceLocation_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
+.Description
+Gets an existing prefix with the specified name under the given subscription, resource group and peering service.
+.Example
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringServicePrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -Name TestPrefix
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringserviceprefix
+#>
+function Get-AzPeeringServicePrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the prefix.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Query')]
+ [System.String]
+ # The properties to be expanded.
+ ${Expand},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringServicePrefix_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringServicePrefix_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringServicePrefix_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all of the available peering service locations for the specified kind of peering.
+.Description
+Lists all of the available peering service locations for the specified kind of peering.
+.Example
+Get-AzPeeringServiceProvider
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceProvider
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringserviceprovider
+#>
+function Get-AzPeeringServiceProvider {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceProvider])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.Peering.private\Get-AzPeeringServiceProvider_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing peering service with the specified name under the given subscription and resource group.
+.Description
+Gets an existing peering service with the specified name under the given subscription and resource group.
+.Example
+Get-AzPeeringService
+.Example
+Get-AzPeeringService -ResourceGroupName DemoRG
+.Example
+Get-AzPeeringService -ResourceGroupName DemoRG -Name TestExtension
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeeringservice
+#>
+function Get-AzPeeringService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeeringServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeeringService_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeeringService_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeeringService_List';
+ List1 = 'Az.Peering.private\Get-AzPeeringService_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets an existing peering with the specified name under the given subscription and resource group.
+.Description
+Gets an existing peering with the specified name under the given subscription and resource group.
+.Example
+ Get-AzPeering
+.Example
+Get-AzPeering -Name DemoPeering -ResourceGroupName DemoRG
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/get-azpeering
+#>
+function Get-AzPeering {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PeeringName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Peering.private\Get-AzPeering_Get';
+ GetViaIdentity = 'Az.Peering.private\Get-AzPeering_GetViaIdentity';
+ List = 'Az.Peering.private\Get-AzPeering_List';
+ List1 = 'Az.Peering.private\Get-AzPeering_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Initialize Peering Service for Connection Monitor functionality
+.Description
+Initialize Peering Service for Connection Monitor functionality
+.Example
+Initialize-AzPeeringServiceConnectionMonitor
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/initialize-azpeeringserviceconnectionmonitor
+#>
+function Initialize-AzPeeringServiceConnectionMonitor {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Initialize', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Initialize')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='InitializeViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Initialize = 'Az.Peering.private\Initialize-AzPeeringServiceConnectionMonitor_Initialize';
+ InitializeViaIdentity = 'Az.Peering.private\Initialize-AzPeeringServiceConnectionMonitor_InitializeViaIdentity';
+ }
+ if (('Initialize') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
+.Description
+Creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription.
+.Example
+$contactDetail = New-AzPeeringContactDetailObject -Email "abc@xyz.com" -Phone 1234567890 -Role "Noc"
+$PeerContactList = ,$contactDetail
+New-AzPeeringAsn -Name PsTestAsn -PeerAsn 65001 -PeerContactDetail $PeerContactList -PeerName DemoPeering
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+PEERCONTACTDETAIL : The contact details of the peer.
+ [Email ]: The e-mail address of the contact.
+ [Phone ]: The phone number of the contact.
+ [Role ]: The role of the contact.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringasn
+#>
+function New-AzPeeringAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeerAsn])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeerAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peer ASN name.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Autonomous System Number (ASN) of the peer.
+ ${PeerAsn},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IContactDetail[]]
+ # The contact details of the peer.
+ # To construct, see NOTES section for PEERCONTACTDETAIL properties and create a hash table.
+ ${PeerContactDetail},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peer.
+ ${PeerName},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringAsn_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Description
+Creates or updates a connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Example
+New-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName DRTest -ResourceGroupName DemoRG
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringconnectionmonitortest
+#>
+function New-AzPeeringConnectionMonitorTest {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IConnectionMonitorTest])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('ConnectionMonitorTestName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the connection monitor test
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The Connection Monitor test destination
+ ${Destination},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Connection Monitor test destination port
+ ${DestinationPort},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The Connection Monitor test source agent
+ ${SourceAgent},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The Connection Monitor test frequency in seconds
+ ${TestFrequencyInSec},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringConnectionMonitorTest_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
+.Description
+Creates a new registered ASN with the specified name under the given subscription, resource group and peering.
+.Example
+New-AzPeeringRegisteredAsn -Name TestAsn -PeeringName MapsIxRs -ResourceGroupName MAPSDemo -Asn 65001
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringregisteredasn
+#>
+function New-AzPeeringRegisteredAsn {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredAsn])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('RegisteredAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the ASN.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.Int32]
+ # The customer's ASN from which traffic originates.
+ ${Asn},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringRegisteredAsn_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new registered prefix with the specified name under the given subscription, resource group and peering.
+.Description
+Creates a new registered prefix with the specified name under the given subscription, resource group and peering.
+.Example
+New-AzPeeringRegisteredPrefix -Name accessibilityTesting6 -PeeringName DemoPeering -ResourceGroupName DemoRG -Prefix 240.0.5.0/24
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringregisteredprefix
+#>
+function New-AzPeeringRegisteredPrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringRegisteredPrefix])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('RegisteredPrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the registered prefix.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${PeeringName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The customer's prefix from which traffic originates.
+ ${Prefix},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringRegisteredPrefix_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new prefix with the specified name under the given subscription, resource group and peering service.
+.Description
+Creates a new prefix with the specified name under the given subscription, resource group and peering service.
+.Example
+New-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG -PeeringServicePrefixKey 6a7f0d42-e49c-4eea-a930-280610671c3f -Prefix 91.194.255.0/24
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringserviceprefix
+#>
+function New-AzPeeringServicePrefix {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServicePrefix])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PrefixName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the prefix.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${PeeringServiceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The peering service prefix key
+ ${PeeringServicePrefixKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The prefix from which your traffic originates.
+ ${Prefix},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringServicePrefix_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
+.Description
+Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.
+.Example
+New-AzPeeringService -Name TestPeeringService -ResourceGroupName DemoRG -Location "East US 2" -PeeringServiceLocation Georgia -PeeringServiceProvider MicrosoftEdge -ProviderPrimaryPeeringLocation Atlanta
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeeringservice
+#>
+function New-AzPeeringService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringService])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeeringServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering service.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location (state/province) of the customer.
+ ${PeeringServiceLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the service provider.
+ ${PeeringServiceProvider},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The backup peering (Microsoft/service provider) location to be used for customer traffic.
+ ${ProviderBackupPeeringLocation},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The primary peering (Microsoft/service provider) location to be used for customer traffic.
+ ${ProviderPrimaryPeeringLocation},
+
+ [Parameter()]
+ [Alias('SkuName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peering service SKU.
+ ${Sku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringServiceTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeeringService_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group.
+.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
+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
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DIRECTCONNECTION : The set of connections that constitute a direct peering.
+ [BandwidthInMbps ]: The bandwidth of the connection.
+ [BgpSessionMaxPrefixesAdvertisedV4 ]: The maximum number of prefixes advertised over the IPv4 session.
+ [BgpSessionMaxPrefixesAdvertisedV6 ]: The maximum number of prefixes advertised over the IPv6 session.
+ [BgpSessionMd5AuthenticationKey ]: The MD5 authentication key of the session.
+ [BgpSessionMicrosoftSessionIPv4Address ]: The IPv4 session address on Microsoft's end.
+ [BgpSessionMicrosoftSessionIPv6Address ]: The IPv6 session address on Microsoft's end.
+ [BgpSessionPeerSessionIPv4Address ]: The IPv4 session address on peer's end.
+ [BgpSessionPeerSessionIPv6Address ]: The IPv6 session address on peer's end.
+ [BgpSessionPrefixV4 ]: The IPv4 prefix that contains both ends' IPv4 addresses.
+ [BgpSessionPrefixV6 ]: The IPv6 prefix that contains both ends' IPv6 addresses.
+ [ConnectionIdentifier ]: The unique identifier (GUID) for the connection.
+ [PeeringDbFacilityId ]: The PeeringDB.com ID of the facility at which the connection has to be set up.
+ [SessionAddressProvider ]: The field indicating if Microsoft provides session ip addresses.
+ [UseForPeeringService ]: The flag that indicates whether or not the connection is used for peering service.
+
+EXCHANGECONNECTION : The set of connections that constitute an exchange peering.
+ [BgpSessionMaxPrefixesAdvertisedV4 ]: The maximum number of prefixes advertised over the IPv4 session.
+ [BgpSessionMaxPrefixesAdvertisedV6 ]: The maximum number of prefixes advertised over the IPv6 session.
+ [BgpSessionMd5AuthenticationKey ]: The MD5 authentication key of the session.
+ [BgpSessionMicrosoftSessionIPv4Address ]: The IPv4 session address on Microsoft's end.
+ [BgpSessionMicrosoftSessionIPv6Address ]: The IPv6 session address on Microsoft's end.
+ [BgpSessionPeerSessionIPv4Address ]: The IPv4 session address on peer's end.
+ [BgpSessionPeerSessionIPv6Address ]: The IPv6 session address on peer's end.
+ [BgpSessionPrefixV4 ]: The IPv4 prefix that contains both ends' IPv4 addresses.
+ [BgpSessionPrefixV6 ]: The IPv6 prefix that contains both ends' IPv6 addresses.
+ [ConnectionIdentifier ]: The unique identifier (GUID) for the connection.
+ [PeeringDbFacilityId ]: The PeeringDB.com ID of the facility at which the connection has to be set up.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/new-azpeering
+#>
+function New-AzPeering {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeering])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PeeringName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the peering.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Kind])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.Kind]
+ # The kind of the peering.
+ ${Kind},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the resource.
+ ${Location},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IDirectConnection[]]
+ # The set of connections that constitute a direct peering.
+ # To construct, see NOTES section for DIRECTCONNECTION properties and create a hash table.
+ ${DirectConnection},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The identifier of the referenced resource.
+ ${DirectPeerAsnId},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Support.DirectPeeringType]
+ # The type of direct peering.
+ ${DirectPeeringType},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IExchangeConnection[]]
+ # The set of connections that constitute an exchange peering.
+ # To construct, see NOTES section for EXCHANGECONNECTION properties and create a hash table.
+ ${ExchangeConnection},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The identifier of the referenced resource.
+ ${ExchangePeerAsnId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The location of the peering.
+ ${PeeringLocation},
+
+ [Parameter()]
+ [Alias('SkuName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [System.String]
+ # The name of the peering SKU.
+ ${Sku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.Api20221001.IPeeringTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.Peering.private\New-AzPeering_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Deletes an existing peer ASN with the specified name under the given subscription.
+.Description
+Deletes an existing peer ASN with the specified name under the given subscription.
+.Example
+Remove-AzPeeringAsn -Name PsTestAsn
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName ]: The name of the peering.
+ [PeeringServiceName ]: The name of the peering service.
+ [PrefixName ]: The name of the prefix.
+ [RegisteredAsnName ]: The name of the registered ASN.
+ [RegisteredPrefixName ]: The name of the registered prefix.
+ [ResourceGroupName ]: The name of the resource group.
+ [SubscriptionId ]: The Azure subscription ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.peering/remove-azpeeringasn
+#>
+function Remove-AzPeeringAsn {
+[OutputType([System.Boolean])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Alias('PeerAsnName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [System.String]
+ # The peer ASN name.
+ ${Name},
+
+ [Parameter(ParameterSetName='Delete')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The Azure subscription ID.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Delete = 'Az.Peering.private\Remove-AzPeeringAsn_Delete';
+ DeleteViaIdentity = 'Az.Peering.private\Remove-AzPeeringAsn_DeleteViaIdentity';
+ }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Peering.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Deletes an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Description
+Deletes an existing connection monitor test with the specified name under the given subscription, resource group and peering service.
+.Example
+Remove-AzPeeringConnectionMonitorTest -Name TestName -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity
+.Outputs
+System.Boolean
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [ConnectionMonitorTestName ]: The name of the connection monitor test
+ [Id ]: Resource identity path
+ [PeerAsnName ]: The peer ASN name.
+ [PeeringName