Skip to content

Commit f87f746

Browse files
authored
Update sql-database-data-discovery-and-classification.md
1 parent 0bf42af commit f87f746

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

articles/sql-database/sql-database-data-discovery-and-classification.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ An important aspect of the information protection paradigm is the ability to mon
122122

123123
![Audit log](./media/sql-data-discovery-and-classification/11_data_classification_audit_log.png)
124124

125-
## <a id="subheading-4"></a>Manage data classification using T-SQL
125+
### Manage classifications
126126

127+
# [T-SQL](#tab/azure-t-sql)
127128
You can use T-SQL to add/remove column classifications, as well as retrieve all classifications for the entire database.
128129

129130
> [!NOTE]
@@ -133,8 +134,7 @@ You can use T-SQL to add/remove column classifications, as well as retrieve all
133134
- Remove the classification from one or more columns: [DROP SENSITIVITY CLASSIFICATION](https://docs.microsoft.com/sql/t-sql/statements/drop-sensitivity-classification-transact-sql)
134135
- View all classifications on the database: [sys.sensitivity_classifications](https://docs.microsoft.com/sql/relational-databases/system-catalog-views/sys-sensitivity-classifications-transact-sql)
135136

136-
### Manage classifications using Rest APIs
137-
137+
# [Rest APIs](#tab/azure-rest-api)
138138
You can also use REST APIs to programmatically manage classifications. The published REST APIs support the following operations:
139139

140140
- [Create Or Update](https://docs.microsoft.com/rest/api/sql/sensitivitylabels/createorupdate) - Creates or updates the sensitivity label of a given column
@@ -146,21 +146,17 @@ You can also use REST APIs to programmatically manage classifications. The publi
146146

147147
- [List Recommended By Database](https://docs.microsoft.com/rest/api/sql/sensitivitylabels/listrecommendedbydatabase) - Gets the recommended sensitivity labels of a given database
148148

149-
## Manage data discovery and classification using Azure PowerShell
150-
151-
You can use PowerShell to get all the recommended columns in an Azure SQL database and a managed instance.
152-
153-
### PowerShell Cmdlets for Azure SQL database
154-
149+
# [PowerShell Cmdlet for Azure SQL](#tab/azure-portal-sqldb)
150+
You can use PowerShell to get all the recommended columns in an Azure SQL database.
155151
- [Get-AzSqlDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldatabasesensitivityclassification)
156152
- [Set-AzSqlDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/set-azsqldatabasesensitivityclassification)
157153
- [Remove-AzSqlDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/remove-azsqldatabasesensitivityclassification)
158154
- [Get-AzSqlDatabaseSensitivityRecommendation](https://docs.microsoft.com/powershell/module/az.sql/get-azsqldatabasesensitivityrecommendation)
159155
- [Enable-AzSqlDatabaSesensitivityRecommendation](https://docs.microsoft.com/powershell/module/az.sql/enable-azsqldatabasesensitivityrecommendation)
160156
- [Disable-AzSqlDatabaseSensitivityRecommendation](https://docs.microsoft.com/powershell/module/az.sql/disable-azsqldatabasesensitivityrecommendation)
161157

162-
### PowerShell Cmdlets for managed instance
163-
158+
# [PowerShell Cmdlets for Managed Instance](#tab/azure-powershell-mi)
159+
You can use PowerShell to get all the recommended columns in a managed instance.
164160
- [Get-AzSqlInstanceDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/get-azsqlinstancedatabasesensitivityclassification)
165161
- [Set-AzSqlInstanceDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/set-azsqlinstancedatabasesensitivityclassification)
166162
- [Remove-AzSqlInstanceDatabaseSensitivityClassification](https://docs.microsoft.com/powershell/module/az.sql/remove-azsqlinstancedatabasesensitivityclassification)

0 commit comments

Comments
 (0)