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