Skip to content

[PowerShell] Start-FinOpsCostExport throws BadRequest errorΒ #988

Description

@flanakin

πŸ› 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.

Metadata

Metadata

Assignees

Labels

OKR: 1.2 ReliabilityIssues that improve reliability and resiliencyTool: PowerShellPowerShell scripts and automation

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions