Skip to content

Commit 515392b

Browse files
committed
Renaming Web App cmdlets to use 'Rm' instead of 'RM' and fixing Web App Certificate cmdlet filenames.
1 parent d2d0250 commit 515392b

30 files changed

+2616
-2208
lines changed

src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.SSLBindingTests/TestCreateNewWebAppSSLBinding.json

Lines changed: 387 additions & 339 deletions
Large diffs are not rendered by default.

src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.SSLBindingTests/TestGetNewWebAppSSLBinding.json

Lines changed: 549 additions & 453 deletions
Large diffs are not rendered by default.

src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.SSLBindingTests/TestGetWebAppCertificate.json

Lines changed: 394 additions & 370 deletions
Large diffs are not rendered by default.

src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.SSLBindingTests/TestRemoveNewWebAppSSLBinding.json

Lines changed: 546 additions & 450 deletions
Large diffs are not rendered by default.

src/ResourceManager/Websites/Commands.Websites.Test/SessionRecords/Microsoft.Azure.Commands.Websites.Test.ScenarioTests.SSLBindingTests/TestWebAppSSLBindingPipeSupport.json

Lines changed: 707 additions & 563 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.AppServicePlans
2626
/// <summary>
2727
/// this commandlet will let you Get an Azure App Service Plan using ARM APIs
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Get, "AzureRMAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku), typeof(ServerFarmCollection))]
29+
[Cmdlet(VerbsCommon.Get, "AzureRmAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku), typeof(ServerFarmCollection))]
3030
public class GetAppServicePlanCmdlet : WebAppBaseClientCmdLet
3131
{
3232
private const string ParameterSet1 = "S1";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2121
/// <summary>
2222
/// this commandlet will let you get Azure servce plan metrics
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Get, "AzureRMAppServicePlanMetrics")]
24+
[Cmdlet(VerbsCommon.Get, "AzureRmAppServicePlanMetrics")]
2525
public class GetAzureAppServicePlanMetricsCmdlet : AppServicePlanBaseCmdlet
2626
{
2727
[Parameter(Position = 2, Mandatory = true, HelpMessage = "Names of web app metrics")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.AppServicePlans
2222
/// <summary>
2323
/// this commandlet will let you create a new Azure App service Plan using ARM APIs
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.New, "AzureRMAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku))]
25+
[Cmdlet(VerbsCommon.New, "AzureRmAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku))]
2626
public class NewAzureAppServicePlanCmdlet : AppServicePlanBaseCmdlet
2727
{
2828
[Parameter(Position = 2, Mandatory = true, HelpMessage = "The location of the app service plan.")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.AppServicePlans
2222
/// <summary>
2323
/// this commandlet will let you set Azure App Service Plan using ARM APIs
2424
/// </summary>
25-
[Cmdlet(VerbsCommon.Set, "AzureRMAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku))]
25+
[Cmdlet(VerbsCommon.Set, "AzureRmAppServicePlan"), OutputType(typeof(ServerFarmWithRichSku))]
2626
public class SetAzureAppServicePlanCmdlet : AppServicePlanBaseCmdlet
2727
{
2828
[Parameter(ParameterSetName = ParameterSet1Name, Position = 2, Mandatory = false, HelpMessage = "The name of the admin web app")]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
1616
/// <summary>
1717
/// this commandlet will let you get existing web app certificates using ARM APIs
1818
/// </summary>
19-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppCertificate")]
20-
public class GetAzureRMWebAppCertificate : WebAppBaseClientCmdLet
19+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppCertificate")]
20+
public class GetAzureWebAppCertificate : WebAppBaseClientCmdLet
2121
{
2222
[Parameter(Position = 0, Mandatory = false, HelpMessage = "The name of the resource group.")]
2323
[ValidateNotNullOrEmpty]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/Certificates/GetAzureRMWebAppSSLBinding.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/Certificates/GetAzureWebAppSSLBinding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
1616
/// <summary>
1717
/// this commandlet will let you get an existing web app Ssl binding using ARM APIs
1818
/// </summary>
19-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppSSLBinding")]
20-
public class GetAzureRMWebAppSSLBinding : WebAppSSLBindingBaseCmdlet
19+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppSSLBinding")]
20+
public class GetAzureWebAppSSLBinding : WebAppSSLBindingBaseCmdlet
2121
{
2222
[Parameter(Position = 3, Mandatory = false, HelpMessage = "The name of the host name.")]
2323
[ValidateNotNullOrEmpty]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/Certificates/NewAzureRMWebAppSSLBinding.cs renamed to src/ResourceManager/Websites/Commands.Websites/Cmdlets/Certificates/NewAzureWebAppSSLBinding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2929
/// <summary>
3030
/// this commandlet will let you create a new Azure Web app using ARM APIs
3131
/// </summary>
32-
[Cmdlet(VerbsCommon.New, "AzureRMWebAppSSLBinding")]
33-
public class NewAzureRMWebAppSSLBinding : WebAppBaseClientCmdLet
32+
[Cmdlet(VerbsCommon.New, "AzureRmWebAppSSLBinding")]
33+
public class NewAzureWebAppSSLBinding : WebAppBaseClientCmdLet
3434
{
3535
const string CertNamePostFixSeparator = "_";
3636
const string ParameterSet1Name = "S1";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2020
/// <summary>
2121
/// this commandlet will let you delete an existing Web app Ssl binding
2222
/// </summary>
23-
[Cmdlet(VerbsCommon.Remove, "AzureRMWebAppSSLBinding")]
24-
public class RemoveAzureRMWebAppSSLBinding : WebAppSSLBindingBaseCmdlet
23+
[Cmdlet(VerbsCommon.Remove, "AzureRmWebAppSSLBinding")]
24+
public class RemoveAzureWebAppSSLBinding : WebAppSSLBindingBaseCmdlet
2525
{
2626
[Parameter(Position = 3, Mandatory = true, HelpMessage = "The name of the host name.")]
2727
[ValidateNotNullOrEmpty]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/GetAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2525
/// <summary>
2626
/// this commandlet will let you get a new Azure Web app slot using ARM APIs
2727
/// </summary>
28-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppSlot")]
28+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppSlot")]
2929
public class GetAzureWebAppSlotCmdlet : WebAppBaseClientCmdLet
3030
{
3131
protected const string ParameterSet1Name = "S1";

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/GetAzureWebAppSlotMetrics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2323
/// <summary>
2424
/// this commandlet will let you get Azure Web App slot metrics
2525
/// </summary>
26-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppSlotMetrics")]
26+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppSlotMetrics")]
2727
public class GetAzureWebAppSlotMetricsCmdlet : WebAppSlotBaseCmdlet
2828
{
2929
[Parameter(Position = 3, Mandatory = true, HelpMessage = "Names of web app metrics")]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/GetAzureWebAppSlotPublishingProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2323
/// <summary>
2424
/// this commandlet will get the publishing creds of the given Azure Web app slot using ARM APIs
2525
/// </summary>
26-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppSlotPublishingProfile")]
26+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppSlotPublishingProfile")]
2727
public class GetAzureWebAppSlotPublishingProfileCmdlet : WebAppSlotBaseCmdlet
2828
{
2929
private const string DefaultFormat = "WebDeploy";

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/NewAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2626
/// <summary>
2727
/// this commandlet will let you create a new Azure Web app slot using ARM APIs
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.New, "AzureRMWebAppSlot")]
29+
[Cmdlet(VerbsCommon.New, "AzureRmWebAppSlot")]
3030
public class NewAzureWebAppSlotCmdlet : WebAppBaseClientCmdLet
3131
{
3232
[Parameter(Position = 0, Mandatory = true, HelpMessage = "The name of the resource group.")]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/RemoveAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2121
/// <summary>
2222
/// this commandlet will let you delete an Azure web app slot
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Remove, "AzureRMWebAppSlot"), OutputType(typeof(AzureOperationResponse))]
24+
[Cmdlet(VerbsCommon.Remove, "AzureRmWebAppSlot"), OutputType(typeof(AzureOperationResponse))]
2525
public class RemoveAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
2626
{
2727
//always delete the slots,

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/ResetAzureWebAppSlotPublishingProfile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2121
/// <summary>
2222
/// This commandlet resets the publishing creds of the given Azure Web app slot
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Reset, "AzureRMWebAppSlotPublishingProfile")]
24+
[Cmdlet(VerbsCommon.Reset, "AzureRmWebAppSlotPublishingProfile")]
2525
public class ResetAzureWebAppPSlotublishingProfileCmdlet : WebAppSlotBaseCmdlet
2626
{
2727
public override void ExecuteCmdlet()

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/RestartAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2121
/// <summary>
2222
/// this commandlet will let you restart an Azure Web app slot
2323
/// </summary>
24-
[Cmdlet(VerbsLifecycle.Restart, "AzureRMWebAppSlot")]
24+
[Cmdlet(VerbsLifecycle.Restart, "AzureRmWebAppSlot")]
2525
public class RestartAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
2626
{
2727
public override void ExecuteCmdlet()

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/SetAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2626
/// <summary>
2727
/// this commandlet will let you create a new Azure Web app using ARM APIs
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Set, "AzureRMWebAppSlot")]
29+
[Cmdlet(VerbsCommon.Set, "AzureRmWebAppSlot")]
3030
public class SetAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
3131
{
3232
[Parameter(Position = 3, Mandatory = false, HelpMessage = "The name of the app service plan eg: Default1.")]

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/StartAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2121
/// <summary>
2222
/// this commandlet will let you Start an Azure Web app slot
2323
/// </summary>
24-
[Cmdlet(VerbsLifecycle.Start, "AzureRMWebAppSlot")]
24+
[Cmdlet(VerbsLifecycle.Start, "AzureRmWebAppSlot")]
2525
public class StartAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
2626
{
2727
public override void ExecuteCmdlet()

src/ResourceManager/Websites/Commands.Websites/Cmdlets/DeploymentSlots/StopAzureWebAppSlot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.DeploymentSlots
2121
/// <summary>
2222
/// this commandlet will let you stop an Azure Web app slot
2323
/// </summary>
24-
[Cmdlet(VerbsLifecycle.Stop, "AzureRMWebAppSlot")]
24+
[Cmdlet(VerbsLifecycle.Stop, "AzureRmWebAppSlot")]
2525
public class StopAzureWebAppSlotCmdlet : WebAppSlotBaseCmdlet
2626
{
2727
public override void ExecuteCmdlet()

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2626
/// <summary>
2727
/// this commandlet will let you get a new Azure Websites using ARM APIs
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Get, "AzureRMWebApp")]
29+
[Cmdlet(VerbsCommon.Get, "AzureRmWebApp")]
3030
public class GetAzureWebAppCmdlet : WebAppBaseClientCmdLet
3131
{
3232
private const string ParameterSet1 = "S1";
@@ -107,7 +107,7 @@ private void GetByWebAppName()
107107
WriteProgress(progressRecord);
108108
}
109109

110-
WriteObject(list[0]);
110+
WriteObject(list);
111111
}
112112

113113
private void GetByResourceGroup()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2121
/// <summary>
2222
/// this commandlet will let you get Azure Web App metrics
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppMetrics")]
24+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppMetrics")]
2525
public class GetAzureWebAppMetricsCmdlet : WebAppBaseCmdlet
2626
{
2727
[Parameter(Position = 2, Mandatory = true, HelpMessage = "Names of web app metrics")]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2121
/// <summary>
2222
/// this commandlet will get the publishing creds of the given Azure Web app using ARM APIs
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Get, "AzureRMWebAppPublishingProfile")]
24+
[Cmdlet(VerbsCommon.Get, "AzureRmWebAppPublishingProfile")]
2525
public class GetAzureWebAppPublishingProfileCmdlet : WebAppBaseCmdlet
2626
{
2727
private const string DefaultFormat = "WebDeploy";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
1919
/// <summary>
2020
/// this commandlet will let you delete an Azure web app
2121
/// </summary>
22-
[Cmdlet(VerbsCommon.Remove, "AzureRMWebApp")]
22+
[Cmdlet(VerbsCommon.Remove, "AzureRmWebApp")]
2323
public class RemoveAzureWebAppCmdlet : WebAppBaseCmdlet
2424
{
2525

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
2121
/// <summary>
2222
/// This commandlet resets the publishing creds of the given Azure Web app
2323
/// </summary>
24-
[Cmdlet(VerbsCommon.Reset, "AzureRMWebAppPublishingProfile")]
24+
[Cmdlet(VerbsCommon.Reset, "AzureRmWebAppPublishingProfile")]
2525
public class ResetAzureWebAppPublishingProfileCmdlet : WebAppBaseCmdlet
2626
{
2727
public override void ExecuteCmdlet()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Microsoft.Azure.Commands.WebApps.Cmdlets.WebApps
3030
/// <summary>
3131
/// this commandlet will let you create a new Azure Web app using ARM APIs
3232
/// </summary>
33-
[Cmdlet(VerbsCommon.Set, "AzureRMWebApp")]
33+
[Cmdlet(VerbsCommon.Set, "AzureRmWebApp")]
3434
public class SetAzureWebAppCmdlet : WebAppBaseCmdlet
3535
{
3636
[Parameter(ParameterSetName = ParameterSet1Name, Position = 2, Mandatory = false, HelpMessage = "The name of the app service plan eg: Default1.")]

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@
143143
</ItemGroup>
144144
<ItemGroup>
145145
<Compile Include="Cmdlets\AppServicePlans\GetAzureAppServicePlanMetrics.cs" />
146-
<Compile Include="Cmdlets\Certificates\GetAzureRMWebAppCertificate.cs" />
147-
<Compile Include="Cmdlets\Certificates\GetAzureRMWebAppSSLBinding.cs" />
148-
<Compile Include="Cmdlets\Certificates\NewAzureRMWebAppSSLBinding.cs" />
149-
<Compile Include="Cmdlets\Certificates\RemoveAzureRMWebAppSSLBinding.cs" />
146+
<Compile Include="Cmdlets\Certificates\GetAzureWebAppCertificate.cs" />
147+
<Compile Include="Cmdlets\Certificates\GetAzureWebAppSSLBinding.cs" />
148+
<Compile Include="Cmdlets\Certificates\NewAzureWebAppSSLBinding.cs" />
149+
<Compile Include="Cmdlets\Certificates\RemoveAzureWebAppSSLBinding.cs" />
150150
<Compile Include="Cmdlets\DeploymentSlots\GetAzureWebAppSlot.cs" />
151151
<Compile Include="Cmdlets\DeploymentSlots\GetAzureWebAppSlotMetrics.cs" />
152152
<Compile Include="Cmdlets\DeploymentSlots\GetAzureWebAppSlotPublishingProfile.cs" />

0 commit comments

Comments
 (0)