@@ -31,7 +31,6 @@ namespace Microsoft.Azure.Commands.Network
31
31
32
32
[ Cmdlet ( VerbsCommon . New ,
33
33
ResourceManager . Common . AzureRMConstants . AzureRMPrefix + "VpnServerConfiguration" ,
34
- DefaultParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByCertificateAuthentication ,
35
34
SupportsShouldProcess = true ) ,
36
35
OutputType ( typeof ( PSVpnServerConfiguration ) ) ]
37
36
public class NewAzureRmVpnServerConfigurationCommand : VpnServerConfigurationBaseCmdlet
@@ -76,64 +75,54 @@ public class NewAzureRmVpnServerConfigurationCommand : VpnServerConfigurationBas
76
75
77
76
[ Parameter (
78
77
Mandatory = false ,
79
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByCertificateAuthentication ,
80
78
HelpMessage = "A list of VpnClientRootCertificates to be added files' paths" ) ]
81
79
public string [ ] VpnClientRootCertificateFilesList { get ; set ; }
82
80
83
81
[ Parameter (
84
82
Mandatory = false ,
85
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByCertificateAuthentication ,
86
83
HelpMessage = "A list of VpnClientCertificates to be revoked files' paths" ) ]
87
84
public string [ ] VpnClientRevokedCertificateFilesList { get ; set ; }
88
85
89
86
[ Parameter (
90
87
Mandatory = false ,
91
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByRadiusAuthentication ,
92
88
HelpMessage = "P2S External Radius server address." ) ]
93
89
public string RadiusServerAddress { get ; set ; }
94
90
95
91
[ Parameter (
96
92
Mandatory = false ,
97
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByRadiusAuthentication ,
98
93
HelpMessage = "P2S External Radius server secret." ) ]
99
94
public SecureString RadiusServerSecret { get ; set ; }
100
95
101
96
[ Parameter (
102
97
Mandatory = false ,
103
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByRadiusAuthentication ,
104
98
HelpMessage = "P2S External multiple radius servers." ) ]
105
99
public PSRadiusServer [ ] RadiusServerList { get ; set ; }
106
100
107
101
[ Parameter (
108
102
Mandatory = false ,
109
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByRadiusAuthentication ,
110
103
HelpMessage = "A list of RadiusClientRootCertificate files' paths" ) ]
111
104
public string [ ] RadiusServerRootCertificateFilesList { get ; set ; }
112
105
113
106
[ Parameter (
114
107
Mandatory = false ,
115
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByRadiusAuthentication ,
116
108
HelpMessage = "A list of RadiusClientRootCertificate files' paths" ) ]
117
109
public string [ ] RadiusClientRootCertificateFilesList { get ; set ; }
118
110
119
111
[ Parameter (
120
112
Mandatory = false ,
121
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByAadAuthentication ,
122
113
HelpMessage = "AAD tenant for P2S AAD authentication." ) ]
123
114
[ ValidateNotNullOrEmpty ]
124
115
public string AadTenant { get ; set ; }
125
116
126
117
[ Parameter (
127
118
Mandatory = false ,
128
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByAadAuthentication ,
129
119
HelpMessage = "AAD audience for P2S AAD authentication." ) ]
130
120
[ ValidateNotNullOrEmpty ]
131
121
public string AadAudience { get ; set ; }
132
122
133
123
134
124
[ Parameter (
135
125
Mandatory = false ,
136
- ParameterSetName = CortexParameterSetNames . ByVpnServerConfigurationName + CortexParameterSetNames . ByAadAuthentication ,
137
126
HelpMessage = "AAD issuer for P2S AAD authentication." ) ]
138
127
[ ValidateNotNullOrEmpty ]
139
128
public string AadIssuer { get ; set ; }
0 commit comments