Skip to content

Commit 992e65a

Browse files
author
Maddie Clayton
authored
Merge pull request #7583 from maddieclayton/network
Add resource name completer to Network
2 parents 1dc601d + 464e350 commit 992e65a

File tree

121 files changed

+157
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+157
-10
lines changed

src/ResourceManager/Network/Commands.Network/ApplicationGateway/GetAzureApplicationGatewayBackendHealthCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class GetAzureApplicationGatewayBackendHealthCommand : ApplicationGateway
2929
Mandatory = true,
3030
ValueFromPipelineByPropertyName = true,
3131
HelpMessage = "The resource name.")]
32+
[ResourceNameCompleter("Microsoft.Network/applicationGateways", "ResourceGroupName")]
3233
[ValidateNotNullOrEmpty]
3334
public virtual string Name { get; set; }
3435

src/ResourceManager/Network/Commands.Network/ApplicationGateway/GetAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class GetAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
3030
Mandatory = false,
3131
ValueFromPipelineByPropertyName = true,
3232
HelpMessage = "The resource name.")]
33+
[ResourceNameCompleter("Microsoft.Network/applicationGateways", "ResourceGroupName")]
3334
[ValidateNotNullOrEmpty]
3435
public virtual string Name { get; set; }
3536

src/ResourceManager/Network/Commands.Network/ApplicationGateway/RemoveAzureApplicationGatewayCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class RemoveAzureApplicationGatewayCommand : ApplicationGatewayBaseCmdlet
2828
Mandatory = true,
2929
ValueFromPipelineByPropertyName = true,
3030
HelpMessage = "The resource name.")]
31+
[ResourceNameCompleter("Microsoft.Network/applicationGateways", "ResourceGroupName")]
3132
[ValidateNotNullOrEmpty]
3233
public virtual string Name { get; set; }
3334

src/ResourceManager/Network/Commands.Network/AzureFirewall/GetAzureFirewallCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
using System.Linq;
1717
using System.Management.Automation;
1818
using Microsoft.Azure.Commands.Network.Models;
19+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1920
using Microsoft.Azure.Management.Network;
2021
using Microsoft.Azure.Management.Network.Models;
2122
using Microsoft.Rest.Azure;
@@ -30,6 +31,7 @@ public class GetAzureFirewallCommand : AzureFirewallBaseCmdlet
3031
Mandatory = false,
3132
ValueFromPipelineByPropertyName = true,
3233
HelpMessage = "The resource name.")]
34+
[ResourceNameCompleter("Microsoft.Network/azureFirewalls", "ResourceGroupName")]
3335
[ValidateNotNullOrEmpty]
3436
public virtual string Name { get; set; }
3537

src/ResourceManager/Network/Commands.Network/AzureFirewall/RemoveAzureFirewallCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System.Management.Automation;
16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Management.Network;
1718

1819
namespace Microsoft.Azure.Commands.Network
@@ -25,6 +26,7 @@ public class RemoveAzureFirewallCommand : AzureFirewallBaseCmdlet
2526
Mandatory = true,
2627
ValueFromPipelineByPropertyName = true,
2728
HelpMessage = "The resource name.")]
29+
[ResourceNameCompleter("Microsoft.Network/azureFirewalls", "ResourceGroupName")]
2830
[ValidateNotNullOrEmpty]
2931
public virtual string Name { get; set; }
3032

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
--->
2020
## Current Release
2121
* Update cmdlet Test-AzureRmNetworkWatcherConnectivity, pass the protocol value to backend.
22+
* Added ResourceName argument completer to all cmdlets.
2223

2324
## Version 6.9.0
2425
* Added NetworkProfile functionality. new cmdlets added

src/ResourceManager/Network/Commands.Network/Cortex/HubVnetConnection/GetAzureRmHubVirtualNetworkConnectionCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class GetHubVirtualNetworkConnectionCommand : HubVnetConnectionBaseCmdlet
4141
Mandatory = true,
4242
ParameterSetName = CortexParameterSetNames.ByVirtualHubName,
4343
HelpMessage = "The parent resource name.")]
44-
[ResourceGroupCompleter]
44+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
4545
public string ParentResourceName { get; set; }
4646

4747
[Alias("VirtualHub", "ParentVirtualHub")]
@@ -65,6 +65,7 @@ public class GetHubVirtualNetworkConnectionCommand : HubVnetConnectionBaseCmdlet
6565
[Parameter(
6666
Mandatory = false,
6767
HelpMessage = "The resource name.")]
68+
[ResourceNameCompleter("Microsoft.Network/virtualHubs/hubVirtualNetworkConnections", "ResourceGroupName", "ParentResourceName")]
6869
[ValidateNotNullOrEmpty]
6970
public string Name { get; set; }
7071

src/ResourceManager/Network/Commands.Network/Cortex/HubVnetConnection/NewAzureRmHubVirtualNetworkConnectionCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class NewHubVirtualNetworkConnectionCommand : HubVnetConnectionBaseCmdlet
5757
Mandatory = true,
5858
ParameterSetName = CortexParameterSetNames.ByVirtualHubName + CortexParameterSetNames.ByRemoteVirtualNetworkObject,
5959
HelpMessage = "The resource group name.")]
60+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
6061
public string ParentResourceName { get; set; }
6162

6263
[Alias("VirtualHub", "ParentVirtualHub")]

src/ResourceManager/Network/Commands.Network/Cortex/HubVnetConnection/RemoveAzureRmHubVirtualNetworkConnectionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,15 @@ public class RemoveHubVirtualNetworkConnectionCommand : HubVnetConnectionBaseCmd
4949
Mandatory = true,
5050
ParameterSetName = CortexParameterSetNames.ByHubVirtualNetworkConnectionName,
5151
HelpMessage = "The parent resource name.")]
52+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
5253
public string ParentResourceName { get; set; }
5354

5455
[Alias("ResourceName", "HubVirtualNetworkConnectionName")]
5556
[Parameter(
5657
Mandatory = true,
5758
ParameterSetName = CortexParameterSetNames.ByHubVirtualNetworkConnectionName,
5859
HelpMessage = "The resource name.")]
60+
[ResourceNameCompleter("Microsoft.Network/virtualHubs/hubVirtualNetworkConnections", "ResourceGroupName", "ParentResourceName")]
5961
[ValidateNotNullOrEmpty]
6062
public string Name { get; set; }
6163

src/ResourceManager/Network/Commands.Network/Cortex/VirtualHub/GetAzureRmVirtualHubCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class GetAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
3939
Mandatory = false,
4040
ParameterSetName = "ListByResourceGroupName",
4141
HelpMessage = "The resource name.")]
42+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
4243
[ValidateNotNullOrEmpty]
4344
public string Name { get; set; }
4445

src/ResourceManager/Network/Commands.Network/Cortex/VirtualHub/RemoveAzureRmVirtualHubCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class RemoveAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
4949
Mandatory = true,
5050
ParameterSetName = CortexParameterSetNames.ByVirtualHubName,
5151
HelpMessage = "The resource name.")]
52+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
5253
[ValidateNotNullOrEmpty]
5354
public string Name { get; set; }
5455

src/ResourceManager/Network/Commands.Network/Cortex/VirtualHub/UpdateAzureRmVirtualHubCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class UpdateAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
4949
Mandatory = true,
5050
ParameterSetName = CortexParameterSetNames.ByVirtualHubName,
5151
HelpMessage = "The resource name.")]
52+
[ResourceNameCompleter("Microsoft.Network/virtualHubs", "ResourceGroupName")]
5253
[ValidateNotNullOrEmpty]
5354
public string Name { get; set; }
5455

src/ResourceManager/Network/Commands.Network/Cortex/VirtualWan/GetAzureRmVirtualWanCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class GetAzureRmVirtualWanCommand : VirtualWanBaseCmdlet
3939
Mandatory = false,
4040
ParameterSetName = "ListByResourceGroupName",
4141
HelpMessage = "The resource name.")]
42+
[ResourceNameCompleter("Microsoft.Network/virtualWans", "ResourceGroupName")]
4243
[ValidateNotNullOrEmpty]
4344
public string Name { get; set; }
4445

src/ResourceManager/Network/Commands.Network/Cortex/VirtualWan/GetAzureRmVirtualWanVpnSitesConfigurationCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class GetAzureRmVirtualWanVpnSitesConfigurationCommand : VirtualWanBaseCm
5555
ParameterSetName = CortexParameterSetNames.ByVirtualWanName + CortexParameterSetNames.ByVpnSiteResourceId,
5656
Mandatory = true,
5757
HelpMessage = "The resource name.")]
58+
[ResourceNameCompleter("Microsoft.Network/virtualWans", "ResourceGroupName")]
5859
[ValidateNotNullOrEmpty]
5960
public string Name { get; set; }
6061

src/ResourceManager/Network/Commands.Network/Cortex/VirtualWan/RemoveAzureRmVirtualWanCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class RemoveAzureRmVirtualWanCommand : VirtualWanBaseCmdlet
4848
ParameterSetName = CortexParameterSetNames.ByVirtualWanName,
4949
Mandatory = true,
5050
HelpMessage = "The virtual wan name.")]
51+
[ResourceNameCompleter("Microsoft.Network/virtualWans", "ResourceGroupName")]
5152
[ValidateNotNullOrEmpty]
5253
public string Name { get; set; }
5354

src/ResourceManager/Network/Commands.Network/Cortex/VirtualWan/UpdateAzureRmVirtualWanCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class UpdateAzureRmVirtualWanCommand : VirtualWanBaseCmdlet
4848
ParameterSetName = CortexParameterSetNames.ByVirtualWanName,
4949
Mandatory = true,
5050
HelpMessage = "The resource name.")]
51+
[ResourceNameCompleter("Microsoft.Network/virtualWans", "ResourceGroupName")]
5152
[ValidateNotNullOrEmpty]
5253
public string Name { get; set; }
5354

src/ResourceManager/Network/Commands.Network/Cortex/VpnConnection/GetAzureRmVpnConnectionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class GetAzureRmVpnConnectionCommand : VpnConnectionBaseCmdlet
4848
Mandatory = true,
4949
ParameterSetName = CortexParameterSetNames.ByVpnGatewayName,
5050
HelpMessage = "The parent resource name.")]
51+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
5152
[ValidateNotNullOrEmpty]
5253
public string ParentResourceName { get; set; }
5354

@@ -74,6 +75,7 @@ public class GetAzureRmVpnConnectionCommand : VpnConnectionBaseCmdlet
7475
[Parameter(
7576
Mandatory = false,
7677
HelpMessage = "The resource name.")]
78+
[ResourceNameCompleter("Microsoft.Network/vpnGateways/vpnConnections", "ResourceGroupName", "ParentResourceName")]
7779
[ValidateNotNullOrEmpty]
7880
public string Name { get; set; }
7981

src/ResourceManager/Network/Commands.Network/Cortex/VpnConnection/NewAzureRmVpnConnectionCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class NewAzureRmVpnConnectionCommand : VpnConnectionBaseCmdlet
5757
Mandatory = true,
5858
ParameterSetName = CortexParameterSetNames.ByVpnGatewayName + CortexParameterSetNames.ByVpnSiteResourceId,
5959
HelpMessage = "The resource group name.")]
60+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
6061
[ValidateNotNullOrEmpty]
6162
public string ParentResourceName { get; set; }
6263

src/ResourceManager/Network/Commands.Network/Cortex/VpnConnection/RemoveAzureRmVpnConnectionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class RemoveVpnConnectionCommand : VpnConnectionBaseCmdlet
4949
Mandatory = true,
5050
ParameterSetName = CortexParameterSetNames.ByVpnConnectionName,
5151
HelpMessage = "The parent resource name.")]
52+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
5253
[ValidateNotNullOrEmpty]
5354
public string ParentResourceName { get; set; }
5455

@@ -57,6 +58,7 @@ public class RemoveVpnConnectionCommand : VpnConnectionBaseCmdlet
5758
Mandatory = true,
5859
ParameterSetName = CortexParameterSetNames.ByVpnConnectionName,
5960
HelpMessage = "The resource name.")]
61+
[ResourceNameCompleter("Microsoft.Network/vpnGateways/vpnConnections", "ResourceGroupName", "ParentResourceName")]
6062
[ValidateNotNullOrEmpty]
6163
public string Name { get; set; }
6264

src/ResourceManager/Network/Commands.Network/Cortex/VpnConnection/UpdateAzureRmVpnConnectionCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public class UpdateAzureRmVpnConnectionCommand : VpnConnectionBaseCmdlet
4949
Mandatory = true,
5050
ParameterSetName = CortexParameterSetNames.ByVpnConnectionName,
5151
HelpMessage = "The parent resource name.")]
52+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
5253
[ValidateNotNullOrEmpty]
5354
public string ParentResourceName { get; set; }
5455

@@ -57,6 +58,7 @@ public class UpdateAzureRmVpnConnectionCommand : VpnConnectionBaseCmdlet
5758
Mandatory = true,
5859
ParameterSetName = CortexParameterSetNames.ByVpnConnectionName,
5960
HelpMessage = "The resource name.")]
61+
[ResourceNameCompleter("Microsoft.Network/vpnGateways/vpnConnections", "ResourceGroupName", "ParentResourceName")]
6062
[ValidateNotNullOrEmpty]
6163
public string Name { get; set; }
6264

src/ResourceManager/Network/Commands.Network/Cortex/VpnGateway/GetAzureRmVpnGatewayCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class GetAzureRmVpnGatewayCommand : VpnGatewayBaseCmdlet
3939
Mandatory = false,
4040
ParameterSetName = "ListByResourceGroupName",
4141
HelpMessage = "The resource name.")]
42+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
4243
[ValidateNotNullOrEmpty]
4344
public string Name { get; set; }
4445

src/ResourceManager/Network/Commands.Network/Cortex/VpnGateway/RemoveAzureRmVpnGatewayCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class RemoveAzureRmVpnGatewayCommand : VpnGatewayBaseCmdlet
4848
ParameterSetName = CortexParameterSetNames.ByVpnGatewayName,
4949
Mandatory = true,
5050
HelpMessage = "The vpnGateway name.")]
51+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
5152
[ValidateNotNullOrEmpty]
5253
public string Name { get; set; }
5354

src/ResourceManager/Network/Commands.Network/Cortex/VpnGateway/UpdateAzureRmVpnGatewayCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class UpdateAzureRmVpnGatewayCommand : VpnGatewayBaseCmdlet
5050
ParameterSetName = CortexParameterSetNames.ByVpnGatewayName,
5151
Mandatory = true,
5252
HelpMessage = "The virtual wan name.")]
53+
[ResourceNameCompleter("Microsoft.Network/vpnGateways", "ResourceGroupName")]
5354
[ValidateNotNullOrEmpty]
5455
public string Name { get; set; }
5556

src/ResourceManager/Network/Commands.Network/Cortex/VpnSite/GetAzureRmVpnSiteCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public class GetAzureRmVpnSiteCommand : VpnSiteBaseCmdlet
3939
Mandatory = false,
4040
ParameterSetName = "ListByResourceGroupName",
4141
HelpMessage = "The resource name.")]
42+
[ResourceNameCompleter("Microsoft.Network/vpnSites", "ResourceGroupName")]
4243
[ValidateNotNullOrEmpty]
4344
public string Name { get; set; }
4445

src/ResourceManager/Network/Commands.Network/Cortex/VpnSite/NewAzureRmVpnSiteCommand.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,14 @@ public class NewAzureRmVpnSiteCommand : VpnSiteBaseCmdlet
6060
Mandatory = true,
6161
ParameterSetName = CortexParameterSetNames.ByVirtualWanName,
6262
HelpMessage = "The resource group name of the VirtualWan this VpnSite needs to be connected to.")]
63+
[ResourceGroupCompleter]
6364
public string VirtualWanResourceGroupName { get; set; }
6465

6566
[Parameter(
6667
Mandatory = true,
6768
ParameterSetName = CortexParameterSetNames.ByVirtualWanName,
6869
HelpMessage = "The name of the VirtualWan this VpnSite needs to be connected to.")]
70+
[ResourceNameCompleter("Microsoft.Network/virtualWans", "VirtualWanResourceGroupName")]
6971
public string VirtualWanName { get; set; }
7072

7173
[Parameter(

src/ResourceManager/Network/Commands.Network/Cortex/VpnSite/RemoveAzureRmVpnSiteCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class RemoveAzureRmVpnSiteCommand : VpnSiteBaseCmdlet
4848
ParameterSetName = CortexParameterSetNames.ByVpnSiteName,
4949
Mandatory = true,
5050
HelpMessage = "The vpnSite name.")]
51+
[ResourceNameCompleter("Microsoft.Network/vpnSites", "ResourceGroupName")]
5152
[ValidateNotNullOrEmpty]
5253
public string Name { get; set; }
5354

src/ResourceManager/Network/Commands.Network/Cortex/VpnSite/UpdateAzureRmVpnSiteCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public class UpdateAzureRmVpnSiteCommand : VpnSiteBaseCmdlet
7373
ParameterSetName = CortexParameterSetNames.ByVpnSiteName + "NoVirtualWanUpdate",
7474
Mandatory = true,
7575
HelpMessage = "The resource name.")]
76+
[ResourceNameCompleter("Microsoft.Network/vpnSites", "ResourceGroupName")]
7677
[ValidateNotNullOrEmpty]
7778
public string Name { get; set; }
7879

src/ResourceManager/Network/Commands.Network/DdosProtectionPlan/GetAzureRMDdosProtectionPlanCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public partial class GetAzureRmDdosProtectionPlan : NetworkBaseCmdlet
5454
Mandatory = true,
5555
HelpMessage = "Specifies the name of the DDoS protection plan.",
5656
ValueFromPipelineByPropertyName = true)]
57+
[ResourceNameCompleter("Microsoft.Network/ddosProtectionPlans", "ResourceGroupName")]
5758
[ValidateNotNullOrEmpty]
5859
public string Name { get; set; }
5960

src/ResourceManager/Network/Commands.Network/DdosProtectionPlan/RemoveAzureRMDdosProtectionPlanCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class RemoveAzureRmDdosProtectionPlan : NetworkBaseCmdlet
4141
Mandatory = true,
4242
HelpMessage = "Specifies the name of the DDoS protection plan to be removed.",
4343
ValueFromPipelineByPropertyName = true)]
44+
[ResourceNameCompleter("Microsoft.Network/ddosProtectionPlans", "ResourceGroupName")]
4445
[ValidateNotNullOrEmpty]
4546
public string Name { get; set; }
4647

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class GetAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
3030
Mandatory = false,
3131
ValueFromPipelineByPropertyName = true,
3232
HelpMessage = "The resource name.")]
33+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
3334
[ValidateNotNullOrEmpty]
3435
public virtual string Name { get; set; }
3536

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public class MoveAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdlet
3232
Mandatory = true,
3333
ValueFromPipelineByPropertyName = true,
3434
HelpMessage = "The resource name.")]
35+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
3536
[ValidateNotNullOrEmpty]
3637
public virtual string Name { get; set; }
3738

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class RemoveAzureExpressRouteCircuitCommand : ExpressRouteCircuitBaseCmdl
2626
Mandatory = true,
2727
ValueFromPipelineByPropertyName = true,
2828
HelpMessage = "The resource name.")]
29+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
2930
[ValidateNotNullOrEmpty]
3031
public virtual string Name { get; set; }
3132

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ public class GetAzureExpressRouteCircuitARPTableCommand : NetworkBaseCmdlet
4646
[Parameter(
4747
Mandatory = true,
4848
ValueFromPipelineByPropertyName = true,
49-
HelpMessage = "The Name of ExpressRoute Circuit")]
50-
[ValidateNotNullOrEmpty]
49+
HelpMessage = "The Name of ExpressRoute Circuit")]
50+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
51+
[ValidateNotNullOrEmpty]
5152
public string ExpressRouteCircuitName { get; set; }
5253

5354
[Parameter(

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ public class GetAzureRmExpressRouteCircuitRouteTable : NetworkBaseCmdlet
4040
[Parameter(
4141
Mandatory = true,
4242
ValueFromPipelineByPropertyName = true,
43-
HelpMessage = "The Name of ExpressRoute Circuit")]
44-
[ValidateNotNullOrEmpty]
43+
HelpMessage = "The Name of ExpressRoute Circuit")]
44+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
45+
[ValidateNotNullOrEmpty]
4546
public string ExpressRouteCircuitName { get; set; }
4647

4748
[Parameter(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class GetAzureRmExpressRouteCircuitRouteTableSummaryCommand : NetworkBase
4141
Mandatory = true,
4242
ValueFromPipelineByPropertyName = true,
4343
HelpMessage = "The Name of ExpressRoute Circuit")]
44+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
4445
[ValidateNotNullOrEmpty]
4546
public string ExpressRouteCircuitName { get; set; }
4647

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public class GetAzureExpressRouteCircuitStatsCommand : NetworkBaseCmdlet
3535
[Parameter(
3636
Mandatory = true,
3737
ValueFromPipelineByPropertyName = true,
38-
HelpMessage = "The Name of ExpressRoute Circuit")]
38+
HelpMessage = "The Name of ExpressRoute Circuit")]
39+
[ResourceNameCompleter("Microsoft.Network/expressRouteCircuits", "ResourceGroupName")]
3940
[ValidateNotNullOrEmpty]
4041
public string ExpressRouteCircuitName { get; set; }
4142

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public class GetAzureRMExpressRouteCrossConnectionArpTableCommand : ExpressRoute
4141
ValueFromPipelineByPropertyName = true,
4242
HelpMessage = "The Name of Express Route Cross Connection",
4343
ParameterSetName = "SpecifyByParameterValues")]
44+
[ResourceNameCompleter("Microsoft.Network/expressRouteCrossConnections", "ResourceGroupName")]
4445
[ValidateNotNullOrEmpty]
4546
public string CrossConnectionName { get; set; }
4647

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class GetAzureRMExpressRouteCrossConnectionRouteTableCommand : ExpressRou
4040
ValueFromPipelineByPropertyName = true,
4141
HelpMessage = "The Name of Express Route Cross Connection",
4242
ParameterSetName = "SpecifyByParameterValues")]
43+
[ResourceNameCompleter("Microsoft.Network/expressRouteCrossConnections", "ResourceGroupName")]
4344
[ValidateNotNullOrEmpty]
4445
public string CrossConnectionName { get; set; }
4546

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class GetAzureRMExpressRouteCrossConnectionRouteTableSummaryCommand : Exp
4040
ValueFromPipelineByPropertyName = true,
4141
HelpMessage = "The Name of Express Route Cross Connection",
4242
ParameterSetName = "SpecifyByParameterValues")]
43+
[ResourceNameCompleter("Microsoft.Network/expressRouteCrossConnections", "ResourceGroupName")]
4344
[ValidateNotNullOrEmpty]
4445
public string CrossConnectionName { get; set; }
4546

0 commit comments

Comments
 (0)