Rackspace and Microsoft Azure pricing api - azure

Is there a public api for getting pricing lists of Rackspace and Microsoft Azure in JSON format?
Have been searching for that but could not find any information.
Thank you in advance.

For Rackspace, there is not a public API for getting pricing lists in JSON format. You can find a list of the prices for Cloud Servers here if you scroll down to the "pricing" section: http://www.rackspace.com/cloud/servers
You can select a class of OS, service level, and whether you want the prices to be displayed hourly or monthly. Rackspace doesn't offer cloud servers without a support plan, so you'll need to factor that into your calculations. With the DevOps support plan, you'll need to factor in the volume discount for large numbers of servers.
There's also a price calculator here: http://www.rackspace.com/calculator
(Disclaimer: I work at Rackspace.)

For Azure, this may help.
I was looking for the same thing and stumble upon this post on stack overflow: Azure pricing calculator api. I was able to generate JSON string using this git hub repo: https://github.com/Azure-Samples/billing-dotnet-ratecard-api.
Hope this helps!

Related

Azure landing zone : Inventory what & how?

Currently, I am working on establishing enterprise-scale landing zones for Cloud Adoption Framework in Azure.
I understand that inventory of the existing on premises applications and infrastructure is must to prepare the good landing page architecture.
How do I gather the inventory, is there any tools to do this? What and all should I include in the inventory?
For me i think you should use Microsoft Azure Advisor to give you an advice of the cloud infra you would need and Azure TCO to calculate the difference of the on premises and cloud infra or the Azure calculator to calculate the cloud infra price
Microsoft Azure Advisor: https://azure.microsoft.com/en-us/services/advisor/
Azure TCO: https://azure.microsoft.com/en-us/pricing/tco/calculator/
Azure Calculator: https://azure.microsoft.com/en-us/pricing/calculator/
Also i advice you to look for the long time booking 3/5 years; like that you will gain a reduction of nearly 70% of the total price
Hope that my answer helped you and wish that you would vote me up if it did :D thanks alot in advance ....

AWS boto3 billing information

I'm looking for a way to extract billing information using boto3. I've seen solutions using cost explorer but it's not a choice in my case. The information I want to extract is on Billing Dashboard > Bills. Is there a service on boto3 that facilitates this task?
I found a solution, using boto3. Using the CloudWatch client we can extract Billing metrics for any service we want:
Monitor Estimated Charges with CloudWatch
CloudWatch.Metric.get_statistics

how to find ServiceName in Azure Cloud billing export

In Azure Cost analysis console, we have the option to filter by Service Name. The same Column is NOT there in the billing CSV export I’m getting from Azure. Does anyone know how to filter Service name in billing export
I tried to see cost analysis in 'Cost Management + Billing | Billing account' menu, and I also found the downloaded CSV files don't contain an Service Name column. So I prefer to use cost management api to get the details.
Here's the api link: https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage
By the way, I remembered that if someone wanna use this api, please make sure that the target subscription has joined Azure plan.
Hope it will do some help. Wish you a good day.

Azure Ratecard Api to get VM price

AWS provides a pricing api to get cost details of each service. If you want to know the price of an EC2 instance, you just pass the region,instance type(eg:t2.micro) and service code of EC2 to the pricing API and it returns the pricing details. I understand that azure exposes Ratecard API to get the prices. But It returns a huge JSON with all the services. How do I filter based on service type and its attributes. For example, I want the pricing details of Azure VM of instance type Standard_B2S in Central US. Is this possible?
No there is no separate API available for it apart from RateCard, if you need to get the details of particular VM you can use Virtual Machine Rest API. See this link.
GET
https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes?api-version={apiVersion}

Is it possible to get programmatic access to Azure billing info?

Is it possible to get programmatic access to Azure billing information?
I am aware that you can download a .csv file but that doesn't meet my requirements. I'd really like an API to access the current live billing data.
I can't find anything but I've seen a couple of applications that suggest its possible to do this - http://www.youtube.com/watch?v=ETs-NgnZV_U.
Thanks.
Azure now does provide ways to programmatically retrieve your resource usage and pricing data: https://weblogs.asp.net/scottgu/new-azure-billing-apis-available
At this tmie it is not. Quest tools scrap data from HTML of the web-pages afaik
The APIs Moinak refers to seem to be old APIs (we used them before switching to Azure Cost Management exports).
It seems like there are some new billing apis: https://learn.microsoft.com/en-us/rest/api/billing/

Resources