Open saleemmy opened 1 month ago
You need to add the -scope parameter. Try this:
$Scope="/providers/microsoft.Billing/billingAccounts/1234567"
Start-FinOpsCostExport -Name ftk-hub-04-monthly -Scope $scope -Backfill 13
Thanks @MSBrett but I still get this error and the export does not happen.
Write-Error: /home/mohamed/.local/share/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).
I have tried using start and end date format too in the command but still no export happens.
@saleemmy What scope ID did you use? Can you share it without the number/guid?
It might save time to get on a call so we can go thru this. Feel free to email ftk-support@ms and we can setup some time.
Is there an update on this? I received this error:
Start-FinopsCostExport -Name 'finhub-exportname' -Scope "/subscriptions/subscriptionID" -Backfill 24 WARNING: Upcoming breaking changes in the cmdlet 'Get-AzAccessToken' : The Token property of the output type will be changed from String to SecureString. Add the [-AsSecureString] switch to avoid the impact of this upcoming breaking change.
False
thank you.
@saleemmy What scope ID did you use? Can you share it without the number/guid?
It might save time to get on a call so we can go thru this. Feel free to email ftk-support@ms and we can setup some time. I emailed ftk-council@microsoft.com and got an error:
Delivery has failed to these recipients or groups:
ftk-council@microsoft.com Your message wasn't delivered because the recipient's email provider rejected it.
Diagnostic information for administrators:
Generating server: MN0PR21MB4545.namprd21.prod.outlook.com ftk-council@microsoft.com Remote server returned '554 5.7.0 < #5.7.133 smtp;550 5.7.133 RESOLVER.RST.SenderNotAuthenticatedForGroup; authentication required; Delivery restriction check failed because the sender was not authenticated when sending to this group>'
kindly resolve, thank you.
PS /home/> Start-FinOpsCostExport -Name 'AzureDailyCostandUsageDetails-FOCUS' -Backfill 7
WARNING: Upcoming breaking changes in the cmdlet 'Get-AzAccessToken' : The Token property of the output type will be changed from String to SecureString. Add the [-AsSecureString] switch to avoid the impact of this upcoming breaking change.
Tried to run the export but got this error.