Skip to content

Commit 585b83c

Browse files
viparekBethanyZhou
andauthored
[SQL] Fix AutoRotationEnabled param (#15247)
* [SQL] Fix AutoRotationEnabled param * Fix changelog * suppress breaking change * Update src/Sql/Sql/ChangeLog.md * Update src/Sql/Sql/ChangeLog.md Co-authored-by: Beisi Zhou <[email protected]> Co-authored-by: Beisi Zhou <[email protected]>
1 parent 6255cab commit 585b83c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/Sql/Sql/ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Changed the type of parameter `AutoRotationEnabled` in `Set-AzSqlInstanceTransparentDataEncryptionProtector` to bool?.
2122

2223
## Version 3.2.0
2324
* Added option to support short version of maintenance configuration id for Managed Instance in `New-AzSqlInstance` and `Set-AzSqlInstance` cmdlets
@@ -34,7 +35,6 @@
3435
- `Set-AzSqlInstanceTransparentDataEncryptionProtector`
3536
- `Get-AzSqlInstanceTransparentDataEncryptionProtector`
3637

37-
3838
## Version 3.1.0
3939
* Updated `Set-AzSqlDatabaseVulnerabilityAssessmentRuleBaseline` documentation to include example of define array of array with one inner array.
4040
* Added cmdlet `Copy-AzSqlDatabaseLongTermRetentionBackup`

src/Sql/Sql/TransparentDataEncryption/Cmdlet/SetAzureRmSqlManagedInstanceTransparentDataEncryptionProtector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public class SetAzureRmSqlManagedInstanceTransparentDataEncryptionProtector : Az
7272
ValueFromPipelineByPropertyName = true,
7373
HelpMessage = "The Key Auto Rotation status")]
7474
[ValidateNotNullOrEmpty]
75-
public SwitchParameter AutoRotationEnabled { get; set; }
75+
public bool? AutoRotationEnabled { get; set; }
7676

7777
/// <summary>
7878
/// Defines whether it is ok to skip the requesting of setting Transparent Data Encryption protector confirmation
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation"
2+
"Az.Sql","Microsoft.Azure.Commands.Sql.TransparentDataEncryption.Cmdlet.SetAzureRmSqlManagedInstanceTransparentDataEncryptionProtector","Set-AzSqlInstanceTransparentDataEncryptionProtector","0","2020","The cmdlet 'Set-AzSqlInstanceTransparentDataEncryptionProtector' no longer supports the type 'System.Management.Automation.SwitchParameter' for parameter 'AutoRotationEnabled'.","Change the type for parameter 'AutoRotationEnabled' back to 'System.Management.Automation.SwitchParameter'."

0 commit comments

Comments
 (0)