Hello @Jagaari Hemanth Thank you for posting your question on Microsoft Q&A platform. Happy to help!
From the title of the thread, I understand that you are looking for information on "How to Map Azure vm cost to vm license cost from cost details data"
We have three sorts of meters for VM:
- Meter for Compute + License included -> Standard Paygo scenario
- Meter for Compute only -> Used for Opensource OS or AHB scenario
- Meter for License only -> Used for RI/SP scenario
The tricky part is in scenario 1 to separate the Compute from the license cost. This is possible, but IMO only if you use your own reporting.
Following steps should help you map each VM with its license from cost details data, using Azure Cost Management and Billing.
Go to the Azure portal and navigate to the "Cost Management + Billing" page.
- Select the subscription that contains the VMs that you want to map with their licenses.
- Click on the "Cost analysis" tab and select the "Usage + charges" view.
- Add the "MeterCategory" column to the view by clicking on the "Add columns" button and selecting "MeterCategory".
- Filter the view to show only the VMs that you want to map with their licenses.
- Export the usage and charges data to a CSV file by clicking on the "Export" button and selecting "Export to CSV".
- Open the CSV file in a spreadsheet program such as Microsoft Excel.
- Use the "MeterCategory" column to identify the VMs that are running and the software that they are using.
- Use the "UsageQuantity" and "PreTaxCost" columns to calculate the usage cost for each VM.
- Use the Azure portal or other tools to identify the license that is associated with each software that the VMs are using.
By following these steps, you can map each VM with its license from the cost details data. It is important to note that the license information may not be available in the cost details data and may need to be obtained from other sources.
Update:
The Generate Cost Detail Report will be used to extract customer’s existing cost/usage data.
Hence, if the customer has reservation/savings plan purchased then in the usage data extracted via the Generate Cost Detail Report API will show the compute cost as 0 since it will be absorbed by the reservation purchased and there will be another meter available for license cost if customer is not using Azure Hybrid Benefit (AHB) and the license cost is billed via Azure.
If the customer does not have any RI/ASP and their VM is not AHB enabled for their Windows OS, then the compute + software cost will be merged in a single meter and we will not show the compute and OS cost separately in the Usage Data extracted via the Generate Cost Detail Report API.
Hope this answers your question. Please write back to us if you have any questions!
If the response helped, do "Accept Answer" and up-vote it