finops-toolkit
finops-toolkit copied to clipboard
[PowerShell] Start-FinOpsCostExport throws BadRequest error
🐛 Problem
Getting the following error in Start-FinOpsCostExport:
Write-Error: C:\Users\micflan\Documents\PowerShell\Modules\FinOpsToolkit\0.4\Public\Start-FinOpsCostExport.ps1:183
Line | 183 | … $response = Invoke-Rest -Method POST -Uri $runpath -Body $body -Comma … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Request properties validation failed: Invalid definition timePeriod; 'to' value | cannot be in the future. (Code: BadRequest).
👣 Repro steps
- Start-FinOpsCostExport ... -Backfill 13
- Review response
🤔 Expected
Should complete successfully without errors. Write status messages for each month for transparency of what's happening. There should be an option to run without any outputs.
🙋♀️ Ask for the community
We could use your help:
- Please vote this issue up (👍) to prioritize it.
- Leave comments to help us solidify the vision.