-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIKE: Azure Cost Export Support #1203
Comments
After looking into this, I found the following: Cost data exports are available to Enterprise Agreement (EA), Microsoft Customer Agreement customers, as well as alternative payment accounts that include:
Azure does mention that the Usage Details API can be used for the above listed alternative account types. It is only deprecated for EA or MCA users. If we wish to include a low-overhead option for these users, it may be worth implementing logic that uses the account type to determine the method for fetching usage data – retaining the current implementation for small users. However, they still warn that the Usage Details will still eventually be turned off, and that the Cost Details API will turn on support for these accounts before then. Setting up Exports through the Azure PortalAzure’s documentation provides detailed instructions on how to schedule exports to a storage account using the azure portal. Those instructions can be found here. There are some important things to call out:
Setting up Exports through the Exports APIThis is currently supported and may be worth implementing as a CLI command to ease and automate setup for users. Similar to the Cost Details API, it is available through the See examples for creating exports by billing accounts and other methods. The results are similar to setting up exports traditionally, in which csv files will be recurrently generated and stored in the configured storage account. Implementing ExportsExports serve as the more scalable option for persisting historical estimates and fetching large amounts of usage data. The resulting CSV files can be parsed/streamed similar to the Cost Details API implementation. It is recommended to implement #1222 first. The It does bring into question how using Exports will affect estimation requests, and how to handle requests for data ranges that are not available or have yet to be exported. We may want to consider a config that tells CCF which method to use, and if using Exports that it is only usable with data that has already been exported. Alternatively, we could simply use the API to create new exports of the given date range. We would need to be aware of the 90-day limit, and provide additional parameters for chunking data and informing the user on the creation of new exports due to the amount of time it may take for large data. |
Related Issue with full context: #1175
This spike should serve as research for implementing support for Cost Exports through Azure's daily export feature.
It should cover the following:
The text was updated successfully, but these errors were encountered: