2
2
external help file : Microsoft.Azure.PowerShell.Cmdlets.Sql.dll-Help.xml
3
3
Module Name : Az.Sql
4
4
ms.assetid : 14814BF3-51AF-4E51-A8A6-661825BD88D1
5
- online version : https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azmanageddatabasesensitivityclassification
5
+ online version : https://docs.microsoft.com/en-us/powershell/module/az.sql/get-azsqlinstancedatabasesensitivityclassification
6
6
schema : 2.0.0
7
7
---
8
8
9
- # Get-AzManagedDatabaseSensitivityClassification
9
+ # Get-AzSqlInstanceDatabaseSensitivityClassification
10
10
11
11
## SYNOPSIS
12
12
Gets the current sensitivity labels and information types of columns in the database.
@@ -15,35 +15,119 @@ Gets the current sensitivity labels and information types of columns in the data
15
15
16
16
### DatabaseParameterSet
17
17
```
18
- Get-AzManagedDatabaseSensitivityClassification [-ResourceGroupName] <String> [-InstanceName] <String>
18
+ Get-AzSqlInstanceDatabaseSensitivityClassification [-ResourceGroupName] <String> [-InstanceName] <String>
19
19
[-DatabaseName] <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
20
20
```
21
21
22
22
### ColumnParameterSet
23
23
```
24
- Get-AzManagedDatabaseSensitivityClassification [-ResourceGroupName] <String> [-InstanceName] <String>
24
+ Get-AzSqlInstanceDatabaseSensitivityClassification [-ResourceGroupName] <String> [-InstanceName] <String>
25
25
[-DatabaseName] <String> -SchemaName <String> -TableName <String> -ColumnName <String> [-AsJob]
26
26
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
27
27
```
28
28
29
29
### ParentResourceParameterSet
30
30
```
31
- Get-AzManagedDatabaseSensitivityClassification -InputObject <AzureSqlManagedDatabaseModel> [-AsJob]
31
+ Get-AzSqlInstanceDatabaseSensitivityClassification -InputObject <AzureSqlManagedDatabaseModel> [-AsJob]
32
32
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
33
33
```
34
34
35
35
### ParentResourceColumnParameterSet
36
36
```
37
- Get-AzManagedDatabaseSensitivityClassification -InputObject <AzureSqlManagedDatabaseModel> -SchemaName <String >
38
- -TableName <String> -ColumnName <String> [-AsJob] [-DefaultProfile <IAzureContextContainer> ]
39
- [<CommonParameters>]
37
+ Get-AzSqlInstanceDatabaseSensitivityClassification -InputObject <AzureSqlManagedDatabaseModel>
38
+ -SchemaName <String> - TableName <String> -ColumnName <String> [-AsJob]
39
+ [-DefaultProfile <IAzureContextContainer>] [ <CommonParameters>]
40
40
```
41
41
42
42
## DESCRIPTION
43
- The Get-AzManagedDatabaseSensitivityClassification cmdlet gets the current sensitivity labels and information types of columns in the database.
43
+ The Get-AzSqlInstanceDatabaseSensitivityClassification cmdlet returns the current sensitivity labels and information types of columns in the database.
44
44
45
45
## EXAMPLES
46
46
47
+ ### Example 1: Get current sensitivity classification of an Azure SQL Managed Instance database.
48
+ ``` powershell
49
+ PS C:\> Get-AzSqlInstanceDatabaseSensitivityClassification -ResourceGroupName resourceGroup -InstanceName managedInstance -DatabaseName database
50
+
51
+ ResourceGroupName : resourceGroup
52
+ InstanceName : managedInstance
53
+ DatabaseName : database
54
+ SensitivityLabels : {{
55
+ SchemaName: schema1,
56
+ TableName: table1,
57
+ ColumnName: column1,
58
+ LabelName: label1,
59
+ InformationType: informationType1,
60
+ }, {
61
+ SchemaName: schema2,
62
+ TableName: table2,
63
+ ColumnName: column2,
64
+ LabelName: label2,
65
+ }, {
66
+ SchemaName: schema3,
67
+ TableName: table3,
68
+ ColumnName: column3,
69
+ LabelName: label3,
70
+ }}
71
+ ```
72
+
73
+ ### Example 2: Get current sensitivity classification of an Azure SQL Managed Instance database.
74
+ ``` powershell
75
+ PS C:\> Get-AzSqlInstanceDatabase -ResourceGroupName resourceGroup -InstanceName managedInstance -Name database | Get-AzSqlInstanceDatabaseSensitivityClassification
76
+
77
+ ResourceGroupName : resourceGroup
78
+ InstanceName : managedInstance
79
+ DatabaseName : database
80
+ SensitivityLabels : {{
81
+ SchemaName: schema1,
82
+ TableName: table1,
83
+ ColumnName: column1,
84
+ LabelName: label1,
85
+ InformationType: informationType1,
86
+ }, {
87
+ SchemaName: schema2,
88
+ TableName: table2,
89
+ ColumnName: column2,
90
+ LabelName: label2,
91
+ }, {
92
+ SchemaName: schema3,
93
+ TableName: table3,
94
+ ColumnName: column3,
95
+ LabelName: label3,
96
+ }}
97
+ ```
98
+
99
+ ### Example 3: Get current sensitivity classification of a specific column of an Azure SQL Managed Instance database.
100
+ ``` powershell
101
+ PS C:\> Get-AzSqlInstanceDatabaseSensitivityClassification -ResourceGroupName resourceGroup -InstanceName managedInstance -DatabaseName database -SchemaName schema -TableName table -ColumnName column
102
+
103
+ ResourceGroupName : resourceGroup
104
+ InstanceName : managedInstance
105
+ DatabaseName : database
106
+ SensitivityLabels : {{
107
+ SchemaName: schema,
108
+ TableName: table,
109
+ ColumnName: column,
110
+ LabelName: label,
111
+ InformationType: informationType,
112
+ }}
113
+ ```
114
+
115
+ ### Example 4: Get current sensitivity classification of a specific column of an Azure SQL Managed Instance database.
116
+ ``` powershell
117
+ PS C:\> Get-AzSqlInstanceDatabase -ResourceGroupName resourceGroup -InstanceName managedInstance -Name database | Get-AzSqlInstanceDatabaseSensitivityClassification -SchemaName schema -TableName table -ColumnName column
118
+
119
+ ResourceGroupName : resourceGroup
120
+ InstanceName : managedInstance
121
+ DatabaseName : database
122
+ SensitivityLabels : {{
123
+ SchemaName: schema,
124
+ TableName: table,
125
+ ColumnName: column,
126
+ LabelName: label,
127
+ InformationType: informationType,
128
+ }}
129
+ ```
130
+
47
131
## PARAMETERS
48
132
49
133
### -AsJob
@@ -77,7 +161,7 @@ Accept wildcard characters: False
77
161
` ` `
78
162
79
163
### -DatabaseName
80
- SQL Database name .
164
+ The name of the Azure SQL Instance Database .
81
165
82
166
` ` ` yaml
83
167
Type : System.String
@@ -107,7 +191,7 @@ Accept wildcard characters: False
107
191
` ` `
108
192
109
193
### -InputObject
110
- An object representing a SQL Database Sensitivity Classification
194
+ The SQL instance database object.
111
195
112
196
` ` ` yaml
113
197
Type : Microsoft.Azure.Commands.Sql.ManagedDatabase.Model.AzureSqlManagedDatabaseModel
0 commit comments