Skip to content

Commit 2106713

Browse files
authored
Merge pull request #7664 from vinayada1/statsCmdletsPeeringMandatory
Make Peering Type as a mandatory parameter since these cmdlets work only on a specific peering
2 parents 1d5fb76 + d8018d6 commit 2106713

14 files changed

+31
-12
lines changed

src/ResourceManager/Network/Commands.Network/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
- Additional information about change #1
1919
--->
2020
## Current Release
21+
* Changed PeeringType to be a mandatory parameter for the following cmdlets:-
22+
- Get-AzureRmExpressRouteCircuitRouteTable
23+
- Get-AzureRmExpressRouteCircuitARPTable
24+
- Get-AzureRmExpressRouteCircuitRouteTableSummary
25+
- Get-AzureRMExpressRouteCrossConnectionArpTable
26+
- Get-AzureRMExpressRouteCrossConnectionRouteTable
27+
- Get-AzureRMExpressRouteCrossConnectionRouteTableSummary
2128

2229
## Version 6.9.1
2330
* Update cmdlet Test-AzureRmNetworkWatcherConnectivity, pass the protocol value to backend.

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitARPTableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class GetAzureExpressRouteCircuitARPTableCommand : NetworkBaseCmdlet
5252
public string ExpressRouteCircuitName { get; set; }
5353

5454
[Parameter(
55-
Mandatory = false,
55+
Mandatory = true,
5656
HelpMessage = "The PeeringType")]
5757
[ValidateSet(
5858
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitRouteTableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class GetAzureRmExpressRouteCircuitRouteTable : NetworkBaseCmdlet
4646
public string ExpressRouteCircuitName { get; set; }
4747

4848
[Parameter(
49-
Mandatory = false,
49+
Mandatory = true,
5050
HelpMessage = "The PeeringType")]
5151
[ValidateSet(
5252
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Stats/GetAzureExpressRouteCircuitRouteTableSummaryCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class GetAzureRmExpressRouteCircuitRouteTableSummaryCommand : NetworkBase
4646
public string ExpressRouteCircuitName { get; set; }
4747

4848
[Parameter(
49-
Mandatory = false,
49+
Mandatory = true,
5050
HelpMessage = "The PeeringType")]
5151
[ValidateSet(
5252
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/ExpressRouteCrossConnection/CrossConnectionPeeringStats/GetAzureRMExpressRouteCrossConnectionArpTableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public class GetAzureRMExpressRouteCrossConnectionArpTableCommand : ExpressRoute
5454
public PSExpressRouteCrossConnection ExpressRouteCrossConnection { get; set; }
5555

5656
[Parameter(
57-
Mandatory = false,
57+
Mandatory = true,
5858
HelpMessage = "The PeeringType")]
5959
[ValidateSet(
6060
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/ExpressRouteCrossConnection/CrossConnectionPeeringStats/GetAzureRMExpressRouteCrossConnectionRouteTableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class GetAzureRMExpressRouteCrossConnectionRouteTableCommand : ExpressRou
5353
public PSExpressRouteCrossConnection ExpressRouteCrossConnection { get; set; }
5454

5555
[Parameter(
56-
Mandatory = false,
56+
Mandatory = true,
5757
HelpMessage = "The PeeringType")]
5858
[ValidateSet(
5959
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/ExpressRouteCrossConnection/CrossConnectionPeeringStats/GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand : Exp
5353
public PSExpressRouteCrossConnection ExpressRouteCrossConnection { get; set; }
5454

5555
[Parameter(
56-
Mandatory = false,
56+
Mandatory = true,
5757
HelpMessage = "The PeeringType")]
5858
[ValidateSet(
5959
MNM.ExpressRoutePeeringType.AzurePrivatePeering,

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCircuitARPTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Parameter Sets: (All)
8989
Aliases:
9090
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9191
92-
Required: False
92+
Required: True
9393
Position: Named
9494
Default value: None
9595
Accept pipeline input: False

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCircuitRouteTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Parameter Sets: (All)
9090
Aliases:
9191
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9292
93-
Required: False
93+
Required: True
9494
Position: Named
9595
Default value: None
9696
Accept pipeline input: False

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCircuitRouteTableSummary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Parameter Sets: (All)
9090
Aliases:
9191
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9292
93-
Required: False
93+
Required: True
9494
Position: Named
9595
Default value: None
9696
Accept pipeline input: False

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCrossConnectionARPTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Parameter Sets: (All)
8989
Aliases:
9090
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9191
92-
Required: False
92+
Required: True
9393
Position: Named
9494
Default value: None
9595
Accept pipeline input: False

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCrossConnectionRouteTable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Parameter Sets: (All)
9090
Aliases:
9191
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9292
93-
Required: False
93+
Required: True
9494
Position: Named
9595
Default value: None
9696
Accept pipeline input: False

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmExpressRouteCrossConnectionRouteTableSummary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Parameter Sets: (All)
9090
Aliases:
9191
Accepted values: AzurePrivatePeering, AzurePublicPeering, MicrosoftPeering
9292
93-
Required: False
93+
Required: True
9494
Position: Named
9595
Default value: None
9696
Accept pipeline input: False

tools/StaticAnalysis/Exceptions/AzureRM.Network/BreakingChangeIssues.csv

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,15 @@
5858
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.NewAzureApplicationGatewaySkuCommand","New-AzureRmApplicationGatewaySku","0","3000","The type of property 'Capacity' of type 'Microsoft.Azure.Commands.Network.Models.PSApplicationGatewaySku' has changed from 'System.Int32' to 'System.Nullable`1[System.Int32]'.","Change the type of property 'Capacity' back to 'System.Int32'."
5959
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.NewAzureApplicationGatewaySkuCommand","New-AzureRmApplicationGatewaySku","0","2020","The cmdlet 'New-AzureRmApplicationGatewaySku' no longer supports the type 'System.Int32' for parameter 'Capacity'.","Change the type for parameter 'Capacity' back to 'System.Int32'."
6060
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.SetAzureApplicationGatewaySkuCommand","Set-AzureRmApplicationGatewaySku","0","2020","The cmdlet 'Set-AzureRmApplicationGatewaySku' no longer supports the type 'System.Int32' for parameter 'Capacity'.","Change the type for parameter 'Capacity' back to 'System.Int32'."
61+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureExpressRouteCircuitARPTableCommand","Get-AzureRmExpressRouteCircuitARPTable","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCircuitARPTable' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCircuitARPTable'."
62+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRmExpressRouteCircuitRouteTable","Get-AzureRmExpressRouteCircuitRouteTable","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCircuitRouteTable' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCircuitRouteTable'."
63+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRmExpressRouteCircuitRouteTableSummaryCommand","Get-AzureRmExpressRouteCircuitRouteTableSummary","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCircuitRouteTableSummary' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCircuitRouteTableSummary'."
64+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionArpTableCommand","Get-AzureRmExpressRouteCrossConnectionArpTable","0","1050","The parameter set 'SpecifyByParameterValues' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable' has been removed.","Add parameter set 'SpecifyByParameterValues' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable'."
65+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionArpTableCommand","Get-AzureRmExpressRouteCrossConnectionArpTable","0","1050","The parameter set 'SpecifyByReference' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable' has been removed.","Add parameter set 'SpecifyByReference' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable'."
66+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionArpTableCommand","Get-AzureRmExpressRouteCrossConnectionArpTable","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionArpTable'."
67+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableCommand","Get-AzureRmExpressRouteCrossConnectionRouteTable","0","1050","The parameter set 'SpecifyByParameterValues' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable' has been removed.","Add parameter set 'SpecifyByParameterValues' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable'."
68+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableCommand","Get-AzureRmExpressRouteCrossConnectionRouteTable","0","1050","The parameter set 'SpecifyByReference' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable' has been removed.","Add parameter set 'SpecifyByReference' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable'."
69+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableCommand","Get-AzureRmExpressRouteCrossConnectionRouteTable","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTable'."
70+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand","Get-AzureRmExpressRouteCrossConnectionRouteTableSummary","0","1050","The parameter set 'SpecifyByParameterValues' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary' has been removed.","Add parameter set 'SpecifyByParameterValues' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary'."
71+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand","Get-AzureRmExpressRouteCrossConnectionRouteTableSummary","0","1050","The parameter set 'SpecifyByReference' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary' has been removed.","Add parameter set 'SpecifyByReference' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary'."
72+
"Microsoft.Azure.Commands.Network.dll","Microsoft.Azure.Commands.Network.GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand","Get-AzureRmExpressRouteCrossConnectionRouteTableSummary","0","1050","The parameter set '__AllParameterSets' for cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary' has been removed.","Add parameter set '__AllParameterSets' back to cmdlet 'Get-AzureRmExpressRouteCrossConnectionRouteTableSummary'."

0 commit comments

Comments
 (0)