Is there an API provided by Azure providing information about Azure Rate Card pricing ?
The usual rate card doesn't seem to have any such information.
You could use Azure Billing APIs to predict and manage your costs, refer to this article.
Use Azure Billing APIs to pull usage and resource data into your preferred data analysis tools. The Azure Resource Usage and RateCard APIs can help you accurately predict and manage your costs.
Azure Invoice Download API: download invoices
Azure Resource Usage API: get your estimated Azure consumption data
Azure Resource RateCard API: get the list of available Azure resources and estimated pricing information for each
Related
Is there any way to get Cost and Utilization(CPU, Memory, DTU) trend of azure resources by using azure cost management apis.
If you check this Azure Cost Management documentation, then you will find that -
The Azure Cost Management APIs provide the ability to explore cost and usage data by creating customized filters and expressions allowing you to answer consumption-related questions for your Azure resources.
But note that these APIs are currently available for Azure Enterprise customers. So you can use it if you have the Enterprise Subscription.
To solve your problem you can use the Azure Consumption APIs. These APIs support Enterprise Enrollments and also some Web Direct Subscriptions. The Azure Consumption APIs give you programmatic access to cost and usage data for your Azure resources.
You should use Balances API, to get a monthly summary of information on balances, new purchases, Azure Marketplace service charges, adjustments, and overage charges.
And use Budgets API, to to create either cost or usage budgets for resources, resource groups, or billing meters.
Use the Usage Details API to get charge and usage data for all Azure 1st party resources you have.
Currently Balances API and Budgets API is only for Enterprise Customers only.
If I create an Azure cloud services (implemented using .NET Core in my case), is there a way to get an estimation of the resources needed for the service BEFORE (not analyzing it after the fact) it is deployed to the cluster? By resources I mean number of cpus needed, memory being used etc.
Before deployment any application We can use Azure pricing calculator to analysis our uses and cost as per our requirement .
And alternatively based on the MS DOC we can review estimated costs according to our requirement tool in the Azure portal:
When you create an App Service app or an App Service plan, you can see
the estimated costs.
To create an app and view the estimated price:
On the create page, scroll down to App Service plan, and click Create new.
Specify a name and click OK.
Next to Sku and size, click Change size.
Review the estimated price shown in the summary. The following screenshot is an example and doesn't reflect current pricing.
For more information you can refer this MS DOC: Sizes for Cloud Services
I'm trying to retrieve Azure cost data for the management group using azure cost usage API.
https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage
But Im getting below error.
"Cost management data is unavailable for subscription xxxxxxxxxxx. The offer MS-AZR-xxxxP is not supported. (Request ID: xxxxx-xxxxx-xxx-xxx-xxxxx)"
Request URL
https://management.azure.com/providers/Microsoft.Management/managementGroups/xxxxxxxxxx/providers/Microsoft.CostManagement/query?api-version=2019-11-01&$top=5000
Is there any way to skip such subsciptions and get data for supported subscriptions using above API.Please assist.
Reason you may be seeing this message is because Azure Cost Management is not supported for all Azure Offer types.
Please check this link for supported/unsupported Azure Offer types for Azure Cost Management: https://learn.microsoft.com/en-us/azure/cost-management-billing/costs/understand-cost-mgt-data#supported-microsoft-azure-offers.
We can view the breakdown of the current charges from the Azure portal and the burn rate. Is there any API (apart from the RateCard and Utilization api) to fetch that? Instead of us calculating the cost, can we just fetch the actual cost per resource using API?
Secondly, is there any API to fetch the billing cycle for the subscription? I think we need Billing cycle to get the cost if there is tiered pricing on the resource and free usage in case we use rate and utilization API.
Is there an easy way to count calls, or specific items within a call in Azure?
If not, is there an easy way to count the amount of data transferred to the cloud service?
The data-transfer-In\out for a cloud service will be part of monthly Azure bill. There is an API available for Enterprise Azure customers (https://automaticbillingspec.blob.core.windows.net/spec/UsageDownloadRestfulSampleClient.zip) but not yet for Credit Card (CC) Customers\non-EA. For CC customer the bill is downloadable as CSV from the management portal