How to get pricing information of Azure SqlDataBase using Java SDK

Feng, Laughing-ZM 20 Reputation points

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,981 Reputation points MVP

    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,836 Reputation points Microsoft Employee

    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
    0 comments No comments