Skip to content

Commit 76b6660

Browse files
SQL - Declare breaking changes for the AdvancedDataSecurity and AdvancedThreatProtection cmdlets from 9.0.0 (#18929)
* Updating Sql .NET SDK to 3.1.0-preview. Declare breaking changes for AdvancedDataSecurity and AdvancedThreatProtection cmdlets. * Added ChangeLog
1 parent dbfc368 commit 76b6660

23 files changed

+40
-25
lines changed

src/Sql/Sql.Test/Sql.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="Microsoft.Azure.KeyVault.WebKey" Version="3.0.1" />
2020
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
2121
<PackageReference Include="Microsoft.Azure.Management.OperationalInsights" Version="0.24.0-preview" />
22-
<PackageReference Include="Microsoft.Azure.Management.Sql" Version="3.0.0-preview" />
22+
<PackageReference Include="Microsoft.Azure.Management.Sql" Version="3.1.0-preview" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

src/Sql/Sql/AdvancedThreatProtection/Cmdlet/DisableAzureSqlServerAdvancedDataSecurity.cs renamed to src/Sql/Sql/AdvancedDataSecurity/Cmdlet/DisableAzureSqlServerAdvancedDataSecurity.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
1516
using Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1618
using System.Management.Automation;
17-
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
1819

1920
namespace Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Cmdlet
2021
{
2122
/// <summary>
2223
/// Disables the Advanced Data Security of a specific server.
2324
/// </summary>
25+
[GenericBreakingChange("Disable-AzSqlServerAdvancedThreatProtection alias will be removed in an upcoming breaking change release", "9.0.0")]
2426
[Cmdlet("Disable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerAdvancedDataSecurity", SupportsShouldProcess = true), OutputType(typeof(ServerAdvancedDataSecurityPolicyModel))]
2527
[Alias("Disable-AzSqlServerAdvancedThreatProtection")]
2628
public class DisableAzureSqlServerAdvancedDataSecurity : SqlServerAdvancedDataSecurityCmdletBase

src/Sql/Sql/AdvancedThreatProtection/Cmdlet/EnableAzureSqlServerAdvancedDataSecurity.cs renamed to src/Sql/Sql/AdvancedDataSecurity/Cmdlet/EnableAzureSqlServerAdvancedDataSecurity.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,21 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model;
16-
using System.Management.Automation;
1715
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
16+
using Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model;
1817
using Microsoft.Azure.Commands.Sql.Server.Adapter;
1918
using Microsoft.Azure.Commands.Sql.Server.Model;
2019
using Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Model;
2120
using Microsoft.Azure.Commands.Sql.VulnerabilityAssessment.Services;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
22+
using System.Management.Automation;
2223

2324
namespace Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Cmdlet
2425
{
2526
/// <summary>
2627
/// Enables the Advanced Threat Protection of a specific server.
2728
/// </summary>
29+
[GenericBreakingChange("Enable-AzSqlServerAdvancedThreatProtection alias will be removed in an upcoming breaking change release", "9.0.0")]
2830
[Cmdlet("Enable", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerAdvancedDataSecurity", SupportsShouldProcess = true), OutputType(typeof(ServerAdvancedDataSecurityPolicyModel))]
2931
[Alias("Enable-AzSqlServerAdvancedThreatProtection")]
3032
public class EnableAzureSqlServerAdvancedDataSecurity : SqlServerAdvancedDataSecurityCmdletBase

src/Sql/Sql/AdvancedThreatProtection/Cmdlet/GetAzureSqlServerAdvancedDataSecurityPolicy.cs renamed to src/Sql/Sql/AdvancedDataSecurity/Cmdlet/GetAzureSqlServerAdvancedDataSecurityPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Model;
16+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1617
using System.Management.Automation;
1718

1819
namespace Microsoft.Azure.Commands.Sql.AdvancedThreatProtection.Cmdlet
1920
{
2021
/// <summary>
2122
/// Returns the Advanced Threat Protection policy of a specific server.
2223
/// </summary>
24+
[GenericBreakingChange("Get-AzSqlServerAdvancedThreatProtectionPolicy alias will be removed in an upcoming breaking change release", "9.0.0")]
2325
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlServerAdvancedDataSecurityPolicy"), OutputType(typeof(ServerAdvancedDataSecurityPolicyModel))]
2426
[Alias("Get-AzSqlServerAdvancedThreatProtectionPolicy")]
2527
public class GetAzureSqlServerAdvancedDataSecurityPolicy : SqlServerAdvancedDataSecurityCmdletBase

0 commit comments

Comments
 (0)