Skip to content

Commit 909acb4

Browse files
committed
Bug fix: Make parameter mandatory
1 parent 1fc95aa commit 909acb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/NewAzureExpressRouteCircuitCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class NewAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
7474
public string ServiceProviderName { get; set; }
7575

7676
[Parameter(
77-
Mandatory = false,
77+
Mandatory = true,
7878
ValueFromPipelineByPropertyName = true)]
7979
public string PeeringLocation { get; set; }
8080

src/ResourceManager/Network/Commands.Network/ExpressRouteCircuit/Peering/AzureExpressRouteCircuitPeeringConfigBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class AzureExpressRouteCircuitPeeringConfigBase : NetworkBaseCmdlet
3939
public string PeeringType { get; set; }
4040

4141
[Parameter(
42-
Mandatory = false,
42+
Mandatory = true,
4343
HelpMessage = "The PeerAsn")]
4444
[ValidateNotNullOrEmpty]
4545
public int PeerASN { get; set; }

src/ServiceManagement/ExpressRoute/Commands.ExpressRoute/BgpPeerings/SetAzureBGPPeering.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SetAzureBGPPeeringCommand : ExpressRouteBaseCmdlet
3434
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Customer AS number")]
3535
public UInt32 CustomerAsn { get; set; }
3636

37-
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true,
37+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true,
3838
HelpMessage = "Peer Asn")]
3939
public UInt32? PeerAsn { get; set; }
4040

@@ -53,7 +53,7 @@ public class SetAzureBGPPeeringCommand : ExpressRouteBaseCmdlet
5353
[ValidateNotNullOrEmpty]
5454
public string SharedKey { get; set; }
5555

56-
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Vlan Id")]
56+
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "Vlan Id")]
5757
public UInt32? VlanId { get; set; }
5858

5959
[Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Bgp Peering Access Type: Microsoft, Public or Private")]

0 commit comments

Comments
 (0)