From 0979a75f83bdf7855c03dcc6144d3a57e57a7287 Mon Sep 17 00:00:00 2001
From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Date: Mon, 15 Jan 2024 15:17:17 +0800
Subject: [PATCH] Added Breaking change messages (#23923)
---
src/Sql/Sql/ChangeLog.md | 2 ++
src/Sql/Sql/Failover Group/Cmdlet/NewAzureSqlFailoverGroup.cs | 2 ++
src/Sql/Sql/Failover Group/Cmdlet/SetAzureSqlFailoverGroup.cs | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/Sql/Sql/ChangeLog.md b/src/Sql/Sql/ChangeLog.md
index 5affa7b1241b..60ffd280ea84 100644
--- a/src/Sql/Sql/ChangeLog.md
+++ b/src/Sql/Sql/ChangeLog.md
@@ -19,6 +19,8 @@
-->
## Upcoming Release
* Added `DatabaseFormat` and `PricingModel` parameters to `New-AzSqlInstance`, `Set-AzSqlInstance`
+* Added breaking change message for `New-AzSqlDatabaseFailoverGroup` and `Set-AzSqlDatabaseFailoverGroup`
+ - The default value of `FailoverPolicy` parameter will be changed from `Automatic` to `Manual`
## Version 4.13.0
* Fixed `Set-AzSqlDatabaseFailoverGroup` when going from multi-secondary to single secondary
diff --git a/src/Sql/Sql/Failover Group/Cmdlet/NewAzureSqlFailoverGroup.cs b/src/Sql/Sql/Failover Group/Cmdlet/NewAzureSqlFailoverGroup.cs
index fbb9b38d0326..b9acbe268e51 100644
--- a/src/Sql/Sql/Failover Group/Cmdlet/NewAzureSqlFailoverGroup.cs
+++ b/src/Sql/Sql/Failover Group/Cmdlet/NewAzureSqlFailoverGroup.cs
@@ -23,12 +23,14 @@
using System.Management.Automation;
using System;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
namespace Microsoft.Azure.Commands.Sql.FailoverGroup.Cmdlet
{
///
/// Cmdlet to create a new Azure Sql FailoverGroup
///
+ [GenericBreakingChangeWithVersion("The default value of FailoverPolicy will change from Automatic to Manual", "12.0.0", "5.0.0")]
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseFailoverGroup"), OutputType(typeof(AzureSqlFailoverGroupModel))]
public class NewAzureSqlFailoverGroup : AzureSqlFailoverGroupCmdletBase
{
diff --git a/src/Sql/Sql/Failover Group/Cmdlet/SetAzureSqlFailoverGroup.cs b/src/Sql/Sql/Failover Group/Cmdlet/SetAzureSqlFailoverGroup.cs
index 603a0ab32046..2827f9bb6375 100644
--- a/src/Sql/Sql/Failover Group/Cmdlet/SetAzureSqlFailoverGroup.cs
+++ b/src/Sql/Sql/Failover Group/Cmdlet/SetAzureSqlFailoverGroup.cs
@@ -23,12 +23,14 @@
using System.Management.Automation;
using System;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
+using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
namespace Microsoft.Azure.Commands.Sql.FailoverGroup.Cmdlet
{
///
/// Cmdlet to create a new Azure Sql Database Failover Group
///
+ [GenericBreakingChangeWithVersion("The default value of FailoverPolicy will change from Automatic to Manual", "12.0.0", "5.0.0")]
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseFailoverGroup",ConfirmImpact = ConfirmImpact.Medium), OutputType(typeof(AzureSqlFailoverGroupModel))]
public class SetAzureSqlFailoverGroup : AzureSqlFailoverGroupCmdletBase
{