共用方式為


Stop-AzSqlInstanceDatabaseLogReplay

卸除資料庫來取消 Log Replay 服務。

語法

Stop-AzSqlInstanceDatabaseLogReplay
    [-Force]
    [-Name] <String>
    [-InstanceName] <String>
    [-ResourceGroupName] <String>
    [-PassThru]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
Stop-AzSqlInstanceDatabaseLogReplay
    [-Force]
    [-PassThru]
    [-InputObject] <AzureSqlManagedDatabaseModel>
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Stop-AzSqlInstanceDatabaseLogReplay Cmdlet 會卸除資料庫,因而取消 Log Replay 服務。

範例

範例 1

Stop-AzSqlInstanceDatabaseLogReplay -ResourceGroupName "ResourceGroup01" -InstanceName "ManagedInstance01" -Name "ManagedDatabaseName"

此命令將會取消指定資料庫上的記錄重新執行服務。

參數

-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

實例資料庫物件。

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

-InstanceName

執行個體的名稱。

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

-Name

實例資料庫的名稱。

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

-PassThru

定義是否傳回同步群組。

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

-ResourceGroupName

資源群組的名稱。

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

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

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

輸入

String

AzureSqlManagedDatabaseModel

輸出

AzureSqlManagedDatabaseModel