[英]List available PricingTiers for Azure SQL Database Resource
有什么方法可以讀取Azure SQL 數據庫資源的可用定價層(SKU) 列表?
此處提供的可用 SKU(DTU 和 vCore)列表。
但我需要使用Azure REST API閱讀此列表。
SKU 列表可用於某些資源類型,例如(VM、存儲、認知服務等)。
但是 Azure SQL 數據庫缺少此信息。
謝謝你的幫助。
我相信您正在尋找的 API 是Capabilities - List By Location
: https : //docs.microsoft.com/en-us/rest/api/sql/capabilities/listbylocation 。
我剛剛嘗試了用於eastus
位置的 API,它以一種有點復雜的方式為我提供了所有信息。
您還可以在使用 Azure 進行身份驗證后使用以下 PowerShell commandlet - Get-AzSqlServerServiceObjective -Location <LOCATION>
例如, Get-AzSqlServerServiceObjective -Location eastus
這是文檔的當前鏈接:
https://learn.microsoft.com/en-us/rest/api/sql/2021-02-01-preview/capabilities/list-by-location
使用az rest
命令的示例(替換您的{subscriptionId}
):
az rest --method GET --url https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/eastus/capabilities?api-version=2021-02-01-preview
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.