Get-AzSqlDatabaseFailoverGroup
取得或列出 Azure SQL 資料庫 故障轉移群組。
PowerShell
Get-AzSqlDatabaseFailoverGroup
[-ServerName] <String>
[[-FailoverGroupName] <String>]
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
取得特定的 Azure SQL 資料庫 故障轉移群組,或列出伺服器上的故障轉移群組。 故障轉移群組中的任一部伺服器都可以用來執行命令。 傳回的值會反映與故障轉移群組相關的指定伺服器狀態。
PowerShell
$failoverGroups = Get-AzSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server
列出伺服器上的所有故障轉移群組。
PowerShell
$failoverGroup = Get-AzSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server -FailoverGroupName fg
取得特定的故障轉移群組。
PowerShell
$failoverGroup = Get-AzSqlDatabaseFailoverGroup -ResourceGroupName rg -ServerName server -FailoverGroupName fg*
取得以 「fg」 開頭的伺服器中的所有故障轉移群組。
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
要擷取的 Azure SQL 資料庫 故障轉移群組名稱。
類型: | String |
Position: | 2 |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | True |
資源群組的名稱。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
要從中擷取故障轉移群組的 Azure SQL 資料庫 伺服器名稱。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |