diff --git a/src/Peering/Az.Peering.psd1 b/src/Peering/Az.Peering.psd1 index d072e353438d..31050fefad7d 100644 --- a/src/Peering/Az.Peering.psd1 +++ b/src/Peering/Az.Peering.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/30/2023 +# Generated on: 2/2/2023 # @{ diff --git a/src/Peering/Peering.sln b/src/Peering/Peering.sln index bc344934ca58..8b93f0f40502 100644 --- a/src/Peering/Peering.sln +++ b/src/Peering/Peering.sln @@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{F667231F-2E61-4073-A344-089AA1143A4D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{234CDDE4-60B9-4A5F-A37E-3D670454E723}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2561C9D5-C26A-445A-BEF5-6C3D14AAB943}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{E8E341D2-14F1-4619-ADF2-05CDA4BC429D}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C24AD278-46F5-4916-A346-38C2EF274ED0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B16E67AF-2829-4A77-991E-9E68E3BFFD44}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{752B1E09-D066-414C-A446-4DEF41555B06}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A7492AB5-BD93-41D1-A087-0491E53F36DF}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{AF72F3C8-43FF-4F0D-B77E-663FDC1528A1}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{E707E9BE-792F-4505-8835-4891A0C24919}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{DB47854A-FB72-49E2-B068-556542330E8F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Peering", "Az.Peering.csproj", "{2792EF2D-6752-4768-BD06-56D8ADE95E98}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Peering", "Az.Peering.csproj", "{41364983-A71F-4585-8A1E-75F5C9BA2DF2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F667231F-2E61-4073-A344-089AA1143A4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F667231F-2E61-4073-A344-089AA1143A4D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F667231F-2E61-4073-A344-089AA1143A4D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F667231F-2E61-4073-A344-089AA1143A4D}.Release|Any CPU.Build.0 = Release|Any CPU - {2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2561C9D5-C26A-445A-BEF5-6C3D14AAB943}.Release|Any CPU.Build.0 = Release|Any CPU - {4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {4D83F5AB-8C90-44BB-8472-9BB102AC1FDD}.Release|Any CPU.Build.0 = Release|Any CPU - {B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B16E67AF-2829-4A77-991E-9E68E3BFFD44}.Release|Any CPU.Build.0 = Release|Any CPU - {A7492AB5-BD93-41D1-A087-0491E53F36DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A7492AB5-BD93-41D1-A087-0491E53F36DF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A7492AB5-BD93-41D1-A087-0491E53F36DF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A7492AB5-BD93-41D1-A087-0491E53F36DF}.Release|Any CPU.Build.0 = Release|Any CPU - {E707E9BE-792F-4505-8835-4891A0C24919}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E707E9BE-792F-4505-8835-4891A0C24919}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E707E9BE-792F-4505-8835-4891A0C24919}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E707E9BE-792F-4505-8835-4891A0C24919}.Release|Any CPU.Build.0 = Release|Any CPU - {2792EF2D-6752-4768-BD06-56D8ADE95E98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2792EF2D-6752-4768-BD06-56D8ADE95E98}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2792EF2D-6752-4768-BD06-56D8ADE95E98}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2792EF2D-6752-4768-BD06-56D8ADE95E98}.Release|Any CPU.Build.0 = Release|Any CPU + {234CDDE4-60B9-4A5F-A37E-3D670454E723}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {234CDDE4-60B9-4A5F-A37E-3D670454E723}.Debug|Any CPU.Build.0 = Debug|Any CPU + {234CDDE4-60B9-4A5F-A37E-3D670454E723}.Release|Any CPU.ActiveCfg = Release|Any CPU + {234CDDE4-60B9-4A5F-A37E-3D670454E723}.Release|Any CPU.Build.0 = Release|Any CPU + {E8E341D2-14F1-4619-ADF2-05CDA4BC429D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E8E341D2-14F1-4619-ADF2-05CDA4BC429D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E8E341D2-14F1-4619-ADF2-05CDA4BC429D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E8E341D2-14F1-4619-ADF2-05CDA4BC429D}.Release|Any CPU.Build.0 = Release|Any CPU + {C24AD278-46F5-4916-A346-38C2EF274ED0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C24AD278-46F5-4916-A346-38C2EF274ED0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C24AD278-46F5-4916-A346-38C2EF274ED0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C24AD278-46F5-4916-A346-38C2EF274ED0}.Release|Any CPU.Build.0 = Release|Any CPU + {752B1E09-D066-414C-A446-4DEF41555B06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {752B1E09-D066-414C-A446-4DEF41555B06}.Debug|Any CPU.Build.0 = Debug|Any CPU + {752B1E09-D066-414C-A446-4DEF41555B06}.Release|Any CPU.ActiveCfg = Release|Any CPU + {752B1E09-D066-414C-A446-4DEF41555B06}.Release|Any CPU.Build.0 = Release|Any CPU + {AF72F3C8-43FF-4F0D-B77E-663FDC1528A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AF72F3C8-43FF-4F0D-B77E-663FDC1528A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AF72F3C8-43FF-4F0D-B77E-663FDC1528A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AF72F3C8-43FF-4F0D-B77E-663FDC1528A1}.Release|Any CPU.Build.0 = Release|Any CPU + {DB47854A-FB72-49E2-B068-556542330E8F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DB47854A-FB72-49E2-B068-556542330E8F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DB47854A-FB72-49E2-B068-556542330E8F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DB47854A-FB72-49E2-B068-556542330E8F}.Release|Any CPU.Build.0 = Release|Any CPU + {41364983-A71F-4585-8A1E-75F5C9BA2DF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {41364983-A71F-4585-8A1E-75F5C9BA2DF2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {41364983-A71F-4585-8A1E-75F5C9BA2DF2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {41364983-A71F-4585-8A1E-75F5C9BA2DF2}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/Peering/examples/New-AzPeering.md b/src/Peering/examples/New-AzPeering.md index 92611b124e0a..9e93f5a6bbd6 100644 --- a/src/Peering/examples/New-AzPeering.md +++ b/src/Peering/examples/New-AzPeering.md @@ -1,7 +1,8 @@ ### Example 1: Create a new direct peering object ```powershell -$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ... -$directConnections = ,$connection1 +$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" +$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 + New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited ``` diff --git a/src/Peering/examples/New-AzPeeringDirectConnectionObject.md b/src/Peering/examples/New-AzPeeringDirectConnectionObject.md index 6111c9a7ea49..9ebfbc511bb2 100644 --- a/src/Peering/examples/New-AzPeeringDirectConnectionObject.md +++ b/src/Peering/examples/New-AzPeeringDirectConnectionObject.md @@ -1,11 +1,13 @@ ### Example 1: Create a direct connection object ```powershell +$md5Key = "******" + New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111 ``` ```output -BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps ... [more fields] ---------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- ... ------------- +BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps +--------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- 10000 c111111111111 PendingApproval 82 ``` diff --git a/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md b/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md index 9f16da1f1357..e1e540a3cd64 100644 --- a/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md +++ b/src/Peering/examples/New-AzPeeringExchangeConnectionObject.md @@ -1,11 +1,13 @@ ### Example 1: Create an exchange connection object ```powershell +$md5Key = "******" + New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111 ``` ```output -ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId ... [more fields] --------------------- --------------- ------------ ------------------- ... ------------- +ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId +-------------------- --------------- ------------ ------------------- c111111111111 82 ``` diff --git a/src/Peering/examples/Remove-AzPeeringServicePrefix.md b/src/Peering/examples/Remove-AzPeeringServicePrefix.md index 6a01f19b0716..20648b9d4a65 100644 --- a/src/Peering/examples/Remove-AzPeeringServicePrefix.md +++ b/src/Peering/examples/Remove-AzPeeringServicePrefix.md @@ -1,6 +1,6 @@ ### Example 1: Remove peering service prefix ```powershell -Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG +Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG ``` Removes peering service prefix from peering diff --git a/src/Peering/exports/New-AzPeering.ps1 b/src/Peering/exports/New-AzPeering.ps1 index 429b56f02e06..6cbf0862e9de 100644 --- a/src/Peering/exports/New-AzPeering.ps1 +++ b/src/Peering/exports/New-AzPeering.ps1 @@ -20,8 +20,9 @@ Creates a new peering or updates an existing peering with the specified name und .Description Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group. .Example -$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ... -$directConnections = ,$connection1 +$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" +$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 + New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited .Outputs diff --git a/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1 b/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1 index bd528c2f35e2..05dce546beba 100644 --- a/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1 +++ b/src/Peering/exports/New-AzPeeringDirectConnectionObject.ps1 @@ -20,6 +20,8 @@ Create an in-memory object for DirectConnection. .Description Create an in-memory object for DirectConnection. .Example +$md5Key = "******" + New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111 .Outputs diff --git a/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1 b/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1 index 19705a6c85d5..a1da73c5811e 100644 --- a/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1 +++ b/src/Peering/exports/New-AzPeeringExchangeConnectionObject.ps1 @@ -20,6 +20,8 @@ Create an in-memory object for ExchangeConnection. .Description Create an in-memory object for ExchangeConnection. .Example +$md5Key = "******" + New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111 .Outputs diff --git a/src/Peering/exports/ProxyCmdletDefinitions.ps1 b/src/Peering/exports/ProxyCmdletDefinitions.ps1 index b55ddef4e1e7..d0bfee22d9c1 100644 --- a/src/Peering/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Peering/exports/ProxyCmdletDefinitions.ps1 @@ -4006,8 +4006,9 @@ Creates a new peering or updates an existing peering with the specified name und .Description Creates a new peering or updates an existing peering with the specified name under the given subscription and resource group. .Example -$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ... -$directConnections = ,$connection1 +$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" +$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 + New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited .Outputs @@ -5059,7 +5060,7 @@ Deletes an existing prefix with the specified name under the given subscription, .Description Deletes an existing prefix with the specified name under the given subscription, resource group and peering service. .Example -Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG +Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG .Inputs Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity @@ -6857,6 +6858,8 @@ Create an in-memory object for DirectConnection. .Description Create an in-memory object for DirectConnection. .Example +$md5Key = "******" + New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111 .Outputs @@ -7034,6 +7037,8 @@ Create an in-memory object for ExchangeConnection. .Description Create an in-memory object for ExchangeConnection. .Example +$md5Key = "******" + New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111 .Outputs diff --git a/src/Peering/exports/Remove-AzPeeringServicePrefix.ps1 b/src/Peering/exports/Remove-AzPeeringServicePrefix.ps1 index d0f547387e46..a3e8ac2ae50b 100644 --- a/src/Peering/exports/Remove-AzPeeringServicePrefix.ps1 +++ b/src/Peering/exports/Remove-AzPeeringServicePrefix.ps1 @@ -20,7 +20,7 @@ Deletes an existing prefix with the specified name under the given subscription, .Description Deletes an existing prefix with the specified name under the given subscription, resource group and peering service. .Example -Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG +Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG .Inputs Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.IPeeringIdentity diff --git a/src/Peering/generate-info.json b/src/Peering/generate-info.json index db68fb1d287b..1d15a2750e8a 100644 --- a/src/Peering/generate-info.json +++ b/src/Peering/generate-info.json @@ -1,5 +1,5 @@ { - "swagger_commit": "90a294fca4845153be79d926b7415be5375522ac", + "swagger_commit": "1c23efa3fffb2bba8dab4875e6e6639c596b76e3", "node": "v14.15.5", "autorest": "`-- (empty)", "autorest_core": "3.9.4", diff --git a/src/Peering/help/New-AzPeering.md b/src/Peering/help/New-AzPeering.md index edd17f66db0d..e4c9c03528b7 100644 --- a/src/Peering/help/New-AzPeering.md +++ b/src/Peering/help/New-AzPeering.md @@ -27,8 +27,9 @@ Creates a new peering or updates an existing peering with the specified name und ### Example 1: Create a new direct peering object ```powershell -$connection1 = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 ... -$directConnections = ,$connection1 +$peerAsnId = "/subscriptions/{subId}/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" +$directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 + New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "South Central US" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Dallas -Sku Premium_Direct_Unlimited ``` diff --git a/src/Peering/help/New-AzPeeringDirectConnectionObject.md b/src/Peering/help/New-AzPeeringDirectConnectionObject.md index a63ed1d42ef6..b8d7e03a4b45 100644 --- a/src/Peering/help/New-AzPeeringDirectConnectionObject.md +++ b/src/Peering/help/New-AzPeeringDirectConnectionObject.md @@ -29,12 +29,14 @@ Create an in-memory object for DirectConnection. ### Example 1: Create a direct connection object ```powershell +$md5Key = "******" + New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -SessionAddressProvider Peer -ConnectionIdentifier c111111111111 ``` ```output -BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps ... [more fields] ---------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- ... ------------- +BandwidthInMbps ConnectionIdentifier ConnectionState ErrorMessage MicrosoftTrackingId PeeringDbFacilityId ProvisionedBandwidthInMbps +--------------- -------------------- --------------- ------------ ------------------- ------------------- -------------------------- 10000 c111111111111 PendingApproval 82 ``` diff --git a/src/Peering/help/New-AzPeeringExchangeConnectionObject.md b/src/Peering/help/New-AzPeeringExchangeConnectionObject.md index 096476f60c52..baa9b1b4d4b6 100644 --- a/src/Peering/help/New-AzPeeringExchangeConnectionObject.md +++ b/src/Peering/help/New-AzPeeringExchangeConnectionObject.md @@ -28,12 +28,14 @@ Create an in-memory object for ExchangeConnection. ### Example 1: Create an exchange connection object ```powershell +$md5Key = "******" + New-AzPeeringExchangeConnectionObject -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 1.1.1.1 -BgpSessionPeerSessionIPv4Address 1.1.1.0 -BgpSessionPrefixV4 1.1.1.1/31 -PeeringDbFacilityId 82 -ConnectionIdentifier c111111111111 ``` ```output -ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId ... [more fields] --------------------- --------------- ------------ ------------------- ... ------------- +ConnectionIdentifier ConnectionState ErrorMessage PeeringDbFacilityId +-------------------- --------------- ------------ ------------------- c111111111111 82 ``` diff --git a/src/Peering/help/Remove-AzPeeringServicePrefix.md b/src/Peering/help/Remove-AzPeeringServicePrefix.md index 879fe5fb937c..21541a9ff4f0 100644 --- a/src/Peering/help/Remove-AzPeeringServicePrefix.md +++ b/src/Peering/help/Remove-AzPeeringServicePrefix.md @@ -31,7 +31,7 @@ Deletes an existing prefix with the specified name under the given subscription, ### Example 1: Remove peering service prefix ```powershell -Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroup DemoRG +Remove-AzPeeringServicePrefix -Name TestPrefix -PeeringServiceName TestDRInterCloudZurich -ResourceGroupName DemoRG ``` Removes peering service prefix from peering diff --git a/src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Tests.ps1 b/src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Tests.ps1 index f716bc0eafc0..c468f4262eab 100644 --- a/src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Tests.ps1 +++ b/src/Peering/test/Get-AzPeeringRpUnbilledPrefix.Tests.ps1 @@ -17,8 +17,6 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzPeeringRpUnbilledPrefix Describe 'Get-AzPeeringRpUnbilledPrefix' { It 'List' { { - $env.SubscriptionId = "f686d426-8d16-42db-81b7-ab578e110ccd" - $env.Tenant = "4445bf11-61c4-436f-a940-60194f8aca57" $prefixes = Get-AzPeeringRpUnbilledPrefix -PeeringName CdnPeering -ResourceGroupName Seattle $prefixes.Count | Should -BeGreaterThan 0 } | Should -Not -Throw diff --git a/src/Peering/test/New-AzPeering.Tests.ps1 b/src/Peering/test/New-AzPeering.Tests.ps1 index 02eb6a759343..9c4806314dd0 100644 --- a/src/Peering/test/New-AzPeering.Tests.ps1 +++ b/src/Peering/test/New-AzPeering.Tests.ps1 @@ -17,9 +17,8 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzPeering')) Describe 'New-AzPeering' { It 'CreateExpanded' { { - $peerAsnId = "/subscriptions/e815e305-b43a-49c4-8b1a-4e61f1aec1e8/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" - $connection = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 12.90.152.62 -BgpSessionPeerSessionIPv4Address 12.90.152.61 -BgpSessionPrefixV4 12.90.152.60/30 -PeeringDbFacilityId 86 -SessionAddressProvider Peer -ConnectionIdentifier d1111111111111111111111111111111 - $directConnections = ,$connection + $peerAsnId = "/subscriptions/$($env.SubscriptionId)/providers/Microsoft.Peering/peerAsns/ContosoEdgeTest" + $directConnections = New-AzPeeringDirectConnectionObject -BandwidthInMbps 10000 -BgpSessionMaxPrefixesAdvertisedV4 20000 -BgpSessionMaxPrefixesAdvertisedV6 0 -BgpSessionMd5AuthenticationKey $md5Key -BgpSessionMicrosoftSessionIPv4Address 12.90.152.62 -BgpSessionPeerSessionIPv4Address 12.90.152.61 -BgpSessionPrefixV4 12.90.152.60/30 -PeeringDbFacilityId 86 -SessionAddressProvider Peer -ConnectionIdentifier d1111111111111111111111111111111 $peering = New-AzPeering -Name TestPeeringPs -ResourceGroupName DemoRG -Kind Direct -Location "West US 2" -DirectConnection $directConnections -DirectPeeringType Cdn -DirectPeerAsnId $peerAsnId -PeeringLocation Seattle -Sku Premium_Direct_Unlimited $peering.Name | Should -Be "TestPeeringPs" } | Should -Not -Throw