共用方式為


Get-AzSqlDatabaseUpgradeHint

取得資料庫的定價層提示。

語法

Default (預設值)

Get-AzSqlDatabaseUpgradeHint
    [-ServerName] <String>
    [-DatabaseName <String>]
    [-ExcludeElasticPoolCandidates <Boolean>]
    [-ResourceGroupName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Get-AzSqlDatabaseUpgradeHint Cmdlet 會取得升級 Azure SQL 資料庫的定價層提示。 仍處於 Web 和商業定價層的資料庫會取得升級至新基本、標準或進階定價層的提示。 Azure 上的 SQL Server Stretch Database 服務也支援此 Cmdlet。

範例

範例 1:取得伺服器上所有資料庫的建議

Get-AzSqlDatabaseUpgradeHint -ResourceGroupName "ResourceGroup01" -ServerName "Server01"

此命令會傳回名為 Server01 之伺服器上所有資料庫的升級提示。

範例 2:取得特定資料庫的建議

Get-AzSqlDatabaseUpgradeHint -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"

此命令會傳回特定資料庫的升級提示。

範例 3:取得不在彈性資料庫集區中之所有資料庫的建議

Get-AzSqlDatabaseUpgradeHint -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -ExcludeElasticPoolCandidates $True

此命令會傳回不在彈性資料庫集區中的所有資料庫的升級提示。

範例 4:使用篩選取得伺服器上所有資料庫的建議

Get-AzSqlDatabaseUpgradeHint -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database*"

此命令會傳回名為 Server01 之伺服器上以 “Database” 開頭的所有資料庫的升級提示。

參數

-Confirm

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

參數屬性

類型:SwitchParameter
預設值:False
支援萬用字元:False
不要顯示:False
別名:參閱

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DatabaseName

指定此 Cmdlet 取得升級提示的 SQL 資料庫名稱。 如果您未指定資料庫,此 Cmdlet 會取得邏輯伺服器上所有資料庫的提示。

參數屬性

類型:String
預設值:None
支援萬用字元:True
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-DefaultProfile

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

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ExcludeElasticPoolCandidates

指出彈性資料庫集區中的資料庫是否從傳回的建議中排除。

參數屬性

類型:Boolean
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceGroupName

指定指派資料庫之資源群組名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ServerName

指定裝載此 Cmdlet 取得升級提示之資料庫的伺服器名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:1
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 指令未執行。

參數屬性

類型:SwitchParameter
預設值:False
支援萬用字元:False
不要顯示:False
別名:威斯康星州

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

String

Boolean

輸出

RecommendedDatabaseProperties