Detect CostManagement export API version #1265
-
I'm trying to automate creating exports for subscriptions, I'm using the CostManagement REST API to create a list of exports by subscription: However, there's no way of knowing which API the export(s) are using, other than inspecting the Azure Portal using DevTools. My question; how do I know which API version I have to use to return a list of exports using the REST API? Note; From a CSP perspective, we need to create an export for every subscription available, we do not know if subscriptions/exports change and we want to monitor this closely. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Try using the New-FinOpsCostExport PowerShell command. But to answer your question, use 2023-07-01-preview. |
Beta Was this translation helpful? Give feedback.
-
@flanakin thank you for your response, 2023-07-01-preview is the correct version. Just unfortunate it's not clear in the portal/docs |
Beta Was this translation helpful? Give feedback.
Try using the New-FinOpsCostExport PowerShell command.
But to answer your question, use 2023-07-01-preview.