Skip to content

Commit 5bed387

Browse files
committed
Add LocationCompleter to Websites cmdlets
1 parent 3283222 commit 5bed387

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlans/GetAzureAppServicePlan.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class GetAppServicePlanCmdlet : WebAppBaseClientCmdLet
5151

5252

5353
[Parameter(ParameterSetName = ParameterSet2, Position = 0, Mandatory = true, HelpMessage = "The location of the app service plan.")]
54+
[LocationCompleter("Microsoft.Web/serverfarms")]
5455
[ValidateNotNullOrEmpty]
5556
public string Location { get; set; }
5657

src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlans/NewAzureAppServicePlan.cs

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

1515

16+
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1617
using Microsoft.Azure.Commands.WebApps.Utilities;
1718
using Microsoft.Azure.Management.WebSites.Models;
1819
using System.Management.Automation;
@@ -29,6 +30,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.AppServicePlans
2930
public class NewAzureAppServicePlanCmdlet : AppServicePlanBaseCmdlet
3031
{
3132
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the app service plan.")]
33+
[LocationCompleter("Microsoft.Web/serverfarms")]
3234
[ValidateNotNullOrEmpty]
3335
public string Location { get; set; }
3436

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebApps/GetAzureWebApp.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class GetAzureWebAppCmdlet : WebAppBaseClientCmdLet
5252
public ServerFarmWithRichSku AppServicePlan { get; set; }
5353

5454
[Parameter(ParameterSetName = ParameterSet3, Position = 0, Mandatory = true, HelpMessage = "The name of the web app location. Gets all web apps at location")]
55+
[LocationCompleter("Microsoft.Web/sites")]
5556
[ValidateNotNullOrEmpty]
5657
public string Location { get; set; }
5758

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebApps/NewAzureWebApp.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public class NewAzureWebAppCmdlet : WebAppBaseClientCmdLet
4848
public string Name { get; set; }
4949

5050
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The Location of the web app eg: West US.")]
51+
[LocationCompleter("Microsoft.Web/sites")]
5152
public string Location { get; set; }
5253

5354
[Parameter(Position = 3, Mandatory = false, HelpMessage = "The name of the app service plan eg: Default1.")]

0 commit comments

Comments
 (0)