Skip to content

Commit 7c80cdf

Browse files
authored
Merge pull request #9146 from ayeletshpigelman/ayelet
Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
2 parents 96e617e + ad68131 commit 7c80cdf

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/Sql/Sql/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Upcoming Release
2121
* Rename Advanced Threat Protection cmdlets to Advanced Data Security and enable Vulnerability Assessment by default
22+
* Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
2223

2324
## Version 1.9.0
2425
* Replace dependency on Monitor SDK with common code

src/Sql/Sql/Secure Connection/Cmdlet/GetAzureSqlDatabaseSecureConnectionPolicy.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Sql.SecureConnection.Model;
16-
16+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1717
using System.Management.Automation;
1818

1919
namespace Microsoft.Azure.Commands.Sql.SecureConnection.Cmdlet
@@ -22,6 +22,7 @@ namespace Microsoft.Azure.Commands.Sql.SecureConnection.Cmdlet
2222
/// Returns the secure connection policy of a specific database.
2323
/// </summary>
2424
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseSecureConnectionPolicy", SupportsShouldProcess = true), OutputType(typeof(DatabaseSecureConnectionPolicyModel))]
25+
[GenericBreakingChange("Note that secure connection is deprecated and this command will be removed in a future release. Please use the SQL database blade in the Azure portal to view the connection strings")]
2526
public class GetAzureSqlDatabaseSecureConnectionPolicy : SqlDatabaseSecureConnectionCmdletBase
2627
{
2728
/// <summary>

src/Sql/Sql/help/Az.Sql.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ Gets the geo-replication links between an Azure SQL Database and a resource grou
123123
Retrieves the distinct restore points from which a SQL Data Warehouse can be restored.
124124

125125
### [Get-AzSqlDatabaseSecureConnectionPolicy](Get-AzSqlDatabaseSecureConnectionPolicy.md)
126-
Gets the secure connection policy for a database.
126+
Gets the secure connection policy for a database.
127+
Secure connection is deprecated and this command will be removed in a future release. Please use the SQL database blade in the Azure portal to view the connection strings
127128

128129
### [Get-AzSqlDatabaseSensitivityClassification](Get-AzSqlDatabaseSensitivityClassification.md)
129130
Gets the current information types and sensitivity labels of columns in the database.

src/Sql/Sql/help/Get-AzSqlDatabaseSecureConnectionPolicy.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ schema: 2.0.0
99
# Get-AzSqlDatabaseSecureConnectionPolicy
1010

1111
## SYNOPSIS
12-
Gets the secure connection policy for a database.
12+
Gets the secure connection policy for a database.
13+
Secure connection is deprecated and this command will be removed in a future release. Please use the SQL database blade in the Azure portal to view the connection strings
1314

1415
## SYNTAX
1516

0 commit comments

Comments
 (0)