共用方式為


Set-AzSynapseSqlPoolSensitivityClassification

設定 SQL 集區中數據行的資訊類型和敏感度標籤。

語法

Set-AzSynapseSqlPoolSensitivityClassification
   -ClassificationObject <SqlPoolSensitivityClassificationModel>
   [-PassThru]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzSynapseSqlPoolSensitivityClassification
   [-SensitivityLabel <String>]
   [-InformationType <String>]
   [-ResourceGroupName] <String>
   [-WorkspaceName] <String>
   [-SqlPoolName] <String>
   -SchemaName <String>
   -TableName <String>
   -ColumnName <String>
   [-PassThru]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzSynapseSqlPoolSensitivityClassification
   [-SensitivityLabel <String>]
   [-InformationType <String>]
   -SqlPoolObject <PSSynapseSqlPool>
   -SchemaName <String>
   -TableName <String>
   -ColumnName <String>
   [-PassThru]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Set-AzSynapseSqlPoolSensitivityClassification Cmdlet 會設定 SQL 集區中數據行的資訊類型和敏感度標籤。

範例

範例 1:設定 Azure Synapse SQL 集區中數據行的資訊類型和敏感度標籤。

Set-AzSynapseSqlPoolSensitivityClassification -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -SqlPoolName ContosoSqlPool -SchemaName schema -TableName table -ColumnName column -InformationType informationType -SensitivityLabel label

範例 2:設定 Azure Synapse SQL 集區中數據行的建議資訊類型和敏感度標籤。

Get-AzSynapseSqlPoolSensitivityRecommendation -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -SqlPoolName ContosoSqlPool | Set-AzSynapseSqlPoolSensitivityClassification

範例 3:使用管線設定 Azure Synapse SQL 集區中數據行的資訊類型和敏感度標籤。

Get-AzSynapseSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool | Set-AzSynapseSqlPoolSensitivityClassification  -SchemaName schema -TableName table -ColumnName column -InformationType informationType -SensitivityLabel label

參數

-AsJob

在背景執行 Cmdlet

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ClassificationObject

物件,表示 SQL 集區敏感度分類。

類型:SqlPoolSensitivityClassificationModel
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ColumnName

數據行的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationType

描述儲存在數據行中之資料的資訊類型的名稱。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-PassThru

此 Cmdlet 預設不會傳回 物件。 如果指定此參數,如果成功,則會傳回 true。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源組名。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-SchemaName

架構的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-SensitivityLabel

描述數據行中儲存之數據的敏感度的名稱。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-SqlPoolName

Synapse SQL 集區的名稱。

類型:String
Position:2
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-SqlPoolObject

SQL 集區輸入物件,通常是透過管線傳遞。

類型:PSSynapseSqlPool
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-TableName

數據表的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WorkspaceName

Synapse 工作區的名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

SqlPoolSensitivityClassificationModel

PSSynapseSqlPool

輸出

Boolean