Skip to content

Commit 7f0fcaa

Browse files
committed
Renaming websites to Webapp and also webhostingplan to app service plan
1 parent 9d03c61 commit 7f0fcaa

22 files changed

+279
-79
lines changed

src/ResourceManager/Websites/Commands.Websites.Test/Commands.Websites.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<ItemGroup>
111111
<Compile Include="NewAzureWebsitesCommandTests.cs" />
112112
<Compile Include="ScenarioTests\WebsitesController.cs" />
113-
<Compile Include="ScenarioTests\WebsitesTests.cs" />
113+
<Compile Include="ScenarioTests\WebAppTests.cs" />
114114
<Compile Include="WebsitesTestHelpers.cs" />
115115
<Compile Include="Properties\AssemblyInfo.cs" />
116116
</ItemGroup>
@@ -122,7 +122,7 @@
122122
<None Include="ScenarioTests\Common.ps1">
123123
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
124124
</None>
125-
<None Include="ScenarioTests\WebsitesTests.ps1">
125+
<None Include="ScenarioTests\WebAppTests.ps1">
126126
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
127127
</None>
128128
<None Include="SessionRecords\Microsoft.Azure.Commands.Websites.Test.ScenarioTests.WebsitesTests\TestCreatesNewSimpleWebsite.json">

src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebsitesTests.cs renamed to src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebAppTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818

1919
namespace Microsoft.Azure.Commands.Websites.Test.ScenarioTests
2020
{
21-
public class WebsitesTests
21+
public class WebAppTests
2222
{
2323
[Fact]
2424
[Trait(Category.AcceptanceType, Category.CheckIn)]
2525
public void TestCreatesNewSimpleWebsite()
2626
{
27-
WebsitesController.NewInstance.RunPsTest("Test-CreatesNewSimpleWebsite");
27+
WebsitesController.NewInstance.RunPsTest("Test-CreatesNewSimpleWebApp");
2828
}
2929

3030
[Fact]
3131
[Trait(Category.AcceptanceType, Category.CheckIn)]
3232
public void TestCreatesNewWebHostingPlan()
3333
{
34-
WebsitesController.NewInstance.RunPsTest("Test-CreatesNewWebHostingPlan");
34+
WebsitesController.NewInstance.RunPsTest("Test-CreatesNewAppServicePlan");
3535
}
3636
}
3737
}

src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebsitesTests.ps1 renamed to src/ResourceManager/Websites/Commands.Websites.Test/ScenarioTests/WebAppTests.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.SYNOPSIS
1717
Tests creating a new website.
1818
#>
19-
function Test-CreatesNewSimpleWebsite
19+
function Test-CreatesNewSimpleWebApp
2020
{
2121
# Setup
2222
$rgname = Get-ResourceGroupName
@@ -29,11 +29,11 @@ function Test-CreatesNewSimpleWebsite
2929
{
3030
#Setup
3131
New-AzureResourceGroup -Name $rgname -Location $location
32-
New-AzureWebHostingPlan -ResourceGroupName $rgname -Name $whpName -Location $location
32+
New-AzureAppServicePlan -ResourceGroupName $rgname -Name $whpName -Location $location
3333

3434
# Test
35-
$actual = New-AzureWebsite -ResourceGroupName $rgname -Name $wname -Location $location -WebHostingPlan $whpName
36-
$result = Get-AzureWebsite -ResourceGroupName $rgname -Name $wname
35+
$actual = New-AzureWebApp -ResourceGroupName $rgname -Name $wname -Location $location -AppServicePlan $whpName
36+
$result = Get-AzureWebApp -ResourceGroupName $rgname -Name $wname
3737

3838
# Assert
3939
Assert-AreEqual $wname $result.Name
@@ -42,7 +42,7 @@ function Test-CreatesNewSimpleWebsite
4242
finally
4343
{
4444
# Cleanup
45-
Remove-AzureWebsite -ResourceGroupName $rgname -Name $wname -Force
45+
Remove-AzureWebApp -ResourceGroupName $rgname -Name $wname -Force
4646
Remove-AzureWebHostingPlan -ResourceGroupName $rgname -Name $whpName -Force
4747
Remove-AzureResourceGroup -Name $rgname -Force
4848
}
@@ -52,7 +52,7 @@ function Test-CreatesNewSimpleWebsite
5252
.SYNOPSIS
5353
Tests creating a new Web Hosting Plan.
5454
#>
55-
function Test-CreatesNewWebHostingPlan
55+
function Test-CreatesNewAppServicePlan
5656
{
5757
# Setup
5858
$rgname = Get-ResourceGroupName
@@ -64,8 +64,8 @@ function Test-CreatesNewWebHostingPlan
6464
#Setup
6565
New-AzureResourceGroup -Name $rgname -Location $location
6666
# Test
67-
$actual = New-AzureWebHostingPlan -ResourceGroupName $rgname -Name $whpName -Location $location
68-
$result = Get-AzureWebHostingPlan -ResourceGroupName $rgname -Name $whpName
67+
$actual = New-AzureAppServicePlan -ResourceGroupName $rgname -Name $whpName -Location $location
68+
$result = Get-AzureAppServicePlan -ResourceGroupName $rgname -Name $whpName
6969
# Assert
7070
Assert-AreEqual $whpName $result.WebHostingPlan.Name
7171
Assert-AreEqual 1 $result.WebHostingPlan.Properties.NumberOfWorkers
@@ -75,7 +75,7 @@ function Test-CreatesNewWebHostingPlan
7575
finally
7676
{
7777
# Cleanup
78-
Remove-AzureWebHostingPlan -ResourceGroupName $rgname -Name $whpName -Force
78+
Remove-AzureAppServicePlan -ResourceGroupName $rgname -Name $whpName -Force
7979
Remove-AzureResourceGroup -Name $rgname -Force
8080
}
8181
}

src/ResourceManager/Websites/Commands.Websites.Test/packages.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
77
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Authorization" version="0.17.0-preview" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.Resources" version="2.14.1-preview" targetFramework="net45" />
9+
<package id="Microsoft.Azure.Management.Resources" version="2.13.0-preview" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Management.WebSites" version="0.16.4-prerelease" targetFramework="net45" />
11+
<package id="Microsoft.Azure.Management.Resources" version="2.14.1-preview" targetFramework="net45" />
12+
<package id="Microsoft.Azure.Management.WebSites" version="0.16.1-prerelease" targetFramework="net45" />
1113
<package id="Microsoft.Azure.Test.Framework" version="1.0.5513.27084-prerelease" targetFramework="net45" />
1214
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.0.5513.27084-prerelease" targetFramework="net45" />
1315
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebHostingPlan/GetAzureWebHostingPlan.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlan/GetAzureAppServicePlan.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
using Microsoft.Azure.Commands.Websites.Utilities;
3434

3535

36-
namespace Microsoft.Azure.Commands.Websites.Cmdlets.WebHostingPlan
36+
namespace Microsoft.Azure.Commands.Websites.Cmdlets.AppServicePlan
3737
{
3838
/// <summary>
3939
/// this commandlet will let you Get an Azure Web Hosting Plan using ARM APIs
4040
/// </summary>
41-
[Cmdlet(VerbsCommon.Get, "AzureWebHostingPlan"), OutputType(typeof(WebHostingPlanGetResponse), typeof(WebHostingPlanListResponse))]
42-
public class GetWebHostingPlanCmdlet : WebHostingPlanBaseNotMandatoryCmdlet
41+
[Cmdlet(VerbsCommon.Get, "AzureAppServicePlan"), OutputType(typeof(WebHostingPlanGetResponse), typeof(WebHostingPlanListResponse))]
42+
public class GetAppServicePlanCmdlet : WebHostingPlanBaseNotMandatoryCmdlet
4343
{
4444
public override void ExecuteCmdlet()
4545
{
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
using Microsoft.WindowsAzure.Commands.Utilities.Common;
3333
using Microsoft.Azure.Commands.Websites.Utilities;
3434

35-
namespace Microsoft.Azure.Commands.Websites.Cmdlets.WebHostingPlan
35+
namespace Microsoft.Azure.Commands.Websites.Cmdlets.AppServicePlan
3636
{
3737
/// <summary>
3838
/// this commandlet will let you create a new Azure Web Hosting Plan using ARM APIs
3939
/// </summary>
40-
[Cmdlet(VerbsCommon.Get, "AzureWebHostingPlanMetrics"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
41-
public class GetAzureWebHostingPlanMetricsCmdlet : WebHostingPlanBaseCmdlet
40+
[Cmdlet(VerbsCommon.Get, "AzureAppServicePlanMetrics"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
41+
public class GetAzureAppServicePlanMetricsCmdlet : AppServicePlanBaseCmdlet
4242
{
4343
[Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "List of metrics names to retrieve.")]
4444
[ValidateNotNullOrEmpty]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebHostingPlan/NewAzureWebHostingPlan.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlan/NewAzureAppServicePlan.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@
3232
using Microsoft.WindowsAzure.Commands.Utilities.Common;
3333
using Microsoft.Azure.Commands.Websites.Utilities;
3434

35-
namespace Microsoft.Azure.Commands.Websites.Cmdlets.WebHostingPlan
35+
namespace Microsoft.Azure.Commands.Websites.Cmdlets.AppServicePlan
3636
{
3737
/// <summary>
3838
/// this commandlet will let you create a new Azure Web Hosting Plan using ARM APIs
3939
/// </summary>
40-
[Cmdlet(VerbsCommon.New, "AzureWebHostingPlan"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
41-
public class NewAzureWebHostingPlanCmdlet : WebHostingPlanBaseCmdlet
40+
[Cmdlet(VerbsCommon.New, "AzureAppServicePlan"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
41+
public class NewAzureAppServicePlanCmdlet : AppServicePlanBaseCmdlet
4242
{
4343

44-
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the web hosting plan.")]
44+
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the app service plan.")]
4545
[ValidateNotNullOrEmptyAttribute]
4646
public string Location { get; set; }
4747

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebHostingPlan/RemoveWebHostingPlan.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlan/RemoveAppServicePlan.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
using Microsoft.Azure.Commands.Websites.Utilities;
3434

3535

36-
namespace Microsoft.Azure.Commands.Websites.Cmdlets.WebHostingPlan
36+
namespace Microsoft.Azure.Commands.Websites.Cmdlets.AppServicePlan
3737
{
3838
/// <summary>
3939
/// this commandlet will let you delete an Azure Web Hosting Plan using ARM APIs
4040
/// </summary>
41-
[Cmdlet(VerbsCommon.Remove, "AzureWebHostingPlan"), OutputType(typeof(AzureOperationResponse))]
42-
public class RemoveWebHostingPlanCmdlet : WebHostingPlanBaseCmdlet
41+
[Cmdlet(VerbsCommon.Remove, "AzureAppServicePlan"), OutputType(typeof(AzureOperationResponse))]
42+
public class RemoveAppServicePlanCmdlet : AppServicePlanBaseCmdlet
4343
{
4444
[Parameter(Mandatory = false, HelpMessage = "Do not ask for confirmation.")]
4545
public SwitchParameter Force { get; set; }

src/ResourceManager/Websites/Commands.Websites/Cmdlets/WebHostingPlan/SetAzureWebHostingPlan.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/AppServicePlan/SetAzureAppServicePlan.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131
using Microsoft.WindowsAzure.Commands.Utilities.Common;
3232
using Microsoft.Azure.Commands.Websites.Utilities;
3333

34-
namespace Microsoft.Azure.Commands.Websites.Cmdlets.WebHostingPlan
34+
namespace Microsoft.Azure.Commands.Websites.Cmdlets.AppServicePlan
3535
{
3636
/// <summary>
3737
/// this commandlet will let you create a new Azure Web Hosting Plan using ARM APIs
3838
/// </summary>
39-
[Cmdlet(VerbsCommon.Set, "AzureWebHostingPlan"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
40-
public class SetAzureWebHostingPlanCmdlet : WebHostingPlanBaseCmdlet
39+
[Cmdlet(VerbsCommon.Set, "AzureAppServicePlan"), OutputType(typeof(WebHostingPlanCreateOrUpdateResponse))]
40+
public class SetAzureAppServicePlanCmdlet : AppServicePlanBaseCmdlet
4141
{
4242

43-
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the web hosting plan.")]
43+
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the app service plan.")]
4444
[ValidateNotNullOrEmptyAttribute]
4545
public string Location { get; set; }
4646

47-
[Parameter(Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The Sku of the Webhosting plan eg: free, shared, basic, standard.")]
47+
[Parameter(Position = 3, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The Sku of the app service plan eg: free, shared, basic, standard.")]
4848
[ValidateSet("Free", "Shared", "Basic", "Standard", "Premium", IgnoreCase = true)]
4949
[ValidateNotNullOrEmptyAttribute]
5050
public string Sku { get; set; }

src/ResourceManager/Websites/Commands.Websites/Cmdlets/GetAzureWebsite.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/GetAzureWebApp.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using Microsoft.Azure.Management.WebSites.Models;
2424
using Microsoft.WindowsAzure;
2525
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
26-
using Microsoft.Azure.Commands.Websites;
26+
using Microsoft.Azure.Commands.Webpp;
2727
using Microsoft.Azure.Management.WebSites;
2828
using System.Net.Http;
2929
using System.Threading;
@@ -34,13 +34,14 @@
3434
using Microsoft.Azure.Commands.Websites.Utilities;
3535

3636

37+
3738
namespace Microsoft.Azure.Commands.Websites.Cmdlets
3839
{
3940
/// <summary>
4041
/// this commandlet will let you create a new Azure Websites using ARM APIs
4142
/// </summary>
42-
[Cmdlet(VerbsCommon.Get, "AzureWebsite")]
43-
public class GetAzureWebsiteCmdlet : WebsiteBaseSlotCmdlet
43+
[Cmdlet(VerbsCommon.Get, "AzureWebApp")]
44+
public class GetAzureWebAppCmdlet : WebAppBaseSlotCmdlet
4445
{
4546
public override void ExecuteCmdlet()
4647
{

src/ResourceManager/Websites/Commands.Websites/Cmdlets/NewAzureWebsites.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/NewAzureWebApp.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
using Microsoft.Azure.Management.WebSites.Models;
2323
using Microsoft.WindowsAzure;
2424
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
25-
using Microsoft.Azure.Commands.Websites;
25+
using Microsoft.Azure.Commands.Webpp;
2626
using Microsoft.Azure.Management.WebSites;
2727
using System.Net.Http;
2828
using System.Threading;
@@ -38,23 +38,23 @@ namespace Microsoft.Azure.Commands.Websites.Cmdlets
3838
/// <summary>
3939
/// this commandlet will let you create a new Azure Websites using ARM APIs
4040
/// </summary>
41-
[Cmdlet(VerbsCommon.New, "AzureWebsite")]
42-
public class NewAzureWebsiteCmdlet : WebsiteBaseCmdlet
41+
[Cmdlet(VerbsCommon.New, "AzureWebApp")]
42+
public class NewAzureWebsiteCmdlet : WebAppBaseCmdlet
4343
{
4444

45-
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the website slot.")]
45+
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the web app slot.")]
4646
[ValidateNotNullOrEmptyAttribute]
4747
public string SlotName { get; set; }
4848

49-
[Parameter(Position = 3, Mandatory = true, HelpMessage = "The Location of the Website eg: West US.")]
49+
[Parameter(Position = 3, Mandatory = true, HelpMessage = "The Location of the web app eg: West US.")]
5050
public string Location { get; set; }
5151

52-
[Parameter(Position = 4, Mandatory = true, HelpMessage = "The name of the web hosting plan eg: Default1.")]
53-
public string WebHostingPlan { get; set; }
52+
[Parameter(Position = 4, Mandatory = true, HelpMessage = "The name of the app service plan eg: Default1.")]
53+
public string AppServicePlan { get; set; }
5454

5555
public override void ExecuteCmdlet()
5656
{
57-
WriteObject(WebsitesClient.CreateWebsite(ResourceGroupName, Name, SlotName, Location, WebHostingPlan));
57+
WriteObject(WebsitesClient.CreateWebsite(ResourceGroupName, Name, SlotName, Location, AppServicePlan));
5858

5959
}
6060

src/ResourceManager/Websites/Commands.Websites/Cmdlets/RemoveAzureWebsite.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/RemoveAzureWebApp.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using Microsoft.Azure.Management.WebSites.Models;
2424
using Microsoft.WindowsAzure;
2525
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
26-
using Microsoft.Azure.Commands.Websites;
26+
using Microsoft.Azure.Commands.Webpp;
2727
using Microsoft.Azure.Management.WebSites;
2828
using System.Net.Http;
2929
using System.Threading;
@@ -34,14 +34,13 @@
3434
using Microsoft.Azure.Commands.Websites.Utilities;
3535
using Microsoft.Azure.Commands.Websites.Properties;
3636

37-
38-
namespace Microsoft.Azure.Commands.Websites.Cmdlets
37+
namespace Microsoft.Azure.Commands.WebApp.Cmdlets
3938
{
4039
/// <summary>
4140
/// this commandlet will let you delete an Azure website
4241
/// </summary>
43-
[Cmdlet(VerbsCommon.Remove, "AzureWebsite")]
44-
public class RemoveAzureWebsiteCmdlet : WebsiteBaseNotMandatoryCmdlet
42+
[Cmdlet(VerbsCommon.Remove, "AzureWebApp")]
43+
public class RemoveAzureWebsiteCmdlet : WebAppBaseNotMandatoryCmdlet
4544
{
4645

4746
//always delete the slots,

src/ResourceManager/Websites/Commands.Websites/Cmdlets/RestartAzureWebsite.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/RestartAzureWebApp.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using Microsoft.Azure.Management.WebSites.Models;
2424
using Microsoft.WindowsAzure;
2525
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
26-
using Microsoft.Azure.Commands.Websites;
26+
using Microsoft.Azure.Commands.Webpp;
2727
using Microsoft.Azure.Management.WebSites;
2828
using System.Net.Http;
2929
using System.Threading;
@@ -39,11 +39,11 @@ namespace Microsoft.Azure.Commands.Websites.Cmdlets
3939
/// <summary>
4040
/// this commandlet will let you restart an Azure Website
4141
/// </summary>
42-
[Cmdlet(VerbsLifecycle.Restart, "AzureWebsite")]
43-
public class RestartAzureWebsiteCmdlet : WebsiteBaseCmdlet
42+
[Cmdlet(VerbsLifecycle.Restart, "AzureWebApp")]
43+
public class RestartAzureWebsiteCmdlet : WebAppBaseCmdlet
4444
{
4545

46-
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the website slot.")]
46+
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the web app slot.")]
4747
[ValidateNotNullOrEmptyAttribute]
4848
public string SlotName { get; set; }
4949

src/ResourceManager/Websites/Commands.Websites/Cmdlets/StartAzureWebsite.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/StartAzureWebApp.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using Microsoft.Azure.Management.WebSites.Models;
2424
using Microsoft.WindowsAzure;
2525
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
26-
using Microsoft.Azure.Commands.Websites;
26+
using Microsoft.Azure.Commands.Webpp;
2727
using Microsoft.Azure.Management.WebSites;
2828
using System.Net.Http;
2929
using System.Threading;
@@ -39,11 +39,11 @@ namespace Microsoft.Azure.Commands.Websites.Cmdlets
3939
/// <summary>
4040
/// this commandlet will let you Start an Azure Website
4141
/// </summary>
42-
[Cmdlet(VerbsLifecycle.Start, "AzureWebsite")]
43-
public class StartAzureWebsiteCmdlet : WebsiteBaseCmdlet
42+
[Cmdlet(VerbsLifecycle.Start, "AzureWebApp")]
43+
public class StartAzureWebsiteCmdlet : WebAppBaseCmdlet
4444
{
4545

46-
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the website slot.")]
46+
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the web app slot.")]
4747
[ValidateNotNullOrEmptyAttribute]
4848
public string SlotName { get; set; }
4949

src/ResourceManager/Websites/Commands.Websites/Cmdlets/StopAzureWebsite.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/StopAzureWebApp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
using Microsoft.Azure.Management.WebSites.Models;
2424
using Microsoft.WindowsAzure;
2525
using Microsoft.WindowsAzure.Commands.Utilities.CloudService;
26-
using Microsoft.Azure.Commands.Websites;
26+
using Microsoft.Azure.Commands.Webpp;
2727
using Microsoft.Azure.Management.WebSites;
2828
using System.Net.Http;
2929
using System.Threading;
@@ -40,10 +40,10 @@ namespace Microsoft.Azure.Commands.Websites.Cmdlets
4040
/// this commandlet will let you stop an Azure Website
4141
/// </summary>
4242
[Cmdlet(VerbsLifecycle.Stop, "AzureWebsite")]
43-
public class StopAzureWebsiteCmdlet : WebsiteBaseCmdlet
43+
public class StopAzureWebsiteCmdlet : WebAppBaseCmdlet
4444
{
4545

46-
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the website slot.")]
46+
[Parameter(Position = 2, Mandatory = false, HelpMessage = "The name of the web app slot.")]
4747
[ValidateNotNullOrEmptyAttribute]
4848
public string SlotName { get; set; }
4949

0 commit comments

Comments
 (0)