How to get pricing information of Azure SqlDataBase using Java SDK

Feng, Laughing-ZM 20 Reputation points
2023-03-06T02:06:33.35+00:00

hi everyone, I want to know which java SDK can get Azure SqlDataBase pricing information .

Azure SQL Database
{count} votes

3 answers

Sort by: Most helpful
  1. Alberto Morillo 32,896 Reputation points MVP
    2023-03-06T02:35:49.4666667+00:00

    To my knowledge there are no Java SDKs available for that. However, there are REST APIs available to get pricing information and Azure consumption.


  2. ShaktiSingh-MSFT 13,826 Reputation points Microsoft Employee
    2023-03-10T08:13:12.42+00:00

    Hi @Feng, Laughing-ZM,

    Welcome to Microsoft Q&Q forum and thanks for using Azure services.

    As I understand, you want to get Azure SQL Database pricing details using Java SDK.

    In addition to Alberto's answer,

    we can use PowerShell commandlet like below to get the list of databases by providing the filters:

    Get-AzSqlDatabase -ServerName <Name of Server> -ResourceGroupName <Name of Resource groups> | Where-Object {$_.SkuName -like 'GP_Gen5' -and $_.Edition -like 'GeneralPurpose'}
    

    Also, you may check Capabilities - List By Location which gives database service tier/family in a given subscription.

    Hope this helps. Please let us know if further queries. Thanks


  3. LiJia Liu 170 Reputation points MVP
    2023-03-13T09:20:24.5766667+00:00
    0 comments No comments