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/set-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
- # Set-AzManagedDatabaseSensitivityClassification
9
+ # Set-AzSqlInstanceDatabaseSensitivityClassification
10
10
11
11
## SYNOPSIS
12
+ Sets the sensitivity labels and information types of columns in the database.
12
13
13
14
## SYNTAX
14
15
15
16
### ColumnParameterSet
16
17
```
17
- Set-AzSqlDatabaseSensitivityClassification [-ResourceGroupName] <String> [-ServerName ] <String>
18
+ Set-AzSqlInstanceDatabaseSensitivityClassification [-ResourceGroupName] <String> [-InstanceName ] <String>
18
19
[-DatabaseName] <String> -SchemaName <String> -TableName <String> -ColumnName <String> [-LabelName <String>]
19
- [-InformationType <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm ]
20
- [<CommonParameters>]
20
+ [-InformationType <String>] [-PassThru] [-AsJob] [- DefaultProfile <IAzureContextContainer>] [-WhatIf]
21
+ [-Confirm] [ <CommonParameters>]
21
22
```
22
23
23
24
### ParentResourceParameterSet
24
25
```
25
- Set-AzSqlDatabaseSensitivityClassification -InputObject <SqlDatabaseSensitivityClassificationModel >
26
- [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
26
+ Set-AzSqlInstanceDatabaseSensitivityClassification -InputObject <ManagedDatabaseSensitivityClassificationModel >
27
+ [-PassThru] [-AsJob] [- DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
27
28
```
28
29
29
30
## DESCRIPTION
31
+ The Set-AzSqlInstanceDatabaseSensitivityClassification cmdlet sets the sensitivity labels and information types of columns in the database.
30
32
31
33
## EXAMPLES
32
34
35
+ ### Example 1: Set sensitivity classification of a column in an Azure SQL Managed Instance database.
36
+ ``` powershell
37
+ PS C:\> Set-AzSqlInstanceDatabaseSensitivityClassification -ResourceGroupName resourceGroup -InstanceName managedInstance -DatabaseName database -SchemaName schema -TableName table -ColumnName column -InformationType informationType -LabelName label
38
+ ```
39
+
40
+ ### Example 2: Set recommended sensitivity classification of columns in an Azure SQL Managed Instance database.
41
+ ``` powershell
42
+ PS C:\> Get-AzSqlInstanceDatabaseSensitivityRecommendations -ResourceGroupName resourceGroup -InstanceName managedInstance -DatabaseName database | Set-AzSqlInstanceDatabaseSensitivityClassification
43
+ ```
44
+
33
45
## PARAMETERS
34
46
47
+ ### -AsJob
48
+ Run cmdlet in the background
49
+
50
+ ``` yaml
51
+ Type : System.Management.Automation.SwitchParameter
52
+ Parameter Sets : (All)
53
+ Aliases :
54
+
55
+ Required : False
56
+ Position : Named
57
+ Default value : None
58
+ Accept pipeline input : False
59
+ Accept wildcard characters : False
60
+ ` ` `
61
+
35
62
### -ColumnName
36
63
Name of column.
37
64
@@ -48,7 +75,7 @@ Accept wildcard characters: False
48
75
` ` `
49
76
50
77
### -DatabaseName
51
- SQL Database name .
78
+ The name of the Azure SQL Instance Database .
52
79
53
80
` ` ` yaml
54
81
Type : System.String
@@ -78,7 +105,7 @@ Accept wildcard characters: False
78
105
` ` `
79
106
80
107
### -InformationType
81
- A name that describes the information type of the data stored in the column.
108
+ A name that describes the information type of the data stored in the column.
82
109
83
110
` ` ` yaml
84
111
Type : System.String
@@ -93,10 +120,10 @@ Accept wildcard characters: False
93
120
` ` `
94
121
95
122
### -InputObject
96
- An object representing a SQL Database Sensitivity Classification
123
+ The SQL instance database object.
97
124
98
125
` ` ` yaml
99
- Type : Microsoft.Azure.Commands.Sql.DataClassification.Model.SqlDatabaseSensitivityClassificationModel
126
+ Type : Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel
100
127
Parameter Sets : ParentResourceParameterSet
101
128
Aliases :
102
129
@@ -107,61 +134,76 @@ Accept pipeline input: True (ByValue)
107
134
Accept wildcard characters : False
108
135
` ` `
109
136
110
- ### -LabelName
111
- A name that describes the sensitivity of the data stored in the column .
137
+ ### -InstanceName
138
+ SQL Managed Instance name .
112
139
113
140
` ` ` yaml
114
141
Type : System.String
115
142
Parameter Sets : ColumnParameterSet
116
143
Aliases :
117
144
118
- Required : False
119
- Position : Named
145
+ Required : True
146
+ Position : 1
120
147
Default value : None
121
148
Accept pipeline input : True (ByPropertyName)
122
149
Accept wildcard characters : False
123
150
` ` `
124
151
125
- ### -ResourceGroupName
126
- The name of the resource group .
152
+ ### -LabelName
153
+ A name that describes the sensitivity of the data stored in the column .
127
154
128
155
` ` ` yaml
129
156
Type : System.String
130
157
Parameter Sets : ColumnParameterSet
131
158
Aliases :
132
159
133
- Required : True
134
- Position : 0
160
+ Required : False
161
+ Position : Named
135
162
Default value : None
136
163
Accept pipeline input : True (ByPropertyName)
137
164
Accept wildcard characters : False
138
165
` ` `
139
166
140
- ### -SchemaName
141
- Name of schema.
167
+ ### -PassThru
168
+ Specifies whether to output the sensitivity classification model at end of cmdlet execution
169
+
170
+ ` ` ` yaml
171
+ Type : System.Management.Automation.SwitchParameter
172
+ Parameter Sets : (All)
173
+ Aliases :
174
+
175
+ Required : False
176
+ Position : Named
177
+ Default value : None
178
+ Accept pipeline input : False
179
+ Accept wildcard characters : False
180
+ ` ` `
181
+
182
+ ### -ResourceGroupName
183
+ The name of the resource group.
142
184
143
185
` ` ` yaml
144
186
Type : System.String
145
187
Parameter Sets : ColumnParameterSet
146
188
Aliases :
147
189
148
190
Required : True
149
- Position : Named
191
+ Position : 0
150
192
Default value : None
151
193
Accept pipeline input : True (ByPropertyName)
152
194
Accept wildcard characters : False
153
195
` ` `
154
196
155
- ### -ServerName
156
- SQL server name .
197
+ ### -SchemaName
198
+ Name of schema .
157
199
158
200
` ` ` yaml
159
201
Type : System.String
160
202
Parameter Sets : ColumnParameterSet
161
203
Aliases :
162
204
163
205
Required : True
164
- Position : 1
206
+ Position : Named
165
207
Default value : None
166
208
Accept pipeline input : True (ByPropertyName)
167
209
Accept wildcard characters : False
@@ -217,6 +259,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
217
259
218
260
## INPUTS
219
261
262
+ ### Microsoft.Azure.Commands.Sql.DataClassification.Model.ManagedDatabaseSensitivityClassificationModel
263
+
220
264
## OUTPUTS
221
265
222
266
## NOTES
0 commit comments