Skip to content

Commit 2c75c5e

Browse files
Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
1 parent ba0319a commit 2c75c5e

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
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
2122

2223
## Version 1.9.0
2324
* 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 System;
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+
[Obsolete("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", false)]
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
@@ -117,7 +117,8 @@ Gets the geo-replication links between an Azure SQL Database and a resource grou
117117
Retrieves the distinct restore points from which a SQL Data Warehouse can be restored.
118118

119119
### [Get-AzSqlDatabaseSecureConnectionPolicy](Get-AzSqlDatabaseSecureConnectionPolicy.md)
120-
Gets the secure connection policy for a database.
120+
Gets the secure connection policy for a database.
121+
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
121122

122123
### [Get-AzSqlDatabaseSensitivityClassification](Get-AzSqlDatabaseSensitivityClassification.md)
123124
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)