有没有办法读取Azure SQL Database资源可用的定价层(SKU)列表?
可用的 SKU(DTU 和 vCores)列表 在这里。
但我需要使用 Azure REST API 读取此列表。
某些资源类型(如 VM、存储、认知服务等)提供 SKU 列表。
但是 Azure SQL 数据库的此信息缺失。
感谢任何帮助。
有没有办法读取Azure SQL Database资源可用的定价层(SKU)列表?
可用的 SKU(DTU 和 vCores)列表 在这里。
但我需要使用 Azure REST API 读取此列表。
某些资源类型(如 VM、存储、认知服务等)提供 SKU 列表。
但是 Azure SQL 数据库的此信息缺失。
感谢任何帮助。
Get-AzSqlServerServiceObjective -Location <LOCATION>
例如,Get-AzSqlServerServiceObjective -Location eastus
参考 - https://learn.microsoft.com/en-us/powershell/module/az.sql/get-azsqlserverserviceobjective?view=azps-4.2.0
这是当前文档的链接:
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
Capabilities - List By Location
: https://learn.microsoft.com/en-us/rest/api/sql/capabilities/listbylocation。eastus
位置的API,虽然信息有些复杂,但它给了我所有的信息。