Share via

Pricing API suddenly returning 400

Anonymous
2022-12-08T12:38:53.387+00:00

We have a HPC cluster finance integration that uses the Microsoft pricing API to pull down the price information for the compute instances.

It has suddenly stopped working.

e.g the following python code will return an error sometimes, but a 200 and the correct response other times:

from requests import get  
response=get("https://prices.azure.com/api/retail/prices?currencyCode='GBP'&$filter=serviceName%20eq%20'Virtual%20Machines'%20and%20serviceFamily%20eq%20'Compute'%20and%20armRegionName%20eq%20'westeurope'%20and%20meterName%20eq%20'F8s%20v2'")  
response.json()  

Can someone please take a look at this as a matter of urgency? Our users currently are unable to run workloads as we can't verify the cost associated.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.