18
18
using Microsoft . Azure . Commands . WebApps . Models . WebApp ;
19
19
using Microsoft . Azure . Commands . WebApps . Utilities ;
20
20
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 ;
25
21
using System ;
26
- using System . Collections . Generic ;
27
22
using System . Linq ;
28
23
using System . Management . Automation ;
29
24
using System . Net ;
30
25
using System . Net . Http ;
31
26
using System . Text ;
32
27
using System . Threading ;
33
- using System . Threading . Tasks ;
34
28
35
29
namespace Microsoft . Azure . Commands . WebApps . Cmdlets . Certificates
36
30
{
@@ -56,16 +50,16 @@ public class NewAzureWebAppCertificate : WebAppBaseClientCmdLet
56
50
[ ValidateNotNullOrEmpty ]
57
51
public string WebAppName { get ; set ; }
58
52
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" ) ]
60
54
[ ValidateNotNullOrEmpty ]
61
55
public string Name { get ; set ; }
62
56
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." ) ]
64
58
[ ResourceNameCompleter ( "Microsoft.Web/sites/slots" , "ResourceGroupName" , "WebAppName" ) ]
65
59
[ ValidateNotNullOrEmpty ]
66
60
public string Slot { get ; set ; }
67
61
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." ) ]
69
63
[ ValidateNotNullOrEmpty ]
70
64
public string HostName { get ; set ; }
71
65
0 commit comments