Skip to content

Commit a193ffa

Browse files
authored
powershell changes for new ssl policies in appgw (#18287)
1 parent acae733 commit a193ffa

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Network/Network/ApplicationGateway/SslPolicy/AzureApplicationGatewaySslPolicyBase.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public class AzureApplicationGatewaySslPolicyBase : NetworkBaseCmdlet
2323
{
2424
[Parameter(
2525
HelpMessage = "List of SSL protocols to be disabled")]
26-
[ValidateSet("TLSv1_0", "TLSv1_1", "TLSv1_2", IgnoreCase = true)]
26+
[ValidateSet("TLSv1_0", "TLSv1_1", "TLSv1_2", "TLSv1_3", IgnoreCase = true)]
2727
[ValidateNotNullOrEmpty]
2828
public string[] DisabledSslProtocols { get; set; }
2929

3030
[Parameter(
3131
HelpMessage = "Type of Ssl Policy")]
32-
[ValidateSet("Predefined", "Custom", IgnoreCase = true)]
32+
[ValidateSet("Predefined", "Custom", "CustomV2", IgnoreCase = true)]
3333
public string PolicyType { get; set; }
3434

3535
[Parameter(
@@ -38,12 +38,11 @@ public class AzureApplicationGatewaySslPolicyBase : NetworkBaseCmdlet
3838

3939
[Parameter(
4040
HelpMessage = "Ssl cipher suites to be enabled in the specified order to application gateway")]
41-
[ValidateNotNullOrEmpty]
4241
public string[] CipherSuite { get; set; }
4342

4443
[Parameter(
4544
HelpMessage = "Minimum version of Ssl protocol to be supported on application gateway")]
46-
[ValidateSet("TLSv1_0", "TLSv1_1", "TLSv1_2", IgnoreCase = true)]
45+
[ValidateSet("TLSv1_0", "TLSv1_1", "TLSv1_2", "TLSv1_3", IgnoreCase = true)]
4746
public string MinProtocolVersion { get; set; }
4847

4948
public override void ExecuteCmdlet()

src/Network/Network/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
--->
2020

2121
## Upcoming Release
22+
* Added support for CustomV2 ssl policies for Application Gateway.
23+
- Added `CustomV2` to the validation set of `PolicyType`
24+
- Added `TLSv1_3` to the validation set of `MinProtocolVersion`
25+
- Removed validation for null or empty cipher suites list since there can be empty cipher suites list for min protocol version of tls1.3
2226

2327
## Version 4.17.0
2428
* Supported `Microsoft.Network/privateLinkServices` in `Get-AzPrivateEndpointConnection` [#16984].

0 commit comments

Comments
 (0)