I need to build a dashboard which will visuallize the usage and cost of many azure subscriptions. accounts, departments. My plan was:
- Send the data that is 'behind' the Azure Cost Analysis view, to the log analytics workspace.
- In the log analytics workspace, perform custom aggregations / filters.
- Display those aggregations as charts in Azure Metrics or directly in Azure Dashboard.
Problem is with step 1, I dont know how to send the data that is 'behind' the Azure Cost Analysis view, to the log analytics workspace. I thought of two solutions:
- Fetching the data from azure cost & billing API.
- Schedule Export cost analysis data to a storage account, and then somehow moving the data from the storage account to the log analytics workspace.
Both solutions seems to me a bit 'overkilling' - is there a more direct approach to send the cost analysis data to log analytics workspace? If there is no option such as that, I would be happy to know how would you suggest moving the exported data from the storage account to the log analytics, or do you have some other idea?
Thank you!