Get-AzSynapseLinkedService
取得工作區中連結服務的相關信息。
語法
Get-AzSynapseLinkedService
-WorkspaceName <String>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSynapseLinkedService
-WorkspaceObject <PSSynapseWorkspace>
[-Name <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzSynapseLinkedService Cmdlet 會取得工作區中連結服務的相關信息。 如果您指定連結服務的名稱,此 Cmdlet 會取得該連結服務的相關信息。 如果您未指定名稱,此 Cmdlet 會取得工作區中所有連結服務的相關信息。
範例
範例 1
Get-AzSynapseLinkedService -WorkspaceName ContosoWorkspace
此命令會取得名為 ContosoWorkspace 之工作區中所有連結服務的相關信息。
範例 2
Get-AzSynapseLinkedService -WorkspaceName ContosoWorkspace -Name ContosoLinkedService
此命令會取得 ContosoWorkspace 工作區中名為 ContosoLinkedService 的鏈接服務相關信息。
範例 3
$ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
$ws | Get-AzSynapseLinkedService -Name ContosoLinkedService
此命令會透過管線,在名為 ContosoWorkspace 的工作區中取得名為 ContosoLinkedService 的鏈接服務相關信息。
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
連結的服務名稱。
類型: | String |
別名: | LinkedServiceName |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WorkspaceName
Synapse 工作區的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-WorkspaceObject
工作區輸入物件,通常是透過管線傳遞。
類型: | PSSynapseWorkspace |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |