Skip to content

Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet #9146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Sql/Sql/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->
## Upcoming Release
* Rename Advanced Threat Protection cmdlets to Advanced Data Security and enable Vulnerability Assessment by default
* Deprecating Get-AzSqlDatabaseSecureConnectionPolicy cmdlet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about the set cmdlet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no set cmdlet


## Version 1.9.0
* Replace dependency on Monitor SDK with common code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// ----------------------------------------------------------------------------------

using Microsoft.Azure.Commands.Sql.SecureConnection.Model;

using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using System.Management.Automation;

namespace Microsoft.Azure.Commands.Sql.SecureConnection.Cmdlet
Expand All @@ -22,6 +22,7 @@ namespace Microsoft.Azure.Commands.Sql.SecureConnection.Cmdlet
/// Returns the secure connection policy of a specific database.
/// </summary>
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "SqlDatabaseSecureConnectionPolicy", SupportsShouldProcess = true), OutputType(typeof(DatabaseSecureConnectionPolicyModel))]
[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")]
public class GetAzureSqlDatabaseSecureConnectionPolicy : SqlDatabaseSecureConnectionCmdletBase
{
/// <summary>
Expand Down
3 changes: 2 additions & 1 deletion src/Sql/Sql/help/Az.Sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ Gets the geo-replication links between an Azure SQL Database and a resource grou
Retrieves the distinct restore points from which a SQL Data Warehouse can be restored.

### [Get-AzSqlDatabaseSecureConnectionPolicy](Get-AzSqlDatabaseSecureConnectionPolicy.md)
Gets the secure connection policy for a database.
Gets the secure connection policy for a database.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have cmdlet for server connection policy too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no

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

### [Get-AzSqlDatabaseSensitivityClassification](Get-AzSqlDatabaseSensitivityClassification.md)
Gets the current information types and sensitivity labels of columns in the database.
Expand Down
3 changes: 2 additions & 1 deletion src/Sql/Sql/help/Get-AzSqlDatabaseSecureConnectionPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ schema: 2.0.0
# Get-AzSqlDatabaseSecureConnectionPolicy

## SYNOPSIS
Gets the secure connection policy for a database.
Gets the secure connection policy for a database.
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

## SYNTAX

Expand Down