Azure Retail Prices API stopped responding the
NextPageLink property to help with paginating through all the items.
Steps to reproduce:
- GET https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines'
- Check the
It contains the link to the next page, e.g.
https://prices.azure.com/api/retail/prices?$filter=serviceName eq 'Virtual Machines'&$skip=100
Generating the link yourself. Instead of getting the next page link from the response, check the returned item count. If it's 100, then increment the
skip counter and request again.
The behavior of
NextPageLink is documented: https://learn.microsoft.com/en-us/rest/api/cost-management/retail-prices/azure-retail-prices#api-response-pagination
We noticed it being empty today (2023-03-10).
Furthermore, this happens with both the default and the preview API versions.