Skip to content

Commit 3283222

Browse files
committed
Add LocationCompleter to TrafficManager cmdlets
1 parent a86f8c9 commit 3283222

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ResourceManager/TrafficManager/Commands.TrafficManager2/Endpoint/AddAzureTrafficManagerEndpointConfig.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
namespace Microsoft.Azure.Commands.TrafficManager
2121
{
22+
using ResourceManager.Common.ArgumentCompleters;
2223
using System.Collections.Generic;
2324
using System.Linq;
2425

@@ -60,6 +61,7 @@ public class AddAzureTrafficManagerEndpointConfig : TrafficManagerBaseCmdlet
6061
public uint? Priority { get; set; }
6162

6263
[Parameter(Mandatory = false, HelpMessage = "The location of the endpoint.")]
64+
[LocationCompleter("Microsoft.Network/trafficmanagerprofiles")]
6365
[ValidateNotNullOrEmpty]
6466
public string EndpointLocation { get; set; }
6567

src/ResourceManager/TrafficManager/Commands.TrafficManager2/Endpoint/NewAzureTrafficManagerEndpoint.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public class NewAzureTrafficManagerEndpoint : TrafficManagerBaseCmdlet
6868
public uint? Priority { get; set; }
6969

7070
[Parameter(Mandatory = false, HelpMessage = "The location of the endpoint.")]
71+
[LocationCompleter("Microsoft.Network/trafficmanagerprofiles")]
7172
[ValidateNotNullOrEmpty]
7273
public string EndpointLocation { get; set; }
7374

0 commit comments

Comments
 (0)