finops-toolkit icon indicating copy to clipboard operation
finops-toolkit copied to clipboard

[PowerShell] Start-FinOpsCostExport throws BadRequest error

Open flanakin opened this issue 5 months ago • 0 comments

🐛 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

  1. Start-FinOpsCostExport ... -Backfill 13
  2. 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:

  1. Please vote this issue up (👍) to prioritize it.
  2. Leave comments to help us solidify the vision.

flanakin avatar Sep 17 '24 00:09 flanakin