共用方式為


Suspend-AzSqlDatabase

暫停 SQL 數據倉儲資料庫。

語法

Suspend-AzSqlDatabase
       [-ServerName] <String>
       -DatabaseName <String>
       [-AsJob]
       [-ResourceGroupName] <String>
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

Suspend-AzSqlDatabase Cmdlet 會暫停 Azure SQL 數據倉儲資料庫。

範例

範例 1:暫停 Azure SQL 數據倉儲資料庫

Suspend-AzSqlDatabase -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"

此命令會暫停作用中的 Azure SQL 數據倉儲資料庫。

參數

-AsJob

在背景執行 Cmdlet

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

-Confirm

執行 Cmdlet 之前先提示您確認。

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

-DatabaseName

指定這個 Cmdlet 暫停的資料庫名稱。

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

-DefaultProfile

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

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

-ResourceGroupName

指定指派伺服器的資源群組名稱。

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

-ServerName

指定裝載資料庫之伺服器的名稱。

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

-WhatIf

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

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

輸入

String

輸出

AzureSqlDatabaseModel

備註

  • Suspend-AzSqlDatabase Cmdlet 僅適用於 Azure SQL 數據倉儲資料庫。 Azure SQL 資料庫 Basic、Standard 和 進階版 版本不支援這項作業。