共用方式為


New-AzSynapseLinkedServiceEncryptedCredential

使用指定的整合運行時間加密連結服務中的認證。

語法

New-AzSynapseLinkedServiceEncryptedCredential
   [-ResourceGroupName <String>]
   -WorkspaceName <String>
   -IntegrationRuntimeName <String>
   -DefinitionFile <String>
   [-Force]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzSynapseLinkedServiceEncryptedCredential
   -WorkspaceObject <PSSynapseWorkspace>
   -IntegrationRuntimeName <String>
   -DefinitionFile <String>
   [-Force]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzSynapseLinkedServiceEncryptedCredential Cmdlet 會使用指定的整合運行時間加密連結服務中的認證。

請確定符合下列必要條件:

  • 自我裝載整合運行時間上已啟用遠端存取 選項。
  • Powershell 7.0 或更高版本可用來執行 Cmdlet。

範例

範例 1

New-AzSynapseLinkedServiceEncryptedCredential -WorkspaceName ContosoWorkspace -ResourceGroupName ContosoRG -IntegrationRuntimeName "IR-LSEncryptedCredential" -DefinitionFile "D:\sqlLinkService.json" > "D:\SynapseEncryptedSQLServerLinkedService.json"

此命令會使用名為 IR-LSEncryptedCredential 的整合運行時間,將 檔案 D:\SynapseEncryptedSQLServerLinkedService.js中的認證加密。

範例 2

$ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
$ws | New-AzSynapseLinkedServiceEncryptedCredential -IntegrationRuntimeName "IR-LSEncryptedCredential" -DefinitionFile "D:\sqlLinkService.json" > "D:\SynapseEncryptedSQLServerLinkedService.json"

此命令會使用名為 IR-LSEncryptedCredential 管線的整合運行時間,將 檔案 D:\SynapseEncryptedSQLServerLinkedService.js中的認證加密。

參數

-Confirm

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

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

-DefaultProfile

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

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

-DefinitionFile

JSON 檔案路徑。

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

-Force

請勿要求確認。

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

-IntegrationRuntimeName

整合運行時間名稱。

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

-ResourceGroupName

資源組名。

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

-WhatIf

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

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

-WorkspaceName

Synapse 工作區的名稱。

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

-WorkspaceObject

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

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

輸入

PSSynapseWorkspace

輸出

String