finops-toolkit
finops-toolkit copied to clipboard
[External][Cost Management] ContractedCost missing in Cost Management exports
đ Problem
Microsoft Cost Management does not include ContractedCost
or ContractedUnitPrice
in all exported cost data. There are 2 bugs with this:
- ContractedCost and ContractedUnitPrice should always be specified.
- If not available, ContractedCost and ContractedUnitPrice should be null and not 0.
There are currently 2 known reasons why ContractedCost and ContractedUnitPrice will be missing:
- Reservation usage charges for MCA accounts.
- Reservation usage charges for EA accounts when Cost Management cost allocation is enabled.
If you are using Cost Management cost allocation for an EA account, consider disabling cost allocation rules to work around this.
This is documented in Ingest cost details data as a limitations for UnitPrice
column in actual/amortized cost data. This limitation also applies to the ContractedCost
and ContractedUnitPrice
columns in FOCUS data.
đŖ Repro steps
- Export FOCUS cost data.
- Filter rows where ContractedCost == 0 and EffectiveCost > 0.
đ¤ Expected
- All rows should have an accurate ContractedCost and ContractedUnitPrice values.
- The only records with a ContractedCost or ContractedUnitPrice of 0 should be free.
- If a value is not available, they should be null. (However, ContractedCost and ContractedUnitPrice should always be available.)
âšī¸ Additional context
This is a tracking bug only. The FinOps toolkit community is not responsible for this and cannot resolve the issue. Subscribe to this issue to be notified when the issue has been resolved.
[!IMPORTANT] If you are using Cost Management cost allocation, consider disabling cost allocation rules to work around this.
We are tracking the following workarounds until this issue is resolved:
- [x] #835
- [ ] #614
Related issues:
- [ ] #834
[!NOTE] If you are facing this issue, you can file a support request with the Cost Management team to convey the importance of these columns for your needs; however, as a known issue, the support request will likely be closed. The intent of creating a support request is to raise awareness of your needs and increase the priority of the fix.
đââī¸ Ask for the community
We could use your help:
- Please vote this issue up (đ) to prioritize it.
- Let us know if you see an opportunity to improve the experience from the toolkit.