Skip to content

Commit 5ab09d2

Browse files
Updated ParametreSet positions
1 parent c1e1a48 commit 5ab09d2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/Websites/Websites/Cmdlets/Certificates/NewAzureWebAppCertificate.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,13 @@
1818
using Microsoft.Azure.Commands.WebApps.Models.WebApp;
1919
using Microsoft.Azure.Commands.WebApps.Utilities;
2020
using Microsoft.Azure.Management.WebSites.Models;
21-
using Microsoft.Rest.Azure;
22-
using Microsoft.Rest.Serialization;
23-
using Newtonsoft.Json;
24-
using Newtonsoft.Json.Linq;
2521
using System;
26-
using System.Collections.Generic;
2722
using System.Linq;
2823
using System.Management.Automation;
2924
using System.Net;
3025
using System.Net.Http;
3126
using System.Text;
3227
using System.Threading;
33-
using System.Threading.Tasks;
3428

3529
namespace Microsoft.Azure.Commands.WebApps.Cmdlets.Certificates
3630
{
@@ -56,16 +50,16 @@ public class NewAzureWebAppCertificate : WebAppBaseClientCmdLet
5650
[ValidateNotNullOrEmpty]
5751
public string WebAppName { get; set; }
5852

59-
[Parameter(ParameterSetName = ParameterSet1Name, Position = 2, Mandatory = true, HelpMessage = "The name of the certificate")]
53+
[Parameter(ParameterSetName = ParameterSet1Name, Mandatory = false, HelpMessage = "The name of the certificate")]
6054
[ValidateNotNullOrEmpty]
6155
public string Name { get; set; }
6256

63-
[Parameter(ParameterSetName = ParameterSet1Name, Position = 3, Mandatory = false, HelpMessage = "The name of the web app slot.")]
57+
[Parameter(ParameterSetName = ParameterSet1Name, Position = 2, Mandatory = false, HelpMessage = "The name of the web app slot.")]
6458
[ResourceNameCompleter("Microsoft.Web/sites/slots", "ResourceGroupName", "WebAppName")]
6559
[ValidateNotNullOrEmpty]
6660
public string Slot { get; set; }
6761

68-
[Parameter(ParameterSetName = ParameterSet1Name, Position = 4, Mandatory = true, HelpMessage = "Custom hostnames associated with web app/slot.")]
62+
[Parameter(ParameterSetName = ParameterSet1Name, Position = 3, Mandatory = true, HelpMessage = "Custom hostnames associated with web app/slot.")]
6963
[ValidateNotNullOrEmpty]
7064
public string HostName { get; set; }
7165

0 commit comments

Comments
 (0)