0

Reading the official documentation about Azure Retail Prices overview, I found that we can make API calls filtering by serviceName

https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices

https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines'

However, this assumes that we know the service's correct name.

How do we get a list of all service names in Azure?

In AWS there is an endpoint that returns a list of all AWS service names, and we can use that data in the subsequent API calls.

I found this article but it is not exactly what I would expect from Azure side.

https://dev.to/holger/how-to-retrieve-a-list-of-available-services-from-the-azure-retail-rates-prices-api-2nk6

Thank you!

marian.vladoi
  • 7,663
  • 1
  • 15
  • 29

0 Answers0