Start-AzSynapseLinkConnection
啟動連結連線。
語法
Start-AzSynapseLinkConnection
-WorkspaceName <String>
-Name <String>
[-PassThru]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzSynapseLinkConnection
-WorkspaceObject <PSSynapseWorkspace>
-Name <String>
[-PassThru]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Start-AzSynapseLinkConnection
-InputObject <PSLinkConnectionResource>
[-PassThru]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Start-AzSynapseLinkConnection Cmdlet 會在工作區中啟動連結連線。 呼叫此 Cmdlet 之後,從開始到執行需要一些時間,您可以呼叫 get-AzSynapseLinkConnectionDetailedStatus 來檢查詳細數據狀態。
範例
範例 1
Start-AzSynapseLinkConnection -WorkspaceName ContosoWorkspace -Name ContosoLinkConnection
此命令會在工作區中啟動名為 ContosoLinkConnection 的連結連線。
範例 2
$ws = Get-AzSynapseWorkspace -Workspacename ContosoWorkspace
$ws | Start-AzSynapseLinkConnection -Name ContosoLinkConnection
此命令會透過管線啟動工作區中名為 ContosoLinkConnection 的連結連線。
範例 3
$linkConnection = Get-AzSynapseLinkConnection -Workspacename ContosoWorkspace -Name ContosoLinkConnection
$linkConnection | Start-AzSynapseLinkConnection
此命令會透過管線啟動工作區中名為 ContosoLinkConnection 的連結連線。
範例 4
Start-AzSynapseLinkConnection -WorkspaceName ContosoWorkspace -Name ContosoLinkConnection
Get-AzSynapseLinkConnectionDetailedStatus -WorkspaceName ContosoWorkspace -Name ContosoLinkConnection
WorkspaceName : ContosoWorkspace
Id : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Name : ContosoLinkConnection
IsApplyingChanges :
IsPartiallyFailed : False
StartTime : 2022-03-10T07:57:37.8730044Z
StopTime :
Status : Starting
ContinuousRunId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Error :
Start-AzSynapseLinkConnection 命令會在工作區中啟動名為 ContosoLinkConnection 的連結連線,然後您可以 呼叫 get-AzSynapseLinkConnectionDetailedStatus 以取得連結連線的狀態。
參數
-AsJob
在背景執行 Cmdlet
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Azure Sql Database 的 Synapse 連結連接物件。
類型: | PSLinkConnectionResource |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
Azure Sql Database 的 Synapse 連結連線名稱。
類型: | String |
別名: | LinkConnectionName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-PassThru
此 Cmdlet 預設不會傳回 物件。 如果指定此參數,如果成功,則會傳回 true。
類型: | SwitchParameter |
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 |