An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
There is no dedicated Azure client that can return on-demand cost for a particular service using only the subscriptionId outside of the existing pricing/management APIs.
Available Java management clients that work with subscription IDs (for example BillingManagementClient, ConsumptionManagementClient, QuotaManagementClient, ServiceFabricManagementClient, and SubscriptionsClient) expose subscription metadata, usage, quota, or specific resource operations, but not a direct "on-demand price for a service with given specs" endpoint.
For example:
-
ConsumptionManagementClient.getSubscriptionId()and related consumption APIs deal with usage and cost data already incurred, not list/on-demand prices. -
BillingManagementClient.getSubscriptionId()andUsageAggregation.subscriptionId()expose billing/usage context, not pricing for arbitrary configurations. -
SubscriptionsClient.get(String subscriptionId)returns subscription details, not pricing.
To obtain on-demand cost for a specific configuration, the supported approach remains to use Azure pricing and cost/consumption APIs or the portal-based pricing calculators. No alternative client in the provided SDK references exposes a direct on-demand pricing lookup by subscriptionId and service specification.
References: