共用方式為


Stop-AzSynapseIntegrationRuntime

停止受控專用整合運行時間。

語法

Stop-AzSynapseIntegrationRuntime
    [-ResourceGroupName <String>]
    -WorkspaceName <String>
    -Name <String>
    [-Force]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Stop-AzSynapseIntegrationRuntime
    -Name <String>
    -WorkspaceObject <PSSynapseWorkspace>
    [-Force]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Stop-AzSynapseIntegrationRuntime
    -ResourceId <String>
    [-Force]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Stop-AzSynapseIntegrationRuntime
    -InputObject <PSIntegrationRuntime>
    [-Force]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Stop-AzSynapseIntegrationRuntime Cmdlet 會停止處於「已啟動」狀態的受控專用整合運行時間,而此運行時間是由 Start-AzSynapseIntegrationRuntime Cmdlet 啟動。 資源會釋出,狀態會傳輸至「已停止」。

範例

範例 1

Stop-AzSynapseIntegrationRuntime -WorkspaceName ContosoWorkspace -Name 'test-dedicated-ir'

此 Cmdlet 會在工作區 ContosoWorkspace 中停止名為 'test-dedicated-ir' 的受控專用整合運行時間。

範例 2

$ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
$ws | Stop-AzSynapseIntegrationRuntime -Name 'test-dedicated-ir'

此 Cmdlet 會透過管線停止工作區 ContosoWorkspace 中名為 'test-dedicated-ir' 的受控專用整合運行時間。

範例 3

Stop-AzSynapseIntegrationRuntime -ResourceId '/subscriptions/0000abcd-1a1b-12ab-1234-0000abcd00aa/resourceGroups/Contosorg/providers/Microsoft.Synapse/workspaces/ContosoWorkspace/integrationruntimes/test-dedicated-ir'

此 Cmdlet 會在工作區 ContosoWorkspace 中使用 ResourceId 停止受控專用整合運行時間。

範例 4

$ir = Get-AzSynapseIntegrationRuntime -WorkspaceName ContosoWorkspace -Name test-dedicated-ir -ResourceGroupName Contosorg
$ir | Stop-AzSynapseIntegrationRuntime

此 Cmdlet 會透過管線停止工作區 ContosoWorkspace 中名為 'test-dedicated-ir' 的受控專用整合運行時間。

參數

-Confirm

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

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

-DefaultProfile

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

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

-Force

請勿要求確認。

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

-InputObject

整合運行時間物件。

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

-Name

整合運行時間名稱。

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

-ResourceGroupName

資源組名。

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

-ResourceId

Synapse 整合運行時間的資源標識碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入: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

PSIntegrationRuntime

輸出

Void